[9553] | 1 | {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} |
---|
[3382] | 2 | |
---|
[7995] | 3 | {footer_script require='jquery.cluetip'} |
---|
[12427] | 4 | var piwigo_need_update_msg = '<a href="admin.php?page=updates">{'A new version of Piwigo is available.'|@translate|@escape:"javascript"}</a>'; |
---|
| 5 | var ext_need_update_msg = '<a href="admin.php?page=updates&tab=ext">{'Some upgrades are available for extensions.'|@translate|@escape:"javascript"}</a>'; |
---|
[10538] | 6 | |
---|
| 7 | {literal} |
---|
| 8 | jQuery().ready(function(){ |
---|
| 9 | jQuery('.cluetip').cluetip({ |
---|
[7995] | 10 | width: 300, |
---|
| 11 | splitTitle: '|', |
---|
| 12 | positionBy: 'bottomTop' |
---|
| 13 | }); |
---|
[10538] | 14 | jQuery.ajax({ |
---|
| 15 | type: 'GET', |
---|
| 16 | url: 'ws.php', |
---|
| 17 | dataType: 'json', |
---|
| 18 | data: { method: 'pwg.extensions.checkUpdates', format: 'json' }, |
---|
| 19 | timeout: 5000, |
---|
| 20 | success: function (data) { |
---|
| 21 | if (data['stat'] != 'ok') |
---|
| 22 | return; |
---|
| 23 | piwigo_update = data['result']['piwigo_need_update']; |
---|
| 24 | ext_update = data['result']['ext_need_update'] |
---|
| 25 | if ((piwigo_update || ext_update) && !jQuery(".warnings").is('div')) |
---|
| 26 | jQuery("#content").prepend('<div class="warnings"><ul></ul></div>'); |
---|
| 27 | if (piwigo_update) |
---|
| 28 | jQuery(".warnings ul").append('<li>'+piwigo_need_update_msg+'</li>'); |
---|
| 29 | if (ext_update) |
---|
| 30 | jQuery(".warnings ul").append('<li>'+ext_need_update_msg+'</li>'); |
---|
| 31 | } |
---|
[23746] | 32 | }); |
---|
| 33 | jQuery('.tips').cluetip({ |
---|
| 34 | multiple: true, |
---|
| 35 | width: 300, |
---|
| 36 | splitTitle: '|', |
---|
| 37 | positionBy: 'bottomTop', |
---|
| 38 | attribute:'data-help' |
---|
| 39 | }); |
---|
[3382] | 40 | }); |
---|
[10538] | 41 | {/literal} |
---|
[7995] | 42 | {/footer_script} |
---|
[3382] | 43 | |
---|
[8682] | 44 | <h2>{'Piwigo Administration'|@translate}</h2> |
---|
[2526] | 45 | <dl style="padding-top: 30px;"> |
---|
[5205] | 46 | <dt>{'Piwigo version'|@translate}</dt> |
---|
[2526] | 47 | <dd> |
---|
| 48 | <ul> |
---|
[6565] | 49 | <li><a href="{$PHPWG_URL}" class="externalLink">Piwigo</a> {$PWG_VERSION}</li> |
---|
[2526] | 50 | <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li> |
---|
[3382] | 51 | {if isset($SUBSCRIBE_BASE_URL)} |
---|
[12427] | 52 | <li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" class="externalLink cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate|@sprintf:$EMAIL}</a></li> |
---|
[3382] | 53 | {/if} |
---|
[2526] | 54 | </ul> |
---|
| 55 | </dd> |
---|
[23746] | 56 | <a href="javascript:void(0)" class="externalLink tips" data-help="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">TRIGGER</a> |
---|
| 57 | <span data-help="TITLE|BLABLA">TEXT</span> |
---|
[2526] | 58 | <dt>{'Environment'|@translate}</dt> |
---|
| 59 | <dd> |
---|
| 60 | <ul> |
---|
| 61 | <li>{'Operating system'|@translate}: {$OS}</li> |
---|
[5493] | 62 | <li>PHP: {$PHP_VERSION} (<a href="{$U_PHPINFO}" class="externalLink">{'Show info'|@translate}</a>) [{$PHP_DATATIME}]</li> |
---|
[4325] | 63 | <li>{$DB_ENGINE}: {$DB_VERSION} [{$DB_DATATIME}]</li> |
---|
[10684] | 64 | {if isset($GRAPHICS_LIBRARY)} |
---|
| 65 | <li>{'Graphics Library'|@translate}: {$GRAPHICS_LIBRARY}</li> |
---|
| 66 | {/if} |
---|
[2526] | 67 | </ul> |
---|
| 68 | </dd> |
---|
| 69 | |
---|
| 70 | <dt>{'Database'|@translate}</dt> |
---|
| 71 | <dd> |
---|
| 72 | <ul> |
---|
| 73 | <li> |
---|
| 74 | {$DB_ELEMENTS} |
---|
| 75 | {if isset($first_added)} |
---|
| 76 | ({$first_added.DB_DATE}) |
---|
| 77 | {/if} |
---|
| 78 | </li> |
---|
| 79 | <li>{$DB_CATEGORIES} ({$DB_IMAGE_CATEGORY})</li> |
---|
| 80 | <li>{$DB_TAGS} ({$DB_IMAGE_TAG})</li> |
---|
| 81 | <li>{$DB_USERS}</li> |
---|
| 82 | <li>{$DB_GROUPS}</li> |
---|
[12887] | 83 | {if isset($DB_COMMENTS)} |
---|
[2526] | 84 | <li> |
---|
| 85 | {$DB_COMMENTS} |
---|
| 86 | {if isset($unvalidated)} |
---|
| 87 | (<a href="{$unvalidated.URL}">{$unvalidated.INFO}</a>) |
---|
| 88 | {/if} |
---|
| 89 | </li> |
---|
[12887] | 90 | {/if} |
---|
[11839] | 91 | <li>{$DB_RATES}</li> |
---|
[2526] | 92 | </ul> |
---|
| 93 | </dd> |
---|
| 94 | </dl> |
---|
[2531] | 95 | |
---|
[6365] | 96 | {if $ENABLE_SYNCHRONIZATION} |
---|
[2658] | 97 | <form name="QuickSynchro" action="{$U_CAT_UPDATE}" method="post" id="QuickSynchro" style="display: block; text-align:right;"> |
---|
| 98 | <div> |
---|
[3185] | 99 | <input type="hidden" name="sync" value="files" checked="checked"> |
---|
| 100 | <input type="hidden" name="display_info" value="1" checked="checked"> |
---|
| 101 | <input type="hidden" name="add_to_caddie" value="1" checked="checked"> |
---|
| 102 | <input type="hidden" name="privacy_level" value="0" checked="checked"> |
---|
| 103 | <input type="hidden" name="sync_meta" checked="checked"> |
---|
| 104 | <input type="hidden" name="simulate" value="0"> |
---|
| 105 | <input type="hidden" name="subcats-included" value="1" checked="checked"> |
---|
[2658] | 106 | </div> |
---|
| 107 | <div class="bigbutton"> |
---|
| 108 | <span class="bigtext">{'Quick Local Synchronization'|@translate}</span> |
---|
[13244] | 109 | <input type="submit" value="{'Quick Local Synchronization'|@translate}" name="submit"> |
---|
[2658] | 110 | </div> |
---|
[3185] | 111 | </form> |
---|
[6365] | 112 | {/if} |
---|