Changeset 5544


Ignore:
Timestamp:
04/01/10 20:34:22 (9 years ago)
Author:
Gotcha
Message:

Add a admin panel (thanks to P@tounet)
bug:1563

Location:
extensions/sobre
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/sobre/language/en_UK/theme.lang.php

    r5543 r5544  
    11<?php 
    22 
    3 $lang['Theme: Black & White'] = 'Thème Black & White By <a href="http://www.julien-moreau.fr/" title="Gotcha">Gotcha</a>.'; 
     3$lang['Display page banner on home page'] = 'Display page banner on home page'; 
     4$lang['Display page banner on categories pages'] = 'Display page banner on categories pages'; 
     5$lang['Display page banner on picture page'] = 'Display page banner on picture page'; 
     6$lang['Display page banner on other pages'] = 'Display page banner on other pages'; 
     7$lang['Theme by'] = 'Thème Black & White By <a href="http://www.julien-moreau.fr/" title="Gotcha">Gotcha</a>.'; 
    48 
    59?> 
  • extensions/sobre/language/fr_FR/theme.lang.php

    r5543 r5544  
    11<?php 
    2  
    3 $lang['Theme: Black & White'] = 'Thème Black & White par <a href="http://www.julien-moreau.fr/" title="Gotcha">Gotcha</a>.'; 
     2$lang['Display page banner on home page'] = 'Afficher la bannière sur la page d\'accueil'; 
     3$lang['Display page banner on categories pages'] = 'Afficher la bannière sur la page des catégories'; 
     4$lang['Display page banner on picture page'] = 'Afficher la bannière sur la page des photos'; 
     5$lang['Display page banner on other pages'] = 'Afficher la bannière sur les autres pages'; 
     6$lang['Theme by'] = 'Thème Sobre par <a href="http://www.julien-moreau.fr/" title="Gotcha">Gotcha</a>.'; 
    47 
    58?> 
  • extensions/sobre/theme.css

    r5543 r5544  
     1/* The header */ 
     2#theHeader p {display:none;} 
    13 
    24/* text color */ 
  • extensions/sobre/themeconf.inc.php

    r5543 r5544  
    1111 
    1212$themeconf = array( 
     13  'parent' => 'default', 
    1314  'name'  => 'sobre', 
    14   'parent' => 'default', 
     15  'local_head'  => 'local_head.tpl', 
    1516); 
    1617 
     18add_event_handler('loc_begin_page_header', 'set_sbre_header'); 
     19 
     20function set_sbre_header() 
     21{ 
     22  global $page, $conf, $template; 
     23 
     24  $config = unserialize($conf['Sobre']); 
     25 
     26  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage') 
     27  { 
     28    $header = isset($page['category']) ? $config['categories'] : $config['home']; 
     29  } 
     30  elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage') 
     31  { 
     32    $header = $config['picture']; 
     33  } 
     34  else 
     35  { 
     36    $header = $config['other']; 
     37  } 
     38 
     39  $template->assign('display_sbre_banner', $header); 
     40} 
     41 
    1742?> 
Note: See TracChangeset for help on using the changeset viewer.