source: trunk/admin/themes/default/template/site_manager.tpl @ 10511

Revision 8665, 2.9 KB checked in by rvelices, 9 years ago (diff)

feature 2102 : rename item/image/picture to photo

  • Property svn:eol-style set to LF
Line 
1<div class="titrePage">
2  <h2>{'Site manager'|@translate}</h2>
3</div>
4
5{if not empty($remote_output)}
6<div class="remoteOutput">
7  <ul>
8    {foreach from=$remote_output item=remote_line}
9    <li class="{$remote_line.CLASS}">{$remote_line.CONTENT}</li>
10    {/foreach}
11  </ul>
12</div>
13{/if}
14
15{if isset($local_listing)}
16{'A local listing.xml file has been found for'|@translate} {$local_listing.URL}
17{if isset($local_listing.CREATE)}
18<form action="{$F_ACTION}" method="post">
19  <p>
20    <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
21    {'Create this site'|@translate}:
22    <input type="hidden" name="no_check" value="1">
23    <input type="hidden" name="galleries_url" value="{$local_listing.URL}">
24    <input type="submit" name="submit" value="{'Submit'|@translate}">
25  </p>
26</form>
27{/if}
28{if isset($local_listing.U_SYNCHRONIZE)}
29&nbsp;<a href="{$local_listing.U_SYNCHRONIZE}" title="{'read local listing.xml and update'|@translate}">{'synchronize'|@translate}</a>
30<br><br>
31{/if}
32{/if}
33
34{if not empty($sites)}
35<table class="table2">
36        <tr class="throw">
37                <td>{'Local'|@translate} / {'Remote'|@translate}</td>
38                <td>{'Actions'|@translate}</td>
39        </tr>
40  {foreach from=$sites item=site name=site}
41  <tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td>
42    <a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Albums'|@translate}, {$pwg->l10n_dec('%d photo','%d photos',$site.IMAGES)})
43  </td><td>
44    [<a href="{$site.U_SYNCHRONIZE}" title="{'update the database from files'|@translate}">{'synchronize'|@translate}</a>]
45    {if isset($site.U_DELETE)}
46      [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');"
47                title="{'delete this site and all its attached elements'|@translate}">{'delete'|@translate}</a>]
48    {/if}
49    {if isset($site.remote)}
50      <br>
51      [<a href="{$site.remote.U_TEST}" title="{'test this remote site'|@translate}">{'test'|@translate}</a>]
52      [<a href="{$site.remote.U_GENERATE}" title="{'generate file listing.xml on remote site'|@translate}">{'generate listing'|@translate}</a>]
53      [<a href="{$site.remote.U_CLEAN}" title="{'remove remote listing.xml file'|@translate}">{'clean'|@translate}</a>]
54    {/if}
55    {if not empty($site.plugin_links)}
56        <br>
57      {foreach from=$site.plugin_links item=plugin_link}
58        [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}'>{$plugin_link.U_CAPTION}</a>]
59      {/foreach}
60    {/if}
61  </td></tr>
62  {/foreach}
63</table>
64{/if}
65
66<form action="{$F_ACTION}" method="post">
67  <p>
68    <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
69    <label for="galleries_url" >{'Create a new site : (give its URL to create_listing_file.php)'|@translate}</label>
70    <input type="text" name="galleries_url" id="galleries_url">
71  </p>
72  <p>
73    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
74  </p>
75</form>
Note: See TracBrowser for help on using the repository browser.