Refactor widgets
- Move widget templates to subfolder - Add new generic filter widget templates to replace category, network and filer filters - Update styles
This commit is contained in:
parent
6cc376020e
commit
71ae8d07a6
37 changed files with 260 additions and 308 deletions
13
view/templates/widget/contacts.tpl
Normal file
13
view/templates/widget/contacts.tpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
<div id="contact-block">
|
||||
<h3 class="contact-block-h4">{{$contacts}}</h3>
|
||||
{{if $micropro}}
|
||||
<a class="allcontact-link" href="profile/{{$nickname}}/contacts">{{$viewcontacts}}</a>
|
||||
<div class='contact-block-content'>
|
||||
{{foreach $micropro as $m}}
|
||||
{{$m nofilter}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
9
view/templates/widget/events.tpl
Normal file
9
view/templates/widget/events.tpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
<div id="sidebar-events" class="widget">
|
||||
<h3>{{$etitle}}</h3>
|
||||
|
||||
<ul class="sidebar-calendar-export-ul">
|
||||
<li role="menuitem" class="sidebar-calendar-export-li"><a href="{{$baseurl}}/cal/{{$user}}/export/ical" >{{$export_ical}}</a></li>
|
||||
<li role="menuitem" class="sidebar-calendar-export-li"><a href="{{$baseurl}}/cal/{{$user}}/export/csv" >{{$export_csv}}</a></li>
|
||||
</ul>
|
||||
</div>
|
11
view/templates/widget/filter.tpl
Normal file
11
view/templates/widget/filter.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
<div id="{{$type}}-sidebar" class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<div id="{{$type}}-desc">{{$desc nofilter}}</div>
|
||||
<ul role="menu" class="{{$type}}-ul">
|
||||
<li role="menuitem" {{if !$selected}}class="selected"{{/if}}><a href="{{$base}}" class="{{$type}}-link{{if !$selected}} {{$type}}-selected{{/if}} {{$type}}-all">{{$all_label}}</a></li>
|
||||
{{foreach $options as $option}}
|
||||
<li role="menuitem" {{if $selected == $option.ref}}class="selected"{{/if}}><a href="{{$base}}{{$type}}={{$option.ref}}" class="{{$type}}-link{{if $selected == $option.ref}} {{$type}}-selected{{/if}}">{{$option.name}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
9
view/templates/widget/follow.tpl
Normal file
9
view/templates/widget/follow.tpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
<div id="follow-sidebar" class="widget">
|
||||
<h3>{{$connect}}</h3>
|
||||
<div id="connect-desc">{{$desc nofilter}}</div>
|
||||
<form action="follow" method="get" >
|
||||
<input id="side-follow-url" type="text" name="url" value="{{$value}}" size="24" placeholder="{{$hint}}" title="{{$hint}}" /><input id="side-follow-submit" type="submit" name="submit" value="{{$follow}}" />
|
||||
</form>
|
||||
</div>
|
||||
|
17
view/templates/widget/peoplefind.tpl
Normal file
17
view/templates/widget/peoplefind.tpl
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
<div id="peoplefind-sidebar" class="widget">
|
||||
<h3>{{$nv.findpeople}}</h3>
|
||||
<div id="peoplefind-desc">{{$nv.desc}}</div>
|
||||
<form action="dirfind" method="get" />
|
||||
<input id="side-peoplefind-url" type="text" name="search" size="24" title="{{$nv.hint}}" /><input id="side-peoplefind-submit" type="submit" name="submit" value="{{$nv.findthem}}" />
|
||||
</form>
|
||||
<div class="side-link" id="side-match-link"><a href="match" >{{$nv.similar}}</a></div>
|
||||
<div class="side-link" id="side-suggest-link"><a href="suggest" >{{$nv.suggest}}</a></div>
|
||||
<div class="side-link" id="side-directory-link"><a href="directory" >{{$nv.local_directory}}</a></div>
|
||||
<div class="side-link" id="side-directory-link"><a href="{{$nv.global_dir}}" target="extlink" >{{$nv.directory}}</a></div>
|
||||
<div class="side-link" id="side-random-profile-link" ><a href="randprof" target="extlink" >{{$nv.random}}</a></div>
|
||||
{{if $nv.inv}}
|
||||
<div class="side-link" id="side-invite-link" ><a href="invite" >{{$nv.inv}}</a></div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
22
view/templates/widget/remote_friends_common.tpl
Normal file
22
view/templates/widget/remote_friends_common.tpl
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
<div id="remote-friends-in-common" class="bigwidget">
|
||||
<div id="rfic-desc">{{$desc nofilter}} {{if $linkmore}}<a href="{{$base}}/common/rem/{{$uid}}/{{$cid}}">{{$more}}</a>{{/if}}</div>
|
||||
{{if $items}}
|
||||
{{foreach $items as $item}}
|
||||
<div class="profile-match-wrapper">
|
||||
<div class="profile-match-photo">
|
||||
<a href="{{$item.url}}">
|
||||
<img src="{{$item.photo}}" width="80" height="80" alt="{{$item.name}}" title="{{$item.name}}" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-match-break"></div>
|
||||
<div class="profile-match-name">
|
||||
<a href="{{$item.url}}" title="{{$item.name}}">{{$item.name}}</a>
|
||||
</div>
|
||||
<div class="profile-match-end"></div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
<div id="rfic-end" class="clear"></div>
|
||||
</div>
|
||||
|
13
view/templates/widget/tagcloud.tpl
Normal file
13
view/templates/widget/tagcloud.tpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
<div class="tagblock widget">
|
||||
<h3>{{$title}}</h3>
|
||||
|
||||
<div class="tag-cloud">
|
||||
{{foreach $tags as $tag}}
|
||||
<span class="tags">
|
||||
<span class="tag{{$tag.level}}">#</span><a href="{{$tag.url}}" class="tag{{$tag.level}}">{{$tag.name}}</a>
|
||||
</span>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
<div class="tagblock-widget-end clear"></div>
|
||||
</div>
|
14
view/templates/widget/vcard.tpl
Normal file
14
view/templates/widget/vcard.tpl
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
<div class="vcard h-card">
|
||||
<div class="fn p-name">{{$name}}</div>
|
||||
{{if $addr}}<div class="p-addr">{{$addr}}</div>{{/if}}
|
||||
{{if $pdesc}}<div class="title p-job-title">{{$pdesc}}</div>{{/if}}
|
||||
{{if $url}}
|
||||
<div id="profile-photo-wrapper"><a href="{{$url}}"><img class="vcard-photo photo u-photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></a></div>
|
||||
{{else}}
|
||||
<div id="profile-photo-wrapper"><img class="vcard-photo photo u-photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></div>
|
||||
{{/if}}
|
||||
{{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
|
||||
{{if $network_link}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$network_link nofilter}}</dd></dl>{{/if}}
|
||||
<div id="profile-vcard-break"></div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue