Changeset 19217


Ignore:
Timestamp:
Nov 29, 2012, 1:47:34 PM (8 years ago)
Author:
cljosse
Message:

[style] Gally-cuise fix compatibility with 2.4 (gally-grum-dark-II)

Location:
extensions/gally/gally-cuise
Files:
1 added
3 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-cuise/admin/admin.inc.php

    r19131 r19217  
    11<?php
    22/* -----------------------------------------------------------------------------
    3   Theme      : Gally/Cuise
    4   Author     : Grum + cljosse
     3  Theme      : Gally/Grum dark II
     4  Author     : Grum
    55    email    : grum@piwigo.org
    6     website  : http://cl.josse.free.fr/Galerie
     6    website  : http://photos.grum.fr
    77
    88    << May the Little SpaceFrog be with you ! >>
     
    1313include_once(PHPWG_THEMES_PATH.'gally-default/admin/GallyDefault.class.inc.php');
    1414
    15 $interface = new GallyDefault("Gally/cuise", "", PHPWG_THEMES_PATH.'gally-cuise/conf');
     15$interface = new GallyDefault("Gally/Grum dark II", "", PHPWG_THEMES_PATH.'gally-grum-dark-II/conf');
    1616
    1717?>
  • extensions/gally/gally-cuise/conf/default.conf

    r19131 r19217  
    11# ------------------------------------------------------------------------------
    2 # GRUM:CUISE
     2# GRUM:DARK-II
    33# Theme for Piwigo
    44# ------------------------------------------------------------------------------
    5 # file: gally-cuise/conf/default.conf
    6 # file release: 1.3.0
     5# file: gally-grum-dark-II/conf/default.conf
     6# file release: 1.5.0
    77# ------------------------------------------------------------------------------
    88# author: grum at piwigo.org
    99# << May the Little SpaceFrog be with you >>
    1010# ------------------------------------------------------------------------------
    11 # Cuise for themes "Gally"
     11# Grum dark II for themes "Gally"
    1212#
    1313# see the gally-default/release_notes.txt file for more informations
     
    1717# To modify theses default options, you can make a "local.conf" file with new
    1818# declaration of parameters
    19 # Local files must be localized in the /local/themes/gally-cuise/conf
     19# Local files must be localized in the /local/themes/gally-grum-dark-II/conf
    2020# directory
    2121#
     
    233233#
    234234# please note that under MSIE, the "auto" option don't work as well as other browser
    235 menuWidth = "190"
     235menuWidth = "auto"
    236236
    237237# The 'menuMaxWidth' option is used when the 'menuWidth' option is set to "auto"
     
    244244# 'menuMSIEMaxWidth' option you can force a maximum width only for this browser
    245245# This option is not used when the 'menuAnimated' option is set to "noswitch"
    246 menuMaxWidth = 190
    247 menuMSIEMaxWidth = 190
     246menuMaxWidth = 0
     247menuMSIEMaxWidth = 350
    248248
    249249# -- 1.3.0 --
  • extensions/gally/gally-cuise/css/theme.css

    r19131 r19217  
    11/* -----------------------------------------------------------------------------
    2   CUISE
     2  GRUM:DARK-II
    33  A Gally's theme for Piwigo
    44  ------------------------------------------------------------------------------
    5   file: gally-cuise/css/theme.css
     5  file: gally/grum-dark II/theme.css
    66  file version: 1.5.0
    77  ------------------------------------------------------------------------------
    8   author: grum at grum.fr + cljosse
     8  author: grum at grum.fr
    99  << May the Little SpaceFrog be with you >>
    1010  ------------------------------------------------------------------------------
    11   cuise for template "Gally"
     11  Grum-dark II for template "Gally"
    1212----------------------------------------------------------------------------- */
    1313
  • extensions/gally/gally-cuise/js/theme.js

    r19131 r19217  
    2121  {
    2222    gallyCuise = new GallyCuise();
    23   }
     23 
     24 
     25    jQuery('a.pwg-state-default').each(function (i) {
     26      obj = this;
     27
     28
     29      jQuery(obj).addClass("button").removeClass('pwg-state-default').removeClass('pwg-button');
     30      html = jQuery(obj).html();
     31      if (html.indexOf("url(") > 0) {
     32
     33        id = this.id;
     34        jQuery(this).css({
     35         backgroundPosition:"-588px +28px" 
     36         
     37         });
     38        htmls = html.split("url(");
     39        htmls = htmls[1].split(")");
     40        html = "<img src=" + htmls[0] + " class='pwg-button img_button'   />";
     41 
     42      }else if (html.indexOf("map") > 0) {
     43      html="";
     44      jQuery(this).css({
     45         backgroundPosition:"-588px -28px" ,
     46         position:'relative'
     47        // bottom:'-10px',left:'-5px'
     48         });
     49      }
     50
     51      jQuery(obj).html(html);
     52    });
     53 }
    2454);
    2555
     
    2757  function GallyCuise()
    2858{
    29   function init()
    30   {
     59  function init() {
     60
     61 
    3162    // apply specific actions for categories pages
    3263    if(jQuery('#theCategoryPage').length>0)
     
    4172    }
    4273    setTipPosition_Menu();
     74    win_height = jQuery("#thumbContents").height();
     75    if (!win_height)
     76      win_height = jQuery("#theImage").height();
     77
    4378  }
    4479
  • extensions/gally/gally-cuise/local_head.tpl

    r19131 r19217  
     1
     2{php}
     3global $themeconf,$mytheme;
     4$mytheme = 'themes/'.$themeconf['name'].'/';
     5$mycss="theme.css.php";
     6  {/php}
     7<!-- gally-cuise **LOCAL** >HEADER> {php} echo  $mytheme.$mycss ;  {/php} -->
     8 <link rel="stylesheet" href="{php} echo  $mytheme.$mycss ;  {/php}"  type="text/css" />
    19<!-- **LOCAL** >HEADER> -->
    2  <style type="text/css">
    3 {php} 
    4 include('themes/gally-cuise/css/cuise_theme.css.php');
    5 {/php}
    6 </style>
    7 <!-- **LOCAL** >HEADER> -->
  • extensions/gally/gally-cuise/themeconf.inc.php

    r19131 r19217  
    11<?php
    22/*
    3 Theme Name: Gally/cuise
     3Theme Name: Gally/Cuise
    44Version: 2.0.7
    55Description: Cuise theme
     
    99*/
    1010
     11
     12global $themeconf ;
     13 
     14
    1115$themeconf = array(
    1216  'name' => 'gally-cuise',
    13   'theme' => 'gally-cuise',
     17  'theme_dir' => 'gally-cuise',
     18  'img_dir' => 'themes/gally-cuise/images',
     19
    1420  'parent' => 'gally-default',
    1521  'icon_dir' => 'themes/gally-cuise/icon',
    16   'mime_icon_dir' => 'themes/gally-cuise/icon/mimetypes/',
    17  'local_head'           => 'local_head.tpl',
     22
     23  'admin_icon_dir' => 'themes/default/icon/admin',
     24  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
     25  'local_head' => 'local_head.tpl',
     26  'load_parent_local_head' => true,
    1827);
     28
    1929?>
Note: See TracChangeset for help on using the changeset viewer.