Changeset 4494


Ignore:
Timestamp:
12/14/09 23:56:22 (10 years ago)
Author:
vdigital
Message:

[Update] For Juza - Juza Theme Configuration Menu

  • Activate Juza handlers
  • Index picture max-width [300:885]
  • Index picture cropping-height [110:400]
  • Index picture top-shift [-320:0]
  • Auto cropping and shifting

Pendings:

  • Configuration (Apply)
  • Exception management
  • Menubar
Location:
extensions/Juza
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Juza/script.tpl

    r4482 r4494  
     1{if isset($Juza_active)} 
    12{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 
    23{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"} 
    34{assign var=JUZA value=$ROOT_URL|@cat:"template/"|@cat:$themeconf.template|@cat:"/theme/"|@cat:$themeconf.theme} 
    45{known_script id="juza" src=$JUZA|@cat:"/js/juzascript.js"} 
     6{/if} 
    57<table cellspacing="0" class="juzabar"> 
    68<tbody><tr> 
     
    2224</div> 
    2325{/if} 
    24 {php} 
    25   global $template; 
    26   if ( is_admin() ) 
    27     $template->append('footer_elements', ' - Juza Theme <a title="Juza Configuration" href="index.php?&Juza_config=true">' . l10n('Configuration') .'</a>'); 
    28   if ( isset($_GET['Juza_config']) ) $this->assign('Juza_config', true); 
    29 {/php} 
    3026{if isset($Juza_config)} 
    31 <form id="Juza_config" method="post" class="properties" action="index.php?&Juza_config=true&Juza_viewed=true"> 
     27<form id="Juza_config" method="post" class="properties" action="index.php"> 
    3228<fieldset id="Juza_config_fs"> 
     29  <legend><span class="legend">{'Juza Theme Configuration'|@translate}</span></legend> 
    3330  <ul> 
    3431    <li> 
     
    6966</fieldset> 
    7067  <p> 
     68    <input type="hidden" value="true" name="Juza_conf" /> 
    7169    <input class="submit" type="submit" name="Juza_submit" value="{'Submit'|@translate}"> 
     70    <input class="submit" type="submit" name="Juza_reset" value="{'Reset'|@translate}"> 
     71    <input class="submit" type="submit" name="Juza_close" value="{'Close'|@translate}"> 
    7272  </p> 
    7373</form> 
  • extensions/Juza/theme.css

    r4482 r4494  
    1313.juzabar { margin: 12pt 0 6pt; font-size: 10pt; width: 100%; background-color: #353735 !important; text-align: center; } 
    1414 
    15 a { color: #FB9700 !important } 
    16 a:hover { color: #ef5810 !important } 
     15input.conf, a { color: #FB9700 !important } 
     16input.conf:hover, a:hover { color: #ef5810 !important } 
    1717h3 img.icon { display: none !important; } 
    1818img.icon[alt="(!)"] { display: none; } 
     
    3535.content ul.thumbnailCategories li { width:100%; } 
    3636.content ul.thumbnailCategories li.Juza-cat { margin:0 0 20px; height:295px; min-height:295px; } 
    37  
     37input[type="submit"].conf { border:0;margin-top: 7; margin-bottom: 0;background-color: transparent !important; font-weight:normal; } 
    3838a.home { position: absolute; left: 20px; top: 20px; font-size:9px; } 
    3939.content ul.thumbnails span.wrap1 { background-color: #000 !important; width: 140px; height: 140px; min-width: 140px; min-height: 140px; max-width: 140px; max-height: 140px; margin:0 2px 2px 0; border: 1px solid #444; } 
     
    5858#Juza_config input[type="submit"] { margin:10px auto 15px;  } 
    5959#Juza_config .range { text-align: left; float: left; margin-left: 10px; font-style:italic; } 
     60legend .legend { padding: 0 10px; } 
    6061#copyright { margin-top: 885px; } 
    6162#copyright * { color: #383838; } 
  • extensions/Juza/themeconf.inc.php

    r4482 r4494  
    2121global $user, $conf; 
    2222$user["expand"] = true; /* Forced to assign subcategory links inside each category on index page */ 
    23 if (!isset($conf['Juza_active'])) $conf['Juza_active'] = true; /* Missing = active */ 
    2423 
    2524/* No handlers at all or Open ? */ 
    26 if ($conf['enable_plugins'] and $conf['Juza_active']) {  
     25if ($conf['enable_plugins']) {  
    2726  include_once(JUZA_PATH.'include/functions.inc.php'); 
    2827  add_event_handler('loc_after_page_header', 'Juza_hook', 20); 
    29   if (isset($_GET['Juza_config'])) { 
    30     add_event_handler('loc_after_page_header', 'Juza_admin', 10); 
    31   } 
    3228} 
    3329?> 
Note: See TracChangeset for help on using the changeset viewer.