Changeset 32472 for extensions
- Timestamp:
- Mar 4, 2021, 10:43:07 PM (4 years ago)
- Location:
- extensions/greydragon
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/greydragon/admin/admin.inc.php
r32028 r32472 44 44 endif; 45 45 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 63 46 $themeCore->setSetting("pwgVer", PHPWG_VERSION); 64 47 $ver_parts = explode('.', PHPWG_VERSION); 65 48 $ver_int = intval($ver_parts[0]) * 100 + intval($ver_parts[1]); 66 49 50 67 51 if ($ver_int > 207): 68 52 $themeCore->setSetting("hasMinVer", "yes"); 53 endif; 54 55 $template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); 56 57 if ($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; 72 else: 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; 69 89 endif; 70 90 -
extensions/greydragon/admin/admin.tpl
r31979 r32472 51 51 <li> 52 52 <label> 53 <i class="gd-checkbox fas {if $options.hasGT=="yes"}fa-check-square success{else}fa- squareerror{/if}"></i> 53 <i class="gd-checkbox fas {if $options.hasGT=="yes"}fa-check-square success{else}fa-ban error{/if}"></i> 54 54 <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} 55 55 </label> … … 57 57 <li> 58 58 <label> 59 <i class="gd-checkbox fas {if $options.hasAT=="yes"}fa-check-square success{else}fa- squareerror{/if}"></i> 59 <i class="gd-checkbox fas {if $options.hasAT=="yes"}fa-check-square success{else}fa-ban error{/if}"></i> 60 60 <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} 61 61 </label> -
extensions/greydragon/admin/css/styles.css
r32030 r32472 40 40 41 41 .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; } 43 43 44 .content fieldset ul { margin-top: 3 4px; padding-left: 0; }44 .content fieldset ul { margin-top: 3.5em; padding-left: 0; } 45 45 46 46 .content fieldset, #configContent fieldset, #configContent fieldset:not(.no-border) { border: 1px solid #ccc; } -
extensions/greydragon/changelog.txt
r32030 r32472 18 18 19 19 === Changelog === 20 version 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 26 version 1.3.4 27 - Fix issue with incorrest styling when "hide counter" is requested in PIWIGO 2.10.x+ 28 20 29 version 1.3.3 21 30 + Verified for PHP 7.3 -
extensions/greydragon/css/styles.css
r32028 r32472 111 111 #menubar #menuTagCloud { font-size: 92%; text-align: left; } 112 112 #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; } 114 114 115 115 /* Menu Styles */ -
extensions/greydragon/include/greydragon.class.php
r32028 r32472 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 define('GDTHEME_VERSION', '1.3. 3');5 define('GDTHEME_VERSION', '1.3.5'); 6 6 7 7 define("QUOTES_NONE", FALSE); -
extensions/greydragon/template/picture_tab_content.tpl
r31987 r32472 142 142 {/if} 143 143 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>© {"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 144 164 {if ($display_info.tags && (isset($related_tags) || ($greydragon.hasUserTags)))} 145 165 <div id="tab-tags" class="image-metadata-tab"> 146 166 {if ($greydragon.hasUserTags)}<table id="TagsTable"><tr id="Tags" ><td class="label"></td><td class="value">{/if} 147 167 {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} 149 169 </div> 150 170 {/if} -
extensions/greydragon/template/picture_tab_ico.tpl
r31987 r32472 2 2 <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> 3 3 {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 --> 4 6 {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} 5 7 {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} {$COMMENT_COUNT}{/if}</li>{/if} -
extensions/greydragon/template/picture_tab_txt.tpl
r31987 r32472 2 2 <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> 3 3 {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 --> 4 6 {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} 5 7 {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} {$COMMENT_COUNT}{/if}</li>{/if} -
extensions/greydragon/themeconf.inc.php
r32028 r32472 2 2 /* 3 3 Theme Name: GreyDragon 4 Version: 1.3. 34 Version: 1.3.5 5 5 Description: GreyDragon Theme 6 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=775
Note: See TracChangeset
for help on using the changeset viewer.