Changeset 17717 for extensions/GuestBook


Ignore:
Timestamp:
Sep 3, 2012, 5:02:09 PM (12 years ago)
Author:
mistic100
Message:

display improved on clear themes

Location:
extensions/GuestBook
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/include/guestbook.inc.php

    r17317 r17717  
    318318$template->assign('ABS_GUESTBOOK_PATH', dirname(__FILE__).'/../');
    319319$template->assign('GUESTBOOK_PATH', GUESTBOOK_PATH);
     320
     321$template->assign('clear_themes', array(
     322  'clear',
     323  'gally-minimalist',
     324  'hr_os',
     325  'hr_os_xl',
     326  'kardon',
     327  'montblancxl',
     328  'Naive',
     329  'OS_glass_clear',
     330  'p0w0',
     331  'Pure_autumn',
     332  'Pure_clear_blue',
     333  'Pure_sky',
     334  'Pure_tr_clear_blue',
     335  'simple-white',
     336  'VerticalWhite',
     337  ));
     338
    320339$template->set_filename('index', dirname(__FILE__).'/../template/guestbook.tpl');
    321340
  • extensions/GuestBook/main.inc.php

    r17317 r17717  
    1414
    1515
    16 define('GUESTBOOK_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
     16define('GUESTBOOK_PATH' ,  PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
    1717define('GUESTBOOK_TABLE' , $prefixeTable . 'guestbook');
    18 define('GUESTBOOK_ADMIN', get_root_url().'admin.php?page=plugin-' . basename(dirname(__FILE__)));
     18define('GUESTBOOK_ADMIN',  get_root_url().'admin.php?page=plugin-' . basename(dirname(__FILE__)));
     19define('GUESTBOOK_URL',    get_absolute_root_url() . make_index_url(array('section' => 'guestbook')));
    1920
    2021add_event_handler('init', 'gb_init');
     
    4748function gb_menubar_apply($menu_ref_arr)
    4849{
    49   $menu = &$menu_ref_arr[0];
    50  
    51   define('GUESTBOOK_URL', make_index_url(array('section' => 'guestbook')));
     50  $menu = &$menu_ref_arr[0]; 
    5251 
    5352  if ( ($block = $menu->get_block('mbMenu')) != null )
  • extensions/GuestBook/template/guestbook.tpl

    r17495 r17717  
    11{combine_css path=$GUESTBOOK_PATH|@cat:"template/style.css"}
     2{$themeconf.name}
     3{if $themeconf.name|in_array:$clear_themes}
     4  {combine_css path=$GUESTBOOK_PATH|@cat:"template/style-clear.css"}
     5{/if}
    26
    37{if $comment_add.ACTIVATE_RATING}
  • extensions/GuestBook/template/style.css

    r17495 r17717  
    44  margin:10px auto 25px auto;
    55  background: #333333;
    6   background: -moz-linear-gradient(top,  #333333 0%, #252525 100%);
    7   background: -webkit-linear-gradient(top,  #333333 0%,#252525 100%);
    8   background: -o-linear-gradient(top,  #333333 0%,#252525 100%);
    9   background: -ms-linear-gradient(top,  #333333 0%,#252525 100%);
    10   background: linear-gradient(top,  #333333 0%,#252525 100%);
     6  background: -moz-linear-gradient(top, #333333 0%, #252525 100%);
     7  background: -webkit-linear-gradient(top, #333333 0%, #252525 100%);
     8  background: -o-linear-gradient(top, #333333 0%, #252525 100%);
     9  background: -ms-linear-gradient(top, #333333 0%, #252525 100%);
     10  background: linear-gradient(top, #333333 0%, #252525 100%);
    1111  border-radius:5px;
    1212  border:1px solid #555;
Note: See TracChangeset for help on using the changeset viewer.