aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/site_manager.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
committerplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
commit14778ce673277f2df41f963aa70df1cbed427294 (patch)
tree8c723d4d9827876dbf19d2bd581405fc50910860 /admin/themes/default/template/site_manager.tpl
parentc396f08708d431c6f7e8656eaca4fd8e440fdd39 (diff)
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/site_manager.tpl')
-rw-r--r--admin/themes/default/template/site_manager.tpl73
1 files changed, 73 insertions, 0 deletions
diff --git a/admin/themes/default/template/site_manager.tpl b/admin/themes/default/template/site_manager.tpl
new file mode 100644
index 000000000..678f177fb
--- /dev/null
+++ b/admin/themes/default/template/site_manager.tpl
@@ -0,0 +1,73 @@
+<div class="titrePage">
+ <h2>{'Site manager'|@translate}</h2>
+</div>
+
+{if not empty($remote_output)}
+<div class="remoteOutput">
+ <ul>
+ {foreach from=$remote_output item=remote_line}
+ <li class="{$remote_line.CLASS}">{$remote_line.CONTENT}</li>
+ {/foreach}
+ </ul>
+</div>
+{/if}
+
+{if isset($local_listing)}
+{'A local listing.xml file has been found for '|@translate} {$local_listing.URL}
+{if isset($local_listing.CREATE)}
+<form action="{$F_ACTION}" method="post">
+ <p>
+ {'Create this site'|@translate}:
+ <input type="hidden" name="no_check" value="1">
+ <input type="hidden" name="galleries_url" value="{$local_listing.URL}">
+ <input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
+ </p>
+</form>
+{/if}
+{if isset($local_listing.U_SYNCHRONIZE)}
+&nbsp;<a href="{$local_listing.U_SYNCHRONIZE}" title="{'synchronize'|@translate}">{'synchronize'|@translate}</a>
+<br><br>
+{/if}
+{/if}
+
+{if not empty($sites)}
+<table class="table2">
+ <tr class="throw">
+ <td>{'Local'|@translate} / {'Remote'|@translate}</td>
+ <td>{'Actions'|@translate}</td>
+ </tr>
+ {foreach from=$sites item=site name=site}
+ <tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td>
+ <a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Categories'|@translate}, {$pwg->l10n_dec('%d element','%d elements',$site.IMAGES)})
+ </td><td>
+ [<a href="{$site.U_SYNCHRONIZE}" title="{'synchronize'|@translate}">{'synchronize'|@translate}</a>]
+ {if isset($site.U_DELETE)}
+ [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');"
+ title="{'delete'|@translate}" {$TAG_INPUT_ENABLED}>{'delete'|@translate}</a>]
+ {/if}
+ {if isset($site.remote)}
+ <br>
+ [<a href="{$site.remote.U_TEST}" title="{'test'|@translate}" {$TAG_INPUT_ENABLED}>{'test'|@translate}</a>]
+ [<a href="{$site.remote.U_GENERATE}" title="{'generate listing'|@translate}" {$TAG_INPUT_ENABLED}>{'generate listing'|@translate}</a>]
+ [<a href="{$site.remote.U_CLEAN}" title="{'clean'|@translate}" {$TAG_INPUT_ENABLED}>{'clean'|@translate}</a>]
+ {/if}
+ {if not empty($site.plugin_links)}
+ <br>
+ {foreach from=$site.plugin_links item=plugin_link}
+ [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}' {$TAG_INPUT_ENABLED}>{$plugin_link.U_CAPTION}</a>]
+ {/foreach}
+ {/if}
+ </td></tr>
+ {/foreach}
+</table>
+{/if}
+
+<form action="{$F_ACTION}" method="post">
+ <p>
+ <label for="galleries_url" >{'Create a new site : (give its URL to create_listing_file.php)'|@translate}</label>
+ <input type="text" name="galleries_url" id="galleries_url">
+ </p>
+ <p>
+ <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
+ </p>
+</form>