Changeset 32472 for extensions


Ignore:
Timestamp:
Mar 4, 2021, 10:43:07 PM (4 years ago)
Author:
SergeD
Message:

Version 1.3.5 - see changelog for details

Location:
extensions/greydragon
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/greydragon/admin/admin.inc.php

    r32028 r32472  
    4444endif;
    4545
    46 $template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
    47 
    48 foreach ($template->smarty->tpl_vars['plugin_menu_items']->value as $key => $value):
    49   if ($value["NAME"] == "Additional Pages"):
    50     $themeCore->setSetting("hasAP", "yes");
    51   endif;
    52   if ($value["NAME"] == "Extended Description"):
    53     $themeCore->setSetting("hasED", "yes");
    54   endif;
    55   if ($value["NAME"] == "gdThumb"):
    56     $themeCore->setSetting("hasGT", "yes");
    57   endif;
    58   if ($value["NAME"] == "Admin Tools"):
    59     $themeCore->setSetting("hasAT", "yes");
    60   endif;
    61 endforeach;
    62 
    6346$themeCore->setSetting("pwgVer", PHPWG_VERSION);
    6447$ver_parts = explode('.', PHPWG_VERSION);
    6548$ver_int = intval($ver_parts[0]) * 100 + intval($ver_parts[1]);
    6649
     50
    6751if ($ver_int > 207):
    6852  $themeCore->setSetting("hasMinVer", "yes");
     53endif;
     54
     55$template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
     56
     57if ($ver_int > 1100):
     58        global $pwg_loaded_plugins;
     59
     60  if (isset($pwg_loaded_plugins['AdditionalPages'])):
     61    $themeCore->setSetting("hasAP", "yes");
     62  endif;
     63  if (isset($pwg_loaded_plugins['ExtendedDescription'])):
     64    $themeCore->setSetting("hasED", "yes");
     65  endif;
     66  if (isset($pwg_loaded_plugins['GDThumb'])):
     67    $themeCore->setSetting("hasGT", "yes");
     68  endif;
     69  if (isset($pwg_loaded_plugins['AdminTools'])):
     70    $themeCore->setSetting("hasAT", "yes");
     71  endif;
     72else:
     73        if (array_key_exists('plugin_menu_items', $template->smarty->tpl_vars)):
     74                foreach ($template->smarty->tpl_vars['plugin_menu_items']->value as $key => $value):
     75                  if ($value["NAME"] == "Additional Pages"):
     76                    $themeCore->setSetting("hasAP", "yes");
     77                  endif;
     78                  if ($value["NAME"] == "Extended Description"):
     79                    $themeCore->setSetting("hasED", "yes");
     80                  endif;
     81                  if ($value["NAME"] == "gdThumb"):
     82                    $themeCore->setSetting("hasGT", "yes");
     83                  endif;
     84                  if ($value["NAME"] == "Admin Tools"):
     85                    $themeCore->setSetting("hasAT", "yes");
     86                  endif;
     87                endforeach;
     88        endif;
    6989endif;
    7090
  • extensions/greydragon/admin/admin.tpl

    r31979 r32472  
    5151      <li>
    5252        <label>
    53           <i class="gd-checkbox fas {if $options.hasGT=="yes"}fa-check-square success{else}fa-square error{/if}"></i>&nbsp;
     53          <i class="gd-checkbox fas {if $options.hasGT=="yes"}fa-check-square success{else}fa-ban error{/if}"></i>&nbsp;
    5454          <input name="vercheck" disabled="1" type="checkbox" checked="checked" value="1"><a href="http://piwigo.org/ext/extension_view.php?eid=771" target=_blank>{'gdThumb'|@translate}</a> {'Installed'|@translate}
    5555        </label>
     
    5757      <li>
    5858        <label>
    59           <i class="gd-checkbox fas {if $options.hasAT=="yes"}fa-check-square success{else}fa-square error{/if}"></i>&nbsp;
     59          <i class="gd-checkbox fas {if $options.hasAT=="yes"}fa-check-square success{else}fa-ban error{/if}"></i>&nbsp;
    6060          <input name="vercheck" disabled="1" type="checkbox" checked="checked" value="1"><a href="http://piwigo.org/ext/extension_view.php?eid=720" target=_blank>{'Admin Tools'|@translate}</a> {'Installed'|@translate}
    6161        </label>
  • extensions/greydragon/admin/css/styles.css

    r32030 r32472  
    4040
    4141.content fieldset { position: relative; overflow: hidden; padding: 0 1em 0 1em; background: #FFF; }
    42 .content legend   { position: absolute; left: 0px; width: 100%; padding: 0.4em 0.8em; background: #D5E6F2; }
     42.content legend   { position: absolute; left: 0px; width: 100%; padding: 0.4em 0.8em; background: #D5E6F2; margin-top: 0; }
    4343
    44 .content fieldset ul { margin-top: 34px; padding-left: 0; }
     44.content fieldset ul { margin-top: 3.5em; padding-left: 0; }
    4545
    4646.content fieldset, #configContent fieldset, #configContent fieldset:not(.no-border) { border: 1px solid #ccc; }
  • extensions/greydragon/changelog.txt

    r32030 r32472  
    1818
    1919=== Changelog ===
     20version 1.3.5
     21+ Verified compatability with PIWIGO 11.x
     22+ Translation files synced from repo
     23- Fix misalignment of admin section header for PW 11+
     24- Fix issue with plugin detection
     25
     26version 1.3.4
     27- Fix issue with incorrest styling when "hide counter" is requested in PIWIGO 2.10.x+
     28
    2029version 1.3.3
    2130+ Verified for PHP 7.3
  • extensions/greydragon/css/styles.css

    r32028 r32472  
    111111#menubar #menuTagCloud { font-size: 92%; text-align: left; }
    112112#menubar #mbCategories li { margin-right: 0.3em; }
    113 .no-b-counter #menubar #mbCategories .menuInfoCatByChild, .no-b-counter #menubar #mbCategories .menuInfoCat, .no-b-counter #menubar #mbCategories .totalImages { display: none; }
     113.no-b-counter #menubar #mbCategories .menuInfoCatByChild, .no-b-counter #menubar #mbCategories .menuInfoCat, .no-b-counter #menubar #mbCategories .totalImages, .no-b-counter #content .badge { display: none; }
    114114
    115115/* Menu Styles */
  • extensions/greydragon/include/greydragon.class.php

    r32028 r32472  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 define('GDTHEME_VERSION', '1.3.3');
     5define('GDTHEME_VERSION', '1.3.5');
    66
    77define("QUOTES_NONE",   FALSE);
  • extensions/greydragon/template/picture_tab_content.tpl

    r31987 r32472  
    142142  {/if}
    143143
     144  {if isset($OSMJS)}
     145  <div id="tab-map" class="image-metadata-tab">
     146    <dt {$OSMNAMECSS}>{$OSMNAME}</dt>
     147    <dd>
     148      <div id="map"></div>
     149      <script type="text/javascript">{$OSMJS}</script>
     150      <div id="osm_attrib" style="visibility: hidden; display: none;">
     151        <ul>
     152          <li>{"PLUGIN_BY"|@translate}</li>
     153          <li><a href="http://leafletjs.com/" target="_blank">Leaflet</a></li>
     154          <li>&copy; {"OSM_CONTRIBUTORS"|@translate}</li>
     155        </ul>
     156      </div>
     157      {if $SHOWOSM}
     158      <a href="{$OSMLINK}" target="_blank">{"VIEW_OSM"|@translate}</a>
     159      {/if}
     160    </dd>
     161  </div>
     162  {/if}
     163
    144164  {if ($display_info.tags && (isset($related_tags) || ($greydragon.hasUserTags)))}
    145165  <div id="tab-tags" class="image-metadata-tab">
    146166    {if ($greydragon.hasUserTags)}<table id="TagsTable"><tr id="Tags" ><td class="label"></td><td class="value">{/if}
    147167    {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach}
    148     {if ($greydragon.hasUserTags)}<div class="tags-edit-marker"><span class="fas fa-edit"></span> {'Edit'|@translate}</div></td></tr></table>{/if}
     168    {if ($greydragon.hasUserTags)}<span class="tags-edit-marker"><span class="fas fa-edit"></span> {'Edit'|@translate}</span></td></tr></table>{/if}
    149169  </div>
    150170  {/if}
  • extensions/greydragon/template/picture_tab_ico.tpl

    r31987 r32472  
    22  <li class="meta-info {if $ico_mode=="on"} fas fa-info-circle{/if}{if $def_tab == "info"} active{/if}"{if $ico_mode=="on"} title="{"Info"|@translate}"{/if}>{if $ico_mode=="off"}{"Info"|@translate}{/if}</li>
    33  {if isset($metadata)}<li class="meta-exif{if $ico_mode=="on"} fas fa-camera{/if}{if $def_tab == "exif"} active{/if}"{if $ico_mode=="on"} title="{"Exif"|@translate}"{/if}>{if $ico_mode=="off"}{"Exif"|@translate}{/if}</li>{/if}
     4<!--  {if isset($OSMJS)}<li class="meta-map{if $ico_mode=="on"} fas fa-map-marked{/if}{if $def_tab == "map"} active{/if}"{if $ico_mode=="on"} title="{"Map"|@translate}"{/if}>{if $ico_mode=="off"}{"Map"|@translate}{/if}</li>{/if}
     5-->
    46  {if ($display_info.tags && (isset($related_tags) || ($greydragon.hasUserTags)))}<li class="meta-tags{if $ico_mode=="on"} fas fa-tags{/if}{if $def_tab == "tags"} active{/if}"{if $ico_mode=="on"} title="{"Tags"|@translate}"{/if}>{if $ico_mode=="off"}{"Tags"|@translate}{/if}</li>{/if}
    57  {if isset($COMMENT_COUNT)}<li class="meta-comment{if $ico_mode=="on"} fas fa-comment{/if}{if $def_tab == "comments"} active{/if}"{if $ico_mode=="on"} title="{"Comments"|@translate}"{/if}>{if $ico_mode=="off"}{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}{else}&nbsp;{$COMMENT_COUNT}{/if}</li>{/if}
  • extensions/greydragon/template/picture_tab_txt.tpl

    r31987 r32472  
    22  <li class="{if $ico_mode=="on"}fas fa-info-circle{/if}{if $def_tab == "info"} active{/if}" rel="tab-meta"{if $ico_mode=="on"} title="{"Info"|@translate}"{/if}>{if $ico_mode=="off"}{"Info"|@translate}{/if}</li>
    33  {if isset($metadata)}<li class="{if $ico_mode=="on"}fas fa-camera{/if}{if $def_tab == "exif"} active{/if}" rel="tab-exif"{if $ico_mode=="on"} title="{"Exif"|@translate}"{/if}>{if $ico_mode=="off"}{"Exif"|@translate}{/if}</li>{/if}
     4<!--  {if isset($OSMJS)}<li class="{if $ico_mode=="on"}fas fa-map-marked{/if}{if $def_tab == "map"} active{/if}" rel="tab-map"{if $ico_mode=="on"} title="{"Map"|@translate}"{/if}>{if $ico_mode=="off"}{"Map"|@translate}{/if}</li>{/if}
     5-->
    46  {if ($display_info.tags && (isset($related_tags) || ($greydragon.hasUserTags)))}<li class="{if $ico_mode=="on"}fas fa-tags{/if}{if $def_tab == "tags"} active{/if}" rel="tab-tags"{if $ico_mode=="on"} title="{"Tags"|@translate}"{/if}>{if $ico_mode=="off"}{"Tags"|@translate}{/if}</li>{/if}
    57  {if isset($COMMENT_COUNT)}<li class="{if $ico_mode=="on"}fas fa-comment{/if}{if $def_tab == "comments"} active{/if}" rel="tab-comment"{if $ico_mode=="on"} title="{"Comments"|@translate}"{/if}>{if $ico_mode=="off"}{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}{else}&nbsp;{$COMMENT_COUNT}{/if}</li>{/if}
  • extensions/greydragon/themeconf.inc.php

    r32028 r32472  
    22/*
    33Theme Name: GreyDragon
    4 Version: 1.3.3
     4Version: 1.3.5
    55Description: GreyDragon Theme
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=775
Note: See TracChangeset for help on using the changeset viewer.