[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_themes/leaf/ -> theme.php (source)

   1  <?php
   2  /*
   3  +---------------------------------------------------------------+
   4  |    e107 website system
   5  |
   6  |    ©Steve Dunstan 2001-2005
   7  |    http://e107.org
   8  |    jalist@e107.org
   9  |
  10  |    Released under the terms and conditions of the
  11  |    GNU General Public License (http://gnu.org).
  12  |
  13  |     $Source: /cvsroot/e107/e107_0.7/e107_themes/leaf/theme.php,v $
  14  |     $Revision: 1.17 $
  15  |     $Date: 2006/11/29 06:17:57 $
  16  |     $Author: e107coders $
  17  +---------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  // [multilanguage]
  23  include_lan(e_THEME."leaf/languages/".e_LANGUAGE.".php");
  24  
  25  // [theme]
  26  $themename = "Leaf";
  27  $themeversion = "1.0";
  28  $themeauthor = "William Moffett [que]";
  29  $themeemail = "que@e107.net";
  30  $themewebsite = "http://e107themes.com";
  31  $themedate = "04/23/05";
  32  $themeinfo = "'Leaf' by <a href='http://e107themes.com' rel='external'>Que</a>, based on the nucleus cms theme by Ivan Fong aka <a href='http://www.stanch.net/'>Stanch</a>.";
  33  $xhtmlcompliant = TRUE;
  34  $csscompliant = TRUE;
  35  $no_core_css = TRUE;
  36  $admin_logo = "1";
  37  $logo = rand(1, 4);
  38  
  39  // [layout]
  40  $layout = "_default";
  41  
  42  // [theme settings]
  43  define("STANDARDS_MODE", TRUE);
  44  define("IMODE", "lite");
  45  define("THEME_DISCLAIMER", "<br /><i>".$themeinfo."</i>");
  46  
  47  // [page defines used for css controll on per page basis]
  48  define("e_PAGE", substr(strrchr($_SERVER['PHP_SELF'], "/"), 1));
  49  define("e_PAGECLASS", str_replace(substr(strrchr(e_PAGE, "."), 0), "", e_PAGE));
  50  
  51  // [navigation]
  52  $register_sc[] = 'UL';
  53  
  54  // [credit links]
  55  $register_sc[] = 'LINKS';
  56  
  57  // [colorstyle] Used for sidbar menus and forum header background color custimization.
  58  $colorstyle ="E2EDF0";
  59  
  60  
  61  // [header function]
  62  function theme_head() {
  63      global $logo, $colorstyle;
  64      return "<link rel='alternate stylesheet' type='text/css' href='".THEME."style.css' title='Small' />
  65      <link rel='alternate stylesheet' type='text/css' href='".THEME."fontstyles/medium.css' title='Medium' />
  66      <link rel='alternate stylesheet' type='text/css' href='".THEME."fontstyles/large.css' title='Large' />
  67      <style type='text/css'>
  68      #header{
  69          position: relative;
  70          width: 700px;
  71          height: 151px;
  72          margin: auto;
  73          background: url(".THEME."images/01_header0".$logo.".jpg) no-repeat;
  74      }
  75      /* Sidbar menu content styles */
  76      .loginform, .searchform, .chatboxform, .onlineform{
  77          background-color: #".$colorstyle.";
  78      }
  79      .defaultform{
  80          background-color: #".$colorstyle.";
  81      }
  82      .forumheader, .forumheader4, .finfobar {
  83          background-color: #".$colorstyle.";
  84      }
  85      </style>";
  86  }
  87  
  88  
  89  $HEADER = "
  90  <div id='header'><!--Start Header-->
  91    <h1><a href='".SITEURL."' title='{SITENAME} home page' accesskey='0'>{SITENAME}</a></h1>
  92    <div id='navigation'>
  93      <h3 class='hidden'>Navigation</h3>
  94      {UL}
  95    </div>
  96    <div id='fontcontrol'>
  97      <h3 class='hidden'>Adjust font size:</h3>
  98      <ul>
  99        <li class='font1'><a href='#' onclick=\"setActiveStyleSheet('Small'); return false;\" title='Small' accesskey='S'><i>Small</i></a></li>
 100        <li class='font2'><a href='#' onclick=\"setActiveStyleSheet('Medium'); return false;\" title='Medium' accesskey='M'><i>Medium</i></a></li>
 101        <li class='font3'><a href='#' onclick=\"setActiveStyleSheet('Large'); return false;\" title='Large' accesskey='L'><i>Large</i></a></li>
 102      </ul>
 103    </div>
 104  </div><!-- Close Header-->
 105  <div id='wrapper'><!--Start Wrapper-->
 106  <div id='container'><!--Start Container-->
 107    <div id='content'><!--Start Content-->
 108      <div class='contentdiv'><!--Start Contentdiv-->
 109          <div class='div".e_PAGECLASS."'>
 110          <!--Database Generated Content-->
 111      ".(e_PAGECLASS == "news" ? "<h2>".LAN_THEME_7."</h2>" : "")."";
 112  
 113  
 114  $FOOTER = "<!--End Database Generated Content-->
 115        </div><!--Close Div pageclass-->
 116      </div><!--Close Contentdiv-->
 117    </div><!--Close Content-->
 118  </div><!--Close Container-->
 119  
 120  <div id='sidebar'>
 121    <div class='sidebardiv'>
 122  {SETSTYLE=sidebar}
 123  <!-- Menu1 -->
 124  {MENU=1}
 125  <!-- End Menu1 -->
 126  <!-- Menu2 -->
 127  {MENU=2}
 128  <!-- End Menu2 -->
 129  {SETSTYLE}
 130  {LINKS}
 131    </div><!-- Close sidebardiv -->
 132  </div><!-- Close sidebar_full -->
 133  <div class='clearing'>&nbsp;</div>
 134  </div><!--Close Wrapper-->
 135  <div id='footer'>
 136  <div id='credits'>{SITEDISCLAIMER}<br />{THEME_DISCLAIMER}</div>
 137  <!--End notes/Credits-->
 138  </div>
 139  <!--Close the tags like a good code monkey ;)-->";
 140  
 141  $CUSTOMHEADER = "
 142  <div id='header'><!--Start Header-->
 143   <h1><a href='".SITEURL."' title='{SITENAME} : home page' accesskey='0'>{SITENAME}</a></h1>
 144    <div id='navigation'>
 145      <h3 class='hidden'>Navigation</h3>
 146      {UL}
 147    </div>
 148    <div id='fontcontrol'>
 149      <h3 class='hidden'>Adjust font size:</h3>
 150      <ul>
 151        <li class='font1'><a href='#' onclick=\"setActiveStyleSheet('Small'); return false;\" title='Small' accesskey='S'><i>Small</i></a></li>
 152        <li class='font2'><a href='#' onclick=\"setActiveStyleSheet('Medium'); return false;\" title='Medium' accesskey='M'><i>Medium</i></a></li>
 153        <li class='font3'><a href='#' onclick=\"setActiveStyleSheet('Large'); return false;\" title='Large' accesskey='L'><i>Large</i></a></li>
 154      </ul>
 155    </div>
 156  </div><!-- Close Header-->
 157  <div id='wrapper'><!--Start Wrapper-->
 158  <div id='container_full'><!--Start Container-->
 159    <div id='content_full'><!--Start Content-->
 160      <div class='contentdiv'><!--Start Contentdiv-->
 161          <div class='div".e_PAGECLASS."'><!--Start Div pageclass-->
 162          <!--Database Generated Content-->";
 163  
 164  
 165  $CUSTOMFOOTER = "<!--End Database Generated Content-->
 166        </div><!--Close Div pageclass-->
 167      </div><!--Close Contentdiv-->
 168    </div><!--Close Content-->
 169  </div><!--Close Container-->
 170  <div class='clearing'>&nbsp;</div>
 171  </div><!--Close Wrapper-->
 172  <div id='footer'>
 173  <div id='credits'>{SITEDISCLAIMER}<br />{THEME_DISCLAIMER}</div>
 174  <!--End notes/Credits-->
 175  </div>
 176  <!--Close the tags like a good code monkey ;)-->";
 177  
 178  $CUSTOMPAGES = "content_manager.php signup.php fpw.php forum.php forum_viewforum.php forum_viewtopic.php theme.php usersettings.php submitnews.php";
 179  
 180  // [newsstyle]
 181  function news_style($news) {
 182  
 183      $mydate  = strftime("%d/%m :", $news['news_datestamp']);
 184      $NEWSSTYLE = "<!-- news item --><div class='contentbody'>
 185              <h3 class='news'>$mydate&nbsp; {NEWSTITLE}</h3>
 186      {NEWSICON}&nbsp;{STICKY_ICON}&nbsp;
 187      {NEWSBODY}
 188      {EXTENDED}
 189              <br /><br />
 190              <div class='itemdetails'>
 191                <span class='item1'>{NEWSAUTHOR}</span>&nbsp;
 192                <span class='item2'>{NEWSCATEGORY}</span>&nbsp;
 193                <span class='item3'>{NEWSCOMMENTS}&nbsp;</span>
 194                <span class='item4'>{EMAILICON}&nbsp;</span>
 195                <span class='item5'>{PRINTICON}&nbsp;</span>
 196                <span class='item5'>{PDFICON}&nbsp;</span>
 197              </div>
 198              </div><!-- end news item -->";
 199      return $NEWSSTYLE;
 200  }
 201  
 202  // [newsliststyle]
 203  $NEWSLISTSTYLE = "";
 204  
 205  define("ICONSTYLE", "border:0");
 206  define("COMMENTLINK", LAN_THEME_1);
 207  define("COMMENTOFFSTRING", LAN_THEME_2);
 208  define("EXTENDEDSTRING", LAN_THEME_4);
 209  
 210  // [linkstyle]
 211  define(PRELINK, "");
 212  define(POSTLINK, "");
 213  define(LINKSTART, "");
 214  define(LINKEND, "");
 215  define(LINKDISPLAY, "");  // 1 - along top, 2 - in left or right column
 216  
 217  // [tablestyle]
 218  function tablestyle($caption, $text, $mode=""){
 219      global $style;
 220      if(ADMIN){
 221              // echo "Style: ".$style.", Mode: ".$mode;
 222      }
 223      if($style == "sidebar"){  // sidebar styles
 224  
 225          echo "<div class='sidebarbody'>";
 226  
 227          if($mode){
 228                  if($caption != ""){
 229                          echo "<h3 class='".$mode."'>".$caption."</h3>";
 230                          if($text != ""){
 231                                  echo "<div class='sidebarin'><div class='defaultform'>".$text."</div></div>\n";
 232                          }
 233                  }else{
 234                          echo "<div class='sidebarin'><div class='defaultform'>".$text."</div></div>\n";
 235                  }
 236          }else{
 237              if($caption != ""){
 238                          echo "<h3>".$caption."</h3>";
 239                          if($text != ""){
 240                              echo "<div class='sidebarin'><div class='defaultform'>".$text."</div></div>\n";
 241                          }
 242                  }else{
 243                          echo "<div class='sidebarin'><div class='defaultform'>".$text." </div></div>\n";
 244                  }
 245          }
 246          echo "</div>\n";
 247      }else{
 248          echo "<h2>".$caption."</h2>
 249          <div class='contentbody'>".$text."</div>";
 250       }
 251  }
 252  
 253  // [commentstyle]
 254  $COMMENTSTYLE = "";
 255  
 256  // [chatboxstyle]
 257  $CHATBOXSTYLE = "";
 258  
 259  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7