Autor Honse
Datum 31.07.2009 13:41
Beiträge: Hallo,
Ich habe nicht die Stelle gefunden, wo ich das menue zentrieren kann.

$opnTheme['thename'] = 'pe_ch';<br /> $opnTheme['image_onlinehelp_edit'] = 'themes/' . $opnTheme['thename'] . '/images/edit.gif';<br /> $opnTheme['image_onlinehelp_info'] = 'themes/' . $opnTheme['thename'] . '/images/help.gif';<br /> <br /> $opnTheme['bgcolor1'] = "#FFFFFF";<br /> $opnTheme['bgcolor2'] = "#AAB8C4";<br /> $opnTheme['bgcolor3'] = "red";<br /> $opnTheme['textcolor1'] = "#000000";<br /><br />// Private<br />$opnTheme['privat_theme']['writeR'] = 0;<br />$opnTheme['privat_theme']['writeRcache'] = '';<br /><br />$opnTheme['privat_theme']['writeL'] = 0;<br />$opnTheme['privat_theme']['writeLcache'] = '';<br /><br />// Private used to switch from normal nav to dropdown navigation <br />$opnTheme['theme_dropdown_menu'] = 'opnDropDownDefault';<br />$opnTheme['switch_to_dropdownmenu'] = true;<br />// this function is call at head part into the engine<br />function themehead () {<br /><br />     global $opnConfig, $opnTheme;<br /><br />     $opnConfig['module']->InitModule ('themes/pe_ch', true);<br /><br />     if (!isset($opnConfig['pe_ch_theme_setting_dropdownmenu'])) {<br />          $opnConfig['pe_ch_theme_setting_dropdownmenu'] = 0;<br />     }<br />     if (!isset($opnConfig['pe_ch_theme_setting_header'])) {<br />          $opnConfig['pe_ch_theme_setting_header'] = 1;<br />     }<br /><br />     if ($opnConfig['pe_ch_theme_setting_dropdownmenu'] == 1) {<br /><br />          include_once (_OPN_ROOT_PATH . _OPN_CLASS_SOURCE_PATH . 'class.dropdown_menu.php');<br /><br />          $opnConfig['opnOutput']->SetJavaScript ('all');<br /><br />     }<br />}<br /><br />function themeheader () {<br /><br />     global $opnConfig, $opnTheme;<br /><br />     echo '<body>' . _OPN_HTML_NL;<br /><br />     if ($opnConfig['permission']->HasRights('themes/pe_ch',array(_PERM_BOT, _PERM_READ),true)) {<br />               OpenWaitBox ();<br />     }<br />     echo '<script src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/pagepeel/AC_OETags.js" type="text/javascript"></script>' . _OPN_HTML_NL; <br />     <br />     echo '<script src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/pagepeel/pageear.js" type="text/javascript"></script>' . _OPN_HTML_NL; <br />     ?><br />     <script type="text/javascript"><br />writeObjects();<br /></script> <br /><?<br />     echo '<div class="themeborder">' . _OPN_HTML_NL;<br /><br />     if ($opnConfig['pe_ch_theme_setting_header'] == 1) {<br /><br />     if ($opnConfig['permission']->HasRights('themes/pe_ch',array(_PERM_BOT, _PERM_READ),true)) {<br />     <br />          echo '<div class="headertop"><br />          <!--     <a href="http://pe-ch.de/advent/advent.htm" target="_blank"><font color="red">Zum Adventskalender </font></a> -->|<br />     <a href="/html/system/impressum/index.php" target="_self">Impressum</a> |<br /> <a href="/html/system/sitemap/index.php" target="_self">Sitemap</a> |<br /> <a href="/html/system/contact/index.php" target="_self">Kontakt</a> |<br /> <a href="/html/modules/agb/index.php" target="_self">AGB</a><br /> <a href=""></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /> </div>' . _OPN_HTML_NL;}<br />          if ($opnConfig['site_logo'] == 'blank.gif width="100%"') {<br />               echo $opnConfig['slogan'];<br />          } elseif ($opnConfig['site_logo'] != '') { <br />               echo '<img src="' . $opnConfig['url_datasave'] . '/logo/'.$opnConfig['site_logo'].'" alt="pe_ch" width="100%" height="81" border="0" />' . _OPN_HTML_NL;<br />          } elseif ($opnConfig['site_logo'] == '') {     <br />{          <br />                    echo '<div class="headermiddle"><br />      <table width="99%"><tr><td width="10%"><img src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/images/Links.png" border="0" /><br />      </td><br />     <td width="80%><br />               <a href="' . $opnConfig['opn_url'] . '"><img src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/images/headermiddel.png" alt="pe_ch" width="100%" height="81" border="0" /></a></td><br />               <td width="10%"><img src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/images/Rechts.png" alt="pe_ch" border="0" /><br />      </td></tr><br />      </table><br />               </div>'. _OPN_HTML_NL;<br />                     }<br />     <br /> // this function set time<br /> $opnConfig['opndate'] -> now();<br /> $date = '';<br /> $year = date("Y");<br /> $time = date("H:i");<br /> $opnConfig['opndate']->formatTimestamp($date, _DATE_DATESTRING2);<br /> echo '<div class="time">'. _OPN_HTML_NL;<br /> if ($opnConfig['opnOption']['user_login']) {<br />          $cookie = $opnConfig['permission'] -> GetUserinfo();<br />          $username = $cookie['uname'];<br /><br />          echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'._PE_CH_HELLO.' '.$username.': <a href="'.$opnConfig['opn_url'].'/system/user/index.php" class="boxtitle">'._PE_CH_ACCOUNT.'</a> | <a href="'.encodeurl($opnConfig['opn_url'].'/system/user/index.php?op=logout').'" class="boxtitle">'._PE_CH_LOGOUT.'</a>'. _OPN_HTML_NL;<br />     } else {<br />          echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="'.$opnConfig['opn_url'].'/system/user/index.php" class="boxtitle">'._PE_CH_LOGINCREATE.'</a>'. _OPN_HTML_NL;<br />     } <br /> echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$time ._PE_CH_TIME. $date," ", $year;<br /> echo '</div>' . _OPN_HTML_NL;<br /><br />          echo '<br><div align="center" class="headerdown">'. _OPN_HTML_NL;<br />          echo makenav_box_build();<br />          echo '</div>'._OPN_HTML_NL;<br /> <br />          echo '<div style="clear:both"></div>'. _OPN_HTML_NL . _OPN_HTML_NL;<br />          <br />     }<br /><br />     }<br />     echo '<table width="100%" class="maintable" border="0" cellspacing="0" cellpadding="0">' . _OPN_HTML_NL;<br />     echo '<tr>'. _OPN_HTML_NL;<br />     if ($opnConfig['opnOption']['show_tplblock'] == 0) {<br />          if ($opnConfig['opnOption']['show_lblock'] == 1) {<br />               make_box ('left', 'side');<br />               if ( ($opnTheme['privat_theme']['writeL'] == 1) && ($opnTheme['privat_theme']['writeLcache'] != '') ) {<br />                    echo '<!--beginn menülinks-->' . _OPN_HTML_NL;<br />                    echo '<td class="blocklinkscontent">' . _OPN_HTML_NL;<br />                    echo $opnTheme['privat_theme']['writeLcache']; #<img src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/images/abstandhalter.gif" alt="" width="183" height="1" border="0" /><br />                    echo '</td>' . _OPN_HTML_NL;<br />                    echo '<!--ende menülinks-->'. _OPN_HTML_NL;<br />                    $opnTheme['privat_theme']['writeLcache'] = '';<br />                    <br />               }<br />          }<br />          echo '<!--beginn content-->' . _OPN_HTML_NL;<br />          echo '<td class="blockcentercontent">' . _OPN_HTML_NL;<br />          if ($opnConfig['opnOption']['show_middleblock'] == 1) {<br />               make_box ('left', 'middle');<br />          }<br />     } else {<br />          echo '<td width="100%" valign="top">' . _OPN_HTML_NL;<br />          if ($opnConfig['opnOption']['show_lblock'] == 1) {<br />               make_box ('left', 'side');<br />          }<br />          if ($opnConfig['opnOption']['show_middleblock'] == 1) {<br />               make_box ('left', 'middle');<br />          }<br />          if ($opnConfig['opnOption']['show_rblock'] == 1) {<br />               make_box ('right', 'side');<br />          }<br />     }<br /><br />}<br /><br />function themefooter () {<br />     global $opnConfig, $opnTheme;<br /><br />     if ($opnConfig['opnOption']['show_tplblock'] == 0) {<br />          echo '<br /></td>' . _OPN_HTML_NL;<br />          echo '<!--ende content-->' . _OPN_HTML_NL . _OPN_HTML_NL;<br />          if ($opnConfig['opnOption']['show_rblock'] == 1) {<br />               make_box ('right', 'side');<br />               if ( ($opnTheme['privat_theme']['writeR'] == 1) && ($opnTheme['privat_theme']['writeRcache'] != '') ) {<br />                    echo '<!--beginn menürechts-->' . _OPN_HTML_NL;<br />                    echo '<td class="blockrechtscontent">';<br />                    echo $opnTheme['privat_theme']['writeRcache']; #<img src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/images/abstandhalter.gif" alt="" width="183" height="1" border="0" /><br />                    echo '</td>' . _OPN_HTML_NL;<br />                    echo '<!--ende menürechts-->' . _OPN_HTML_NL . _OPN_HTML_NL;<br />                    $opnTheme['privat_theme']['writeRcache'] = '';<br />               }<br />          }<br />     } else {<br />          echo '</td>';<br />     }<br />     echo '</tr>' . _OPN_HTML_NL . '</table>' . _OPN_HTML_NL . _OPN_HTML_NL;<br />     echo '<div class="footerbar"></div>' . _OPN_HTML_NL;<br />     echo '</div>' . _OPN_HTML_NL;<br />     echo '<!--beginn footer-->' . _OPN_HTML_NL;<br />     echo '<br /><div class="footer">';<br />     echo $opnConfig['opnOutput']->GetFootMsg();<br />     echo '</div>' . _OPN_HTML_NL;<br />     echo '<!--ende footer-->' . _OPN_HTML_NL . _OPN_HTML_NL;<br />     if ($opnConfig['permission']->HasRights('themes/pe_ch',array(_PERM_BOT, _PERM_READ),true)) {<br />               CloseWaitBox ();<br />     }<br />}<br /><br />function makenav_box ($i, $url, $urltext, $urllight, $wechsel, $target, $css, $title) {<br />     global $opnConfig;<br /><br />     $t = $urllight;<br />     $hurl = $url;<br />     $opnConfig['cleantext']->OPNformatURL ($hurl);<br />     if ($target != 0) {<br />               $goout = ' target="_blank"';<br />     } else {<br />               $goout = '';<br />     }<br />     if ($css == '') {<br />               $css = 'button';<br />     }<br />     if ($title != '') {<br />               $title = ' title="' . $title . '"';<br />     } else {<br />               $title = '';<br />     }<br />     $txt = '<div align="center" class="buttonspacer"><div class="'.$css.'" id="navid'.$i.'"><a href="'.$hurl.'"'.$title .$goout.'>'.$urltext.'</a></div></div>'._OPN_HTML_NL;<br />     return $txt . $wechsel;<br /><br />}<br /><br />function makenav_box_build () {<br /><br />     global $opnConfig, $opnTheme;<br /><br />     if ( (isset ($opnConfig['theme_nav']) ) && (is_array ($opnConfig['theme_nav']) ) ) {<br /><br />          if ($opnConfig['pe_ch_theme_setting_dropdownmenu'] == 1) {<br /><br />               $menu = & new opn_dropdown_menu ('opnDropDownDefault');<br /><br />               $ii = 0;<br />               foreach ($opnConfig['theme_nav'] as $var) {<br />                    $max=count($var);<br />                    for ($i=0; $i<$max; $i++) {<br />                         $ii++;<br />                         if ($var[$i]['img'] != '') {<br />                              $var[$i]['urltext'] = '<img src="' . $var[$i]['img'] . '" alt="' . $var[$i]['urltext'] . '" />';<br />                         }<br />                         if (!isset ($var[$i]['target']) ) {<br />                              $var[$i]['target'] = 0;<br />                         }<br />                         if (!isset ($var[$i]['css']) ) {<br />                              $var[$i]['css'] = 'button';<br />                         }<br />                         if (!isset ($var[$i]['title']) ) {<br />                              $var[$i]['title'] = '';<br />                         }<br />                         $opnConfig['cleantext']->OPNformatURL ($var[$i]['url']);<br /><br />                         // echo makenav_box ($ii, $var[$i]['url'], $var[$i]['urltext'], $var[$i]['show'], '', $var[$i]['target'], $var[$i]['css'], $var[$i]['title']);<br />                         $menu->InsertEntry ($var[$i]['menu'], $var[$i]['menu_sub'], $var[$i]['menu_point'], $var[$i]['url']);<br />                    }<br />               }<br /><br />               echo $menu->DisplayMenu ();<br />               unset ($menu);<br /><br />          } else {<br /><br />               $ii = 0;<br />               foreach ($opnConfig['theme_nav'] as $var) {<br />                    $max=count($var);<br />                    for ($i=0; $i<$max; $i++) {<br />                         $ii++;<br />                         if ($var[$i]['img'] != '') {<br />                              $var[$i]['urltext'] = '<img src="' . $var[$i]['img'] . '" alt="' . $var[$i]['urltext'] . '" />';<br />                         }<br />                         if (!isset ($var[$i]['target']) ) {<br />                              $var[$i]['target'] = 0;<br />                         }<br />                         if (!isset ($var[$i]['css']) ) {<br />                              $var[$i]['css'] = 'button';<br />                         }<br />                         if (!isset ($var[$i]['title']) ) {<br />                              $var[$i]['title'] = '';<br />                         }<br />                         echo makenav_box ($ii, $var[$i]['url'], $var[$i]['urltext'], $var[$i]['show'], '', $var[$i]['target'], $var[$i]['css'], $var[$i]['title']);<br />                    }<br />               }<br />          <br />          }<br /><br />     }<br /><br />}<br /><br />function themesidebox ($title, $content) {<br /><br />     global $opnTheme, $opnConfig;<br /><br />     $txt = '';<br />     themebox_side ($txt, $title, $content, '');<br />     if ($opnConfig['theme_aktuell_sidebox_side'] != 'left') {<br />          $opnTheme['privat_theme']['writeRcache'] .= $txt;<br />          $opnTheme['privat_theme']['writeR'] = 1;<br />     } elseif ($opnConfig['theme_aktuell_sidebox_side'] == 'left') {<br />          $opnTheme['privat_theme']['writeLcache'] .= $txt;<br />          $opnTheme['privat_theme']['writeL'] = 1;<br />     } else {<br />          echo $txt;<br />     }<br />     unset ($txt);<br /><br />}<br /><br />function themebox_output ($txt) {<br />     global $opnTheme, $opnConfig;<br />     <br />     if ( (isset ($opnConfig['theme_aktuell_sidebox_side']) ) && ($opnConfig['theme_aktuell_sidebox_side'] == 'right') ) {<br />          $opnTheme['privat_theme']['writeR'] = 1;<br />          $opnTheme['privat_theme']['writeRcache'] .= $txt;<br />     } else {<br />          echo $txt;<br />     }<br /><br />}<br /><br />function themebox_side (&$txt, $title, $content, $foot = '') {<br /><br />     global $opnConfig, $opnTheme;<br />     <br />     if (!isset($opnConfig['current_sb_themeid'])) {<br />          $opnConfig['current_sb_themeid'] = '';<br />     }<br />     $idtext = '';<br />     if ($opnConfig['current_sb_themeid'] != '') {<br />          $idtext = ' id="'.$opnConfig['current_sb_themeid'].'"';<br />     }<br /><br />     if ($opnConfig['theme_aktuell_sidebox_side'] == 'left') {<br />          if ($title != '') {<br />               $txt .= '<h2 class="themesideboxtitel">' . $title . '</h2>' . _OPN_HTML_NL;<br />          }<br />          $txt .= '<div class="themesideboxtable"' . $idtext . '>' . _OPN_HTML_NL;<br />          $txt .= $content._OPN_HTML_NL;<br />          if ($foot != '') {<br />               $txt .= '<div class="themesideboxfoot">' . $foot . '</div>' . _OPN_HTML_NL;<br />          }<br />     } else {<br />          if ($title != '') {<br />               $txt .= '<h2 class="themesideboxtitelright">' . $title . '</h2>' . _OPN_HTML_NL;<br />          }<br />          $txt .= '<div class="themesideboxtableright"' . $idtext . '>' . _OPN_HTML_NL;<br />          $txt .= $content._OPN_HTML_NL;<br />          if ($foot != '') {<br />               $txt .= '<div class="themesideboxfootright">' . $foot . '</div>' . _OPN_HTML_NL;<br />          }<br />     }<br />     $txt .= '</div>' . _OPN_HTML_NL;<br /><br />}<br /><br />function themebox_center (&$txt, $title, $content, $foot = '') {<br />     global $opnConfig;<br /><br />     if ( (isset ($opnConfig['current_mb_themeid']) ) && ($opnConfig['current_mb_themeid'] != '') ) {<br />          $idtext = ' id="' . $opnConfig['current_mb_themeid'] . '"';<br />     } else {<br />          $idtext = '';<br />     }<br />     if (!isset ($opnConfig['theme_aktuell_centerbox_pos']) ) {<br />          $opnConfig['theme_aktuell_centerbox_pos'] = 0;<br />     }<br />     <br />     $txt .= '<div class="themecenterboxcontent"' . $idtext . '>'._OPN_HTML_NL;<br />     if ($title !='') {<br />          $txt .= '<h2 class="themecenterboxtitel">' . $title . '</h2>'._OPN_HTML_NL;<br />     }<br /> $txt .= '<div class="themecenterboxtable"' . $idtext . '>'._OPN_HTML_NL;<br />     $txt .= $content._OPN_HTML_NL;<br /> <br />     if ($foot != '') {<br />          $txt .= '<div class="themecenterboxfoot">' . $foot . '</div>'._OPN_HTML_NL;<br />     }<br />     $txt .= '</div></div>'._OPN_HTML_NL;<br /><br /><br />}<br /><br />function OpenTable (&$txt) {<br />     $txt .= '<div class="themeopentable">' . _OPN_HTML_NL;<br />}<br /><br />function CloseTable (&$txt) {<br />     $txt .= '</div>' . _OPN_HTML_NL;<br />}<br /><br />function OpenTable2 (&$txt) {<br />     $txt .= '<div class="centertag"><div class="themeopentable2">' . _OPN_HTML_NL;<br />}<br /><br />function CloseTable2 (&$txt) {<br />     $txt .= '</div></div>' . _OPN_HTML_NL;<br />}<br /><br />function TableContent (&$content) {<br />     $content = '<div class="tablecontent">' . $content . '</div>' . _OPN_HTML_NL;<br />}<br /><br />function OpenWaitBox () {<br />     global $opnTheme, $opnConfig;<br /><br /><br />if ($opnConfig['permission']->HasRights('themes/pe_ch',array(_PERM_BOT, _PERM_READ),true)) {<br />     if ($opnConfig['opn_display_fetching_request'] == 1) {<br />          echo '<div id="waitDiv" class="progressbar">'._WAITBOX_FETCHINGREQUEST. _OPN_HTML_NL;<br />          echo '<br /><img src="' . $opnConfig['opn_url'] . '/themes/' . $opnTheme['thename'] . '/images/await.gif" alt="" /><br />' . _OPN_HTML_NL;<br />          echo _WAITBOX_PLEASEWAIT.'</div>' . _OPN_HTML_NL;<br />          echo '<script type="text/javascript" language="JavaScript1.2">' . _OPN_HTML_NL;<br />          echo '<!--' . _OPN_HTML_NL;<br />          echo 'var DHTML = (document.getElementById || document.all || document.layers);' . _OPN_HTML_NL;<br />          echo 'function ap_getObj(name) {' . _OPN_HTML_NL;<br />          echo 'if (document.getElementById) {' . _OPN_HTML_NL;<br />          echo 'return document.getElementById(name).style; }' . _OPN_HTML_NL;<br />          echo 'else if (document.all) {' . _OPN_HTML_NL;<br />          echo 'return document.all["name"].style; }' . _OPN_HTML_NL;<br />          echo 'else if (document.layers) {' . _OPN_HTML_NL;<br />          echo 'return document.layers["name"]; } }' . _OPN_HTML_NL;<br />          echo 'function ap_showWaitMessage(div,flag) {' . _OPN_HTML_NL;<br />          echo 'if (!DHTML) return false; var x = ap_getObj(div); x.visibility = (flag) ? "visible":"hidden"' . _OPN_HTML_NL;<br />          echo 'if (! document.getElementById) if (document.layers) x.left=280/2; return true; }' . _OPN_HTML_NL;<br />          echo 'ap_showWaitMessage("waitDiv", 1);' . _OPN_HTML_NL;<br />          echo '//-->' . _OPN_HTML_NL;<br />          echo '</script>' . _OPN_HTML_NL;<br />     }<br /> }<br />}<br /><br />?>

Bitte schaut mal drüber.
LG Petra


---------------------------------------------- Ich weiß, das ich nichts weiß --- Sogrates ---


Diese Seite drucken
Diese Seite schließen

Dieser Artikel kommt von: OpenPHPNuke - das Open Source CMS

http://www.openphpnuke.info/