Ignore:
Timestamp:
Dec 2, 2014, 6:51:29 AM (9 years ago)
Author:
SergeD
Message:

version 1.0.15 - please refer to changelog for more details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/greydragon/include/greydragon.class.php

    r30484 r30643  
    5353      "p_pict_tab_default" => array("value" => "desc",   "quotes" => QUOTES_NONE),
    5454      "p_pict_tab_anim"    => array("value" => "off",    "quotes" => QUOTES_NONE),
     55      "p_pict_tab_exif"    => array("value" => "on",     "quotes" => QUOTES_NONE),
    5556
    5657      // Advanced Options - Root Page
     
    5859      "p_rootpage_desc"    => array("value" => null,     "quotes" => QUOTES_SAFE | QUOTES_LAZY),
    5960      "p_rootpage_src"     => array("value" => "slider", "quotes" => QUOTES_NONE),
     61      "p_rootpage_size"    => array("value" => "M",      "quotes" => QUOTES_NONE),
    6062      "p_rootpage_id"      => array("value" => 1,        "quotes" => QUOTES_NONE),
    6163      "p_rootpage_mode"    => array("value" => "fade",   "quotes" => QUOTES_NONE),
     
    7173
    7274  private function loadConfig($ver = '') {
    73     global $conf;
     75    global $conf, $pwg_loaded_plugins;
    7476    $this->themeConfigMin = unserialize($conf['greydragon']);
    7577    $this->themeConfigMin["version"] = $ver;
     78    $this->themeConfigMin["hasUserTags"] = isset($pwg_loaded_plugins['user_tags']);
    7679
    7780    $this->themeConfig = $this->validateDefault($this->themeConfigMin);
     
    232235    $r_desc    = $this->getOption('p_rootpage_desc');
    233236    $r_scr     = $this->getOption('p_rootpage_src');
     237    $r_size    = $this->getOption('p_rootpage_size');
    234238    $r_mode    = $this->getOption('p_rootpage_mode');
    235239    $r_id      = $this->getOption('p_rootpage_id');
     
    256260
    257261      if ($r_scr == "photo"):
    258         $content .= '[photo id=' . $r_id . ' size=M html=yes link=no]';
     262        $content .= '[photo id=' . $r_id . ' size=' . $r_size . ' html=yes link=no]';
    259263      elseif ($r_scr == "random"):
    260         $content .= '[random album=' . $r_id . ' size=M html=yes link=no]';
     264        $content .= '[random album=' . $r_id . ' size=' . $r_size . ' html=yes link=no]';
    261265      else:
    262         $content .= '[slider album=' . $r_id . ' nb_images=10 random=yes size=M speed=' . $r_delay . ' title=no effect=' . $r_mode . ' arrows=' . $r_navarr . ' control=' . $r_navctr . ' elastic=' . $r_elastic . ']';
     266        $content .= '[slider album=' . $r_id . ' nb_images=10 random=yes size=' . $r_size . ' speed=' . $r_delay . ' title=no effect=' . $r_mode . ' arrows=' . $r_navarr . ' control=' . $r_navctr . ' elastic=' . $r_elastic . ']';
    263267      endif;
    264268      $content .= '     
Note: See TracChangeset for help on using the changeset viewer.