Subversion Repositories instagram

[/] [design/] [admin2/] [templates/] [ig/] [connected_users.tpl] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ffruehstueck
<form action={"/ig/connect_user"|ezurl} method="post">
2
 
3
<div class="context-block content-bookmark">
4
{* DESIGN: Header START *}<div class="box-header"><div class="box-ml">
5
<h1 class="context-title">{"Connected users"|i18n('extension/instagram')}</h1>
6
 
7
{* DESIGN: Mainline *}<div class="header-mainline"></div>
8
 
9
{* DESIGN: Header END *}</div></div>
10
<div class="controlbar">
11
{* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml">
12
        <div class="block">
13
    <input class="button" type="submit" name="TranslateButton" value="{"Connect now!"|i18n('extension/instagram')}" title="{"Authorize this app with your IG Account"|i18n('extension/instagram')}" />
14
        </div>
15
{* DESIGN: Control bar END *}</div></div>
16
</div>
17
 
18
{* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">
19
 
20
{if $connected_users}
21
        <table class="list" cellspacing="0">
22
        <tr>
23
            <th class="tight"><img src={'toggle-button-16x16.gif'|ezimage} width="16" height="16" alt="{'Invert selection.'|i18n( 'design/admin/content/bookmark' )}" onclick="ezjs_toggleCheckboxes( document.bookmarkaction, 'DeleteIDArray[]' ); return false;" title="{'Invert selection.'|i18n( 'design/admin/content/bookmark' )}" /></th>
24
            <th class="tight"></th>
25
            <th class="tight">{'IG ID'|i18n( 'extension/instagram' )}</th>
26
            <th>{'IG Username'|i18n( 'extension/instagram' )}</th>
27
            <th>{'IG Full Name'|i18n( 'extension/instagram' )}</th>
28
            <th>{'Photos'|i18n( 'extension/instagram' )}</th>
29
            <th>{'Synchronised Photos'|i18n( 'extension/instagram' )}</th>
30
            <th>{'Followed by'|i18n( 'extension/instagram' )}</th>
31
            <th>{'Follows'|i18n( 'extension/instagram' )}</th>
32
        </tr>
33
        {def $userinfo=''
34
                 $local_photos_count=0}
35
 
36
        {foreach $connected_users as $item sequence array( bglight, bgdark ) as $sequence}
37
 
38
                {set $userinfo=fetch('ig','user', hash('user_id', $item.ig_id) )
39
                         $local_photos_count=fetch('ig','local_photos_count', hash('user_id', $item.ig_id, 'as_object', false() ) )}
40
 
41
        <tr class="{$sequence}">
42
            <td><input type="checkbox" name="DeleteIDArray[]" value="{$item.id}" title="{'Select user for removal in local database'|i18n( 'extension/tf' )}" /></td>
43
            <td>{if $item.ig_profile_picture}<img src="{$item.ig_profile_picture}" alt="{$item.ig_username|wash()}" width="50" height="50" />{/if}</td>
44
            <td>{$item.ig_id|wash()}</td>
45
            <td>
46
                {if $local_photos_count|gt(0)}
47
                        <a href={concat("/ig/feed/",$item.ig_id)|ezurl}>{if $item.ig_username}{$item.ig_username|wash()}{/if}</a>
48
                {else}
49
                        {if $item.ig_username}{$item.ig_username|wash()}{/if}
50
                {/if}
51
            </td>
52
            <td>{if $item.ig_full_name}{$item.ig_full_name|wash()}{/if}</td>
53
            <td>
54
                {$userinfo.counts_media}
55
            </td>
56
            <td>
57
                {if $local_photos_count|gt(0)}
58
                        {$local_photos_count}
59
                {else}
60
                        {"Photos will be imported via cronjob"|i18n('extension/instagram')}
61
                {/if}
62
            </td>
63
            <td>{$userinfo.counts_followed_by}</td>
64
            <td>{$userinfo.counts_follows}</td>
65
        </tr>
66
        {/foreach}
67
 
68
        </table>
69
 
70
{else}
71
    <div class="block">
72
    <p>{"No users are connected at the moment!"|i18n('extension/instagram')}</p>
73
    </div>
74
{/if}
75
 
76
 
77
 
78
{* DESIGN: Content END *}</div></div></div>
79
 
80
<div class="controlbar">
81
</div>
82
 
83
</div>
84
 
85
</form>
86
 
87