[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

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

   1  <?php
   2  /*
   3  + ----------------------------------------------------------------------------+
   4  |     e107 website system
   5  |
   6  |     ©Steve Dunstan 2001-2002
   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/jayya/theme.php,v $
  14  |     $Revision: 1.56 $
  15  |     $Date: 2006/12/24 13:46:54 $
  16  |     $Author: mrpete $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  // Protect the file from direct access
  21  if (!defined('e107_INIT')) { exit; }
  22  
  23  
  24  // Get language definition files for this theme
  25  @include_once(e_THEME."jayya/languages/".e_LANGUAGE.".php");
  26  @include_once(e_THEME."jayya/languages/English.php");
  27  
  28  
  29  // [theme]
  30  
  31  $themename = "Jayya";
  32  $themeversion = "1.0";
  33  $themeauthor = "";
  34  $themedate = "";
  35  $themeinfo = "";
  36  $xhtmlcompliant = TRUE;
  37  $csscompliant = TRUE;
  38  define("THEME_DISCLAIMER", "");
  39  define("IMODE", "lite");
  40  
  41  // [dont render core style sheet link]
  42  
  43  $no_core_css = TRUE;
  44  
  45  
  46  // [layout]
  47  
  48  $layout = "_default";
  49  
  50  $HEADER = "<table class='page_container'>
  51  <tr>
  52  <td>
  53  
  54  <table class='top_section'>
  55  <tr>
  56  <td class='top_section_left' style='width: 190px; padding-left: 5px; padding-right: 5px'>
  57  {LOGO}
  58  </td>
  59  <td class='top_section_mid'>
  60  {BANNER}
  61  </td>
  62  
  63  <td class='top_section_right' style='padding: 0px; white-space: nowrap; width: 170px'>
  64  {CUSTOM=search+default}
  65  </td>
  66  </tr>
  67  </table>
  68  
  69  <div>
  70  {SITELINKS_ALT=".THEME_ABS."images/arrow.png+noclick}
  71  </div>
  72  
  73  <table class='main_section'>
  74  <colgroup>
  75  <col style='width: 170px' />
  76  <col style='width: auto' />
  77  <col style='width: 170px' />
  78  </colgroup>
  79  
  80  <tr>
  81  <td class='left_menu'>
  82  <table class='menus_container'><tr><td>
  83  {SETSTYLE=leftmenu}
  84  {MENU=1}
  85  </td></tr></table>
  86  </td>
  87  <td class='default_menu'>
  88  {SETSTYLE=default}
  89  {WMESSAGE}
  90  ";
  91  
  92  $FOOTER = "<br />
  93  </td>
  94  
  95  <td class='right_menu'>
  96  <table class='menus_container'><tr><td>
  97  {SETSTYLE=rightmenu}
  98  {MENU=2}
  99  </td></tr></table>
 100  </td>
 101  </tr>
 102  </table>
 103  <div style='text-align:center'>
 104  <br />
 105  {SITEDISCLAIMER}
 106  <br /><br />
 107  </div>
 108  </td>
 109  </tr>
 110  </table>
 111  ";
 112  
 113  
 114  // [linkstyle]
 115  
 116  define('PRELINK', '');
 117  define('POSTLINK', '');
 118  define('LINKSTART', '');
 119  define('LINKEND', '');
 120  define('LINKDISPLAY', 1);
 121  define('LINKALIGN', 'left');
 122  
 123  
 124  // [newsstyle]
 125  
 126  $sc_style['NEWSIMAGE']['pre'] = "<td style='padding-right: 7px; vertical-align: top'>";
 127  $sc_style['NEWSIMAGE']['post'] = "</td>";
 128  
 129  $NEWSSTYLE = "<div class='cap_border'><div class='main_caption'><div class='bevel'>
 130  {STICKY_ICON}{NEWSTITLE}
 131  </div></div></div>
 132  <div class='menu_content'>
 133  <table style='width: 100%'>
 134  <tr>
 135  {NEWSIMAGE}
 136  <td style='width: 100%; vertical-align: top'>
 137  {NEWSBODY}
 138  {EXTENDED}
 139  <br />
 140  </td>
 141  </tr>
 142  </table>
 143  </div>
 144  <div class='menu_content'>
 145  <table class='news_info'>
 146  <tr>
 147  <td style='text-align: center; padding: 3px; padding-bottom: 0px; white-space: nowrap'>
 148  {NEWSICON}
 149  </td>
 150  <td style='width: 100%; padding: 0px; padding-bottom: 0px; padding-left: 2px'>
 151  ".LAN_THEME_5."
 152  {NEWSAUTHOR}
 153   ".LAN_THEME_6."
 154  {NEWSDATE}
 155  </td><td style='text-align: center; padding: 3px; padding-bottom: 0px; white-space: nowrap'>
 156  <img src='".THEME_ABS."images/comments_16.png' style='width: 16px; height: 16px' alt='' />
 157  </td>
 158  <td style='padding: 0px; padding-left: 2px; white-space: nowrap'>
 159  {NEWSCOMMENTS}
 160  </td><td style='padding: 0px; white-space: nowrap'>
 161  {TRACKBACK}
 162  </td><td style='text-align: center; padding: 3px; padding-bottom: 0px; padding-left: 7px; white-space: nowrap'>
 163  {EMAILICON}
 164  {PRINTICON}
 165  {PDFICON}
 166  {ADMINOPTIONS}
 167  </td></tr></table>
 168  <br /></div>";
 169  
 170  define('ICONMAIL', 'email_16.png');
 171  define('ICONPRINT', 'print_16.png');
 172  define('ICONSTYLE', 'border: 0px');
 173  define('COMMENTLINK', LAN_THEME_2);
 174  define('COMMENTOFFSTRING', LAN_THEME_1);
 175  define('PRE_EXTENDEDSTRING', '<br /><br />[ ');
 176  define('EXTENDEDSTRING', LAN_THEME_3);
 177  define('POST_EXTENDEDSTRING', ' ]<br />');
 178  define('TRACKBACKSTRING', LAN_THEME_4);
 179  define('TRACKBACKBEFORESTRING', '&nbsp;|&nbsp;');
 180  
 181  
 182  //    [tablestyle]
 183  
 184  function tablestyle($caption, $text, $mode){
 185      global $style;
 186      $caption = $caption ? $caption : '&nbsp;';
 187      if ((isset($mode['style']) && $mode['style'] == 'button_menu') || (isset($mode) && ($mode == 'menus_config'))) {
 188          $menu = ' buttons';
 189          $bodybreak = '';
 190          $but_border = ' button_menu';
 191      } else {
 192          $menu = '';
 193          $bodybreak = '<br />';
 194          $but_border = '';
 195      }
 196  
 197      $menu .= ($style && $style != 'default') ? ' non_default' : '';
 198  
 199      echo "<div class='cap_border".$but_border."'>";
 200      if ($style == 'leftmenu') {
 201          echo "<div class='left_caption'><div class='bevel'>".$caption."</div></div>";
 202      }  else if ($style == 'rightmenu') {
 203          echo "<div class='right_caption'><div class='bevel'>".$caption."</div></div>";
 204      } else {
 205          echo "<div class='main_caption'><div class='bevel'>".$caption."</div></div>";
 206      }
 207      echo "</div>";
 208      if ($text != "") {
 209          echo "<table class='cont'><tr><td class='menu_content ".$menu."'>".$text.$bodybreak."</td></tr></table>";
 210      }
 211  }
 212  
 213  
 214  // chatbox post style
 215  $CHATBOXSTYLE = "
 216  <img src='".e_IMAGE."admin_images/chatbox_16.png' alt='' style='width: 16px; height: 16px; vertical-align: bottom' />
 217  <b>{USERNAME}</b><br />{TIMEDATE}<br />{MESSAGE}<br /><br />";
 218  
 219  
 220  // comment post style
 221  $sc_style['REPLY']['pre'] = "<tr><td class='forumheader'>";
 222  $sc_style['REPLY']['post'] = "";
 223  
 224  $sc_style['SUBJECT']['pre'] = "<td class='forumheader'>";
 225  $sc_style['SUBJECT']['post'] = "</td></tr>";
 226  
 227  $sc_style['COMMENTEDIT']['pre'] = "<tr><td class='forumheader' colspan='2' style='text-align: right'>";
 228  $sc_style['COMMENTEDIT']['post'] = "</td></tr>";
 229  
 230  $sc_style['JOINED']['post'] = "<br />";
 231  
 232  $sc_style['LOCATION']['post'] = "<br />";
 233  
 234  $sc_style['RATING']['post'] = "<br /><br />";
 235  
 236  $sc_style['RATING']['post'] = "<br />";
 237  
 238  $COMMENTSTYLE = "<div class='spacer' style='text-align:center'><table class='fborder' style='width: 95%'>
 239  <tr>
 240  <td class='fcaption' colspan='2'>".LAN_THEME_5." {USERNAME} ".LAN_THEME_6." {TIMEDATE}
 241  </td>
 242  </tr>
 243  {REPLY}{SUBJECT}
 244  <tr>
 245  <td style='width: 20%; vertical-align: top' class='forumheader3'>
 246  <div style='text-align: center'>
 247  {AVATAR}
 248  </div>
 249  {LEVEL}<span class='smalltext'>{JOINED}{COMMENTS}{LOCATION}{IPADDRESS}</span>
 250  </td>
 251  <td style='width: 80%; vertical-align: top' class='forumheader3'>
 252  {COMMENT}
 253  {RATING}
 254  {SIGNATURE}
 255  </td>
 256  </tr>
 257  {COMMENTEDIT}
 258  </table>
 259  </div>";
 260  
 261  
 262  // poll style
 263  $POLLSTYLE = "<img src='".THEME_ABS."images/polls.png' style='width: 10px; height: 14px; vertical-align: bottom' /> {QUESTION}
 264  <br /><br />
 265  {OPTIONS=<img src='".THEME_ABS."images/bullet2.gif' style='width: 10px; height: 10px' /> OPTION<br />BAR<br /><span class='smalltext'>PERCENTAGE VOTES</span><br /><br />}
 266  <div style='text-align:center' class='smalltext'>{AUTHOR}<br />{VOTE_TOTAL} {COMMENTS}
 267  <br />
 268  {OLDPOLLS}
 269  </div>";
 270  
 271  ?>


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