source: trunk/admin/themes/default/template/intro.tpl @ 23746

Revision 23746, 4.6 KB checked in by flop25, 7 years ago (diff)

bug:2808
add "Your Favorites" to the filters of the Batch Manager

  • Property svn:eol-style set to LF
Line 
1{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'}
2
3{footer_script require='jquery.cluetip'}
4var piwigo_need_update_msg = '<a href="admin.php?page=updates">{'A new version of Piwigo is available.'|@translate|@escape:"javascript"}</a>';
5var ext_need_update_msg = '<a href="admin.php?page=updates&amp;tab=ext">{'Some upgrades are available for extensions.'|@translate|@escape:"javascript"}</a>';
6
7{literal}
8jQuery().ready(function(){
9        jQuery('.cluetip').cluetip({
10                width: 300,
11                splitTitle: '|',
12                positionBy: 'bottomTop'
13        });
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    }
32  });
33  jQuery('.tips').cluetip({
34    multiple: true,
35                width: 300,
36                splitTitle: '|',
37                positionBy: 'bottomTop',
38    attribute:'data-help'
39        });
40});
41{/literal}
42{/footer_script}
43
44<h2>{'Piwigo Administration'|@translate}</h2>
45<dl style="padding-top: 30px;">
46  <dt>{'Piwigo version'|@translate}</dt>
47  <dd>
48    <ul>
49      <li><a href="{$PHPWG_URL}" class="externalLink">Piwigo</a> {$PWG_VERSION}</li>
50      <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li>
51{if isset($SUBSCRIBE_BASE_URL)}
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>
53{/if}
54    </ul>
55  </dd>
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>
58  <dt>{'Environment'|@translate}</dt>
59  <dd>
60    <ul>
61      <li>{'Operating system'|@translate}: {$OS}</li>
62      <li>PHP: {$PHP_VERSION} (<a href="{$U_PHPINFO}" class="externalLink">{'Show info'|@translate}</a>)  [{$PHP_DATATIME}]</li>
63      <li>{$DB_ENGINE}: {$DB_VERSION} [{$DB_DATATIME}]</li>
64      {if isset($GRAPHICS_LIBRARY)}
65      <li>{'Graphics Library'|@translate}: {$GRAPHICS_LIBRARY}</li>
66      {/if}
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>
83    {if isset($DB_COMMENTS)}
84      <li>
85        {$DB_COMMENTS}
86        {if isset($unvalidated)}
87        (<a href="{$unvalidated.URL}">{$unvalidated.INFO}</a>)
88        {/if}
89      </li>
90    {/if}
91                        <li>{$DB_RATES}</li>
92    </ul>
93  </dd>
94</dl>
95
96{if $ENABLE_SYNCHRONIZATION}
97<form name="QuickSynchro" action="{$U_CAT_UPDATE}" method="post" id="QuickSynchro" style="display: block; text-align:right;">
98<div>
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">
106</div>
107<div class="bigbutton">
108<span class="bigtext">{'Quick Local Synchronization'|@translate}</span>
109<input type="submit" value="{'Quick Local Synchronization'|@translate}" name="submit">
110</div>
111</form>
112{/if}
Note: See TracBrowser for help on using the repository browser.