Merge pull request #13 from fermionic/20130105-smarty3
implement smarty3
This commit is contained in:
@@ -65,7 +65,7 @@ function fancyred_form(&$a, $font_size, $line_height, $colour) {
|
||||
'dark' => 'dark',
|
||||
);
|
||||
|
||||
$t = file_get_contents( dirname(__file__). "/../tpl/theme_settings.tpl" );
|
||||
$t = get_markup_template('theme_settings.tpl');
|
||||
$o .= replace_macros($t, array(
|
||||
'$submit' => t('Submit'),
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
function fancyred_init(&$a) {
|
||||
$a->set_template_engine('smarty3');
|
||||
// head_add_js('redbasic.js');
|
||||
}
|
||||
|
||||
117
view/theme/fancyred/tpl/smarty3/conv_item.tpl
Normal file
117
view/theme/fancyred/tpl/smarty3/conv_item.tpl
Normal file
@@ -0,0 +1,117 @@
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer">
|
||||
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">{{$item.num_comments}}</span> <span id="hide-comments-{{$item.id}}" class="hide-comments fakelink" onclick="showHideComments({{$item.id}});">{{$item.hide_text}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper {{$item.toplevel}}">
|
||||
<a name="{{$item.id}}" ></a>
|
||||
<div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" >
|
||||
<div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" >
|
||||
<div class="wall-item-info{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-info-{{$item.id}}">
|
||||
{{if $item.owner_url}}
|
||||
<div class="wall-item-photo-wrapper wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}" >
|
||||
<a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-photo-link" id="wall-item-ownerphoto-link-{{$item.id}}">
|
||||
<img src="{{$item.owner_photo}}" class="wall-item-photo{{$item.osparkle}}" id="wall-item-ownerphoto-{{$item.id}}" style="height: 80px; width: 80px;" alt="{{$item.owner_name}}" /></a>
|
||||
</div>
|
||||
<div class="wall-item-arrowphoto-wrapper" ><img src="images/larrow.gif" alt="{{$item.wall}}" /></div>
|
||||
{{/if}}
|
||||
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}"
|
||||
onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')"
|
||||
onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-photo-link" id="wall-item-photo-link-{{$item.id}}">
|
||||
<img src="{{$item.thumb}}" class="wall-item-photo{{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" style="height: 80px; width: 80px;" alt="{{$item.name}}" /></a>
|
||||
<span onclick="openClose('wall-item-photo-menu-{{$item.id}}');" class="fakelink wall-item-photo-menu-button" id="wall-item-photo-menu-button-{{$item.id}}">menu</span>
|
||||
<div class="wall-item-photo-menu" id="wall-item-photo-menu-{{$item.id}}">
|
||||
<ul>
|
||||
{{$item.item_photo_menu}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="wall-item-photo-end"></div>
|
||||
<div class="wall-item-wrapper" id="wall-item-wrapper-{{$item.id}}" >
|
||||
{{if $item.lock}}<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="{{$item.lock}}" onclick="lockview(event,{{$item.id}});" /></div>
|
||||
{{else}}<div class="wall-item-lock"></div>{{/if}}
|
||||
<div class="wall-item-location" id="wall-item-location-{{$item.id}}">{{$item.location}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-author">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.to}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a> {{$item.vwall}}{{/if}}<br />
|
||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}" title="{{$item.localtime}}">{{$item.ago}}</div>
|
||||
</div>
|
||||
<div class="wall-item-content" id="wall-item-content-{{$item.id}}" >
|
||||
<div class="wall-item-title" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
|
||||
<div class="wall-item-title-end"></div>
|
||||
<div class="wall-item-body" id="wall-item-body-{{$item.id}}" >{{$item.body}}
|
||||
<div class="body-tag">
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class='tag'>{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{if $item.has_cats}}
|
||||
<div class="categorytags"><span>{{$item.txt_cats}} {{foreach $item.categories as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $item.has_folders}}
|
||||
<div class="filesavetags"><span>{{$item.txt_folders}} {{foreach $item.folders as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wall-item-like {{$item.indent}}" id="wall-item-like-{{$item.id}}">{{$item.showlike}}</div>
|
||||
<div class="wall-item-dislike {{$item.indent}}" id="wall-item-dislike-{{$item.id}}">{{$item.showdislike}}</div>
|
||||
|
||||
<div class="wall-item-tools" id="wall-item-tools-{{$item.id}}">
|
||||
{{if $item.like}}
|
||||
<a href="#" class="icon like item-tool" title="{{$item.like.0}}" onclick="dolike({{$item.id}},'like'); return false"></a>
|
||||
{{/if}}
|
||||
{{if $item.dislike}}
|
||||
<a href="#" class="icon dislike item-tool" title="{{$item.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false"></a>
|
||||
{{/if}}
|
||||
{{if $item.share}}
|
||||
<a href="#" class="icon recycle item-tool" title="{{$item.share.0}}" onclick="jotShare({{$item.id}}); return false"></a>
|
||||
{{/if}}
|
||||
{{if $item.plink}}
|
||||
<a href="{{$item.plink.href}}" title="{{$item.plink.title}}" target="external-link" class="icon item-tool remote-link{{$item.sparkle}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.edpost}}
|
||||
<a class="editpost icon pencil item-tool" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.star}}
|
||||
<a href="#" id="starred-{{$item.id}}" onclick="dostar({{$item.id}}); return false;" class="star-item icon item-tool {{$item.star.isstarred}}" title="{{$item.star.toggle}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.tagger}}
|
||||
<a href="#" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="tag-item icon item-tool tagged" title="{{$item.tagger.tagit}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.filer}}
|
||||
<a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon item-tool" title="{{$item.filer}}"></a>
|
||||
{{/if}}
|
||||
<img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
|
||||
|
||||
<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-{{$item.id}}" >
|
||||
{{if $item.drop.dropping}}<a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon drophide" title="{{$item.drop.delete}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a>{{/if}}
|
||||
</div>
|
||||
{{if $item.drop.pagedrop}}<input type="checkbox" onclick="checkboxhighlight(this);" title="{{$item.drop.select}}" class="item-select" name="itemselected[]" value="{{$item.id}}" />{{/if}}
|
||||
<div class="wall-item-delete-end"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-wrapper-end"></div>
|
||||
|
||||
<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>
|
||||
</div>
|
||||
{{if $item.toplevel}}
|
||||
{{foreach $item.children as $item}}
|
||||
{{include file="{{$item.template}}"}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
<div class="wall-item-comment-wrapper" >
|
||||
{{$item.comment}}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||
7
view/theme/fancyred/tpl/smarty3/theme_settings.tpl
Normal file
7
view/theme/fancyred/tpl/smarty3/theme_settings.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{{include file="field_select.tpl" field=$font_size}}
|
||||
|
||||
{{include file="field_select.tpl" field=$line_height}}
|
||||
|
||||
<div class="settings-submit-wrapper">
|
||||
<input type="submit" value="{{$submit}}" class="settings-submit" name="fancyred-settings-submit" />
|
||||
</div>
|
||||
@@ -65,7 +65,7 @@ function redbasic_form(&$a, $font_size, $line_height, $colour) {
|
||||
'dark' => 'dark',
|
||||
);
|
||||
|
||||
$t = file_get_contents( dirname(__file__). "/../tpl/theme_settings.tpl" );
|
||||
$t = get_markup_template('theme_settings.tpl');
|
||||
$o .= replace_macros($t, array(
|
||||
'$submit' => t('Submit'),
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
function redbasic_init(&$a) {
|
||||
$a->set_template_engine('smarty3');
|
||||
// head_add_js('redbasic.js');
|
||||
}
|
||||
|
||||
7
view/theme/redbasic/tpl/smarty3/theme_settings.tpl
Normal file
7
view/theme/redbasic/tpl/smarty3/theme_settings.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{{include file="field_select.tpl" field=$font_size}}
|
||||
|
||||
{{include file="field_select.tpl" field=$line_height}}
|
||||
|
||||
<div class="settings-submit-wrapper">
|
||||
<input type="submit" value="{{$submit}}" class="settings-submit" name="redbasic-settings-submit" />
|
||||
</div>
|
||||
@@ -70,7 +70,7 @@
|
||||
<td class='register_date'>$u.register_date</td>
|
||||
<td class='login_date'>$u.login_date</td>
|
||||
<td class='lastitem_date'>$u.lastitem_date</td>
|
||||
<td class='login_date'>$u.page-flags</td>
|
||||
<td class='login_date'>$u.page_flags</td>
|
||||
<td class="checkbox"><input type="checkbox" class="users_ckbx" id="id_user_$u.uid" name="user[]" value="$u.uid"/></td>
|
||||
<td class="tools">
|
||||
<a href="$baseurl/admin/users/block/$u.uid?t=$form_security_token" title='{{ if $u.blocked }}$unblock{{ else }}$block{{ endif }}'><span class='icon block {{ if $u.blocked==0 }}dim{{ endif }}'></span></a>
|
||||
|
||||
@@ -101,8 +101,8 @@
|
||||
<div class="wall-item-outside-wrapper-end $item.indent" ></div>
|
||||
</div>
|
||||
{{ if $item.toplevel }}
|
||||
{{ for $item.children as $item }}
|
||||
{{ inc $item.template }}{{ endinc }}
|
||||
{{ for $item.children as $child }}
|
||||
{{ inc $child.template with $item=$child }}{{ endinc }}
|
||||
{{ endfor }}
|
||||
{{ endif }}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="directory-item lframe" id="directory-item-$id" >
|
||||
<div class="contact-photo-wrapper" id="directory-photo-wrapper-$id" >
|
||||
<div class="contact-photo" id="directory-photo-$id" >
|
||||
<a href="$profile-link" class="directory-profile-link" id="directory-profile-link-$id" ><img class="directory-photo-img" src="$photo" alt="$alt-text" title="$alt-text" /></a>
|
||||
<a href="$profile_link" class="directory-profile-link" id="directory-profile-link-$id" ><img class="directory-photo-img" src="$photo" alt="$alt_text" title="$alt_text" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mceActionPanel">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
<input type="button" id="cancel" name="cancel" value="$cancel" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<form action="$baseurl/index.php?q=setup" method="post">
|
||||
<table>
|
||||
{{ for $checks as $check }}
|
||||
<tr><td>$check.title </td><td><span class="icon s22 {{if $check.status}}on{{else}}{{if$check.required}}off{{else}}yellow{{endif}}{{endif}}"></td><td>{{if $check.required}}(required){{endif}}</td></tr>
|
||||
<tr><td>$check.title </td><td><span class="icon s22 {{if $check.status}}on{{else}}{{if $check.required}}off{{else}}yellow{{endif}}{{endif}}"></td><td>{{if $check.required}}(required){{endif}}</td></tr>
|
||||
{{if $check.help }}
|
||||
<tr><td colspan="3"><blockquote>$check.help</blockquote></td></tr>
|
||||
{{endif}}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class="notif-item">
|
||||
<a href="{$item_link}" target="friendica-notifications"><img src="{$item_image}" class="notif-image">{$item_text} <span class="notif-when">{$item_when}</span></a>
|
||||
</div>
|
||||
<a href="$item_link" target="friendica-notifications"><img src="$item_image" class="notif-image">$item_text <span class="notif-when">$item_when</span></a>
|
||||
</div>
|
||||
|
||||
1
view/tpl/smarty3/404.tpl
Normal file
1
view/tpl/smarty3/404.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<h1>{{$message}}</h1>
|
||||
50
view/tpl/smarty3/abook_edit.tpl
Normal file
50
view/tpl/smarty3/abook_edit.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
<h2>{{$header}}</h2>
|
||||
|
||||
<h3>{{$addr}}</h3>
|
||||
|
||||
<div id="connection-flag-tabs">
|
||||
{{$tabs}}
|
||||
</div>
|
||||
|
||||
<div id="contact-edit-wrapper">
|
||||
|
||||
{{if $slide}}
|
||||
<h3>{{$lbl_slider}}</h3>
|
||||
|
||||
{{$slide}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
<h3>Permissions</h3>
|
||||
|
||||
<form action="connections/{{$contact_id}}" method="post" >
|
||||
<input type="hidden" name="contact_id" value="{{$contact_id}}">
|
||||
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
|
||||
|
||||
<br />
|
||||
<b>{{$quick}}</b>
|
||||
<ul>
|
||||
<li><a href="#" onclick="connectFullShare(); return false;">{{$full}}</a></li>
|
||||
<li><a href="#" onclick="connectCautiousShare(); return false;">{{$cautious}}</a></li>
|
||||
<li><a href="#" onclick="connectFollowOnly(); return false;">{{$follow}}</a></li>
|
||||
<br />
|
||||
|
||||
<div id="abook-advanced" class="fakelink" onclick="openClose('abook-advanced-panel');">{{$advanced}}</div>
|
||||
|
||||
<div id="abook-advanced-panel" style="display: none;">
|
||||
|
||||
<span class="abook-them">{{$them}}</span><span class="abook-me">{{$me}}</span>
|
||||
<br />
|
||||
<br />
|
||||
{{foreach $perms as $prm}}
|
||||
{{include file="field_acheckbox.tpl" field=$prm}}
|
||||
{{/foreach}}
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
<input class="contact-edit-submit" type="submit" name="submit" value="{{$submit}}" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
28
view/tpl/smarty3/acl_selector.tpl
Normal file
28
view/tpl/smarty3/acl_selector.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
<div id="acl-wrapper">
|
||||
<input id="acl-search">
|
||||
<a href="#" id="acl-showall">{{$showall}}</a>
|
||||
<div id="acl-list">
|
||||
<div id="acl-list-content">
|
||||
</div>
|
||||
</div>
|
||||
<span id="acl-fields"></span>
|
||||
</div>
|
||||
|
||||
<div class="acl-list-item" rel="acl-template" style="display:none">
|
||||
<img src="{0}"><p>{1}</p>
|
||||
<a href="#" class='acl-button-show'>{{$show}}</a>
|
||||
<a href="#" class='acl-button-hide'>{{$hide}}</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
setTimeout( function () {
|
||||
if(typeof acl=="undefined"){
|
||||
acl = new ACL(
|
||||
baseurl+"/acl",
|
||||
[ {{$allowcid}},{{$allowgid}},{{$denycid}},{{$denygid}} ]
|
||||
);
|
||||
}
|
||||
}, 5000 );
|
||||
});
|
||||
</script>
|
||||
42
view/tpl/smarty3/admin_aside.tpl
Normal file
42
view/tpl/smarty3/admin_aside.tpl
Normal file
@@ -0,0 +1,42 @@
|
||||
<script>
|
||||
// update pending count //
|
||||
$(function(){
|
||||
|
||||
$("nav").bind('nav-update', function(e,data){
|
||||
var elm = $('#pending-update');
|
||||
var register = $(data).find('register').text();
|
||||
if (register=="0") { reigster=""; elm.hide();} else { elm.show(); }
|
||||
elm.html(register);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<h4><a href="{{$admurl}}">{{$admtxt}}</a></h4>
|
||||
<ul class='admin linklist'>
|
||||
<li class='admin link button {{$admin.site.2}}'><a href='{{$admin.site.0}}'>{{$admin.site.1}}</a></li>
|
||||
<li class='admin link button {{$admin.users.2}}'><a href='{{$admin.users.0}}'>{{$admin.users.1}}</a><span id='pending-update' title='{{$h_pending}}'></span></li>
|
||||
<li class='admin link button {{$admin.plugins.2}}'><a href='{{$admin.plugins.0}}'>{{$admin.plugins.1}}</a></li>
|
||||
<li class='admin link button {{$admin.themes.2}}'><a href='{{$admin.themes.0}}'>{{$admin.themes.1}}</a></li>
|
||||
<li class='admin link button {{$admin.dbsync.2}}'><a href='{{$admin.dbsync.0}}'>{{$admin.dbsync.1}}</a></li>
|
||||
</ul>
|
||||
|
||||
{{if $admin.update}}
|
||||
<ul class='admin linklist'>
|
||||
<li class='admin link button {{$admin.update.2}}'><a href='{{$admin.update.0}}'>{{$admin.update.1}}</a></li>
|
||||
<li class='admin link button {{$admin.update.2}}'><a href='https://kakste.com/profile/inthegit'>Important Changes</a></li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{if $admin.plugins_admin}}<h4>{{$plugadmtxt}}</h4>{{/if}}
|
||||
<ul class='admin linklist'>
|
||||
{{foreach $admin.plugins_admin as $l}}
|
||||
<li class='admin link button {{$l.2}}'><a href='{{$l.0}}'>{{$l.1}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
|
||||
|
||||
<h4>{{$logtxt}}</h4>
|
||||
<ul class='admin linklist'>
|
||||
<li class='admin link button {{$admin.logs.2}}'><a href='{{$admin.logs.0}}'>{{$admin.logs.1}}</a></li>
|
||||
</ul>
|
||||
|
||||
19
view/tpl/smarty3/admin_logs.tpl
Normal file
19
view/tpl/smarty3/admin_logs.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
<div id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/logs" method="post">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$debugging}}
|
||||
{{include file="field_input.tpl" field=$logfile}}
|
||||
{{include file="field_select.tpl" field=$loglevel}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_logs" value="{{$submit}}" /></div>
|
||||
|
||||
</form>
|
||||
|
||||
<h3>{{$logname}}</h3>
|
||||
<div style="width:100%; height:400px; overflow: auto; "><pre>{{$data}}</pre></div>
|
||||
<!-- <iframe src='{{$baseurl}}/{{$logname}}' style="width:100%; height:400px"></iframe> -->
|
||||
<!-- <div class="submit"><input type="submit" name="page_logs_clear_log" value="{{$clear}}" /></div> -->
|
||||
</div>
|
||||
15
view/tpl/smarty3/admin_plugins.tpl
Normal file
15
view/tpl/smarty3/admin_plugins.tpl
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<ul id='pluginslist'>
|
||||
{{foreach $plugins as $p}}
|
||||
<li class='plugin {{$p.1}}'>
|
||||
<a class='toggleplugin' href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}?a=t&t={{$form_security_token}}' title="{{if $p.1==on}}Disable{{else}}Enable{{/if}}" ><span class='icon {{$p.1}}'></span></a>
|
||||
<a href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}'><span class='name'>{{$p.2.name}}</span></a> - <span class="version">{{$p.2.version}}</span>
|
||||
{{if $p.2.experimental}} {{$experimental}} {{/if}}{{if $p.2.unsupported}} {{$unsupported}} {{/if}}
|
||||
|
||||
<div class='desc'>{{$p.2.description}}</div>
|
||||
</li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
36
view/tpl/smarty3/admin_plugins_details.tpl
Normal file
36
view/tpl/smarty3/admin_plugins_details.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
<div id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<p><span class='toggleplugin icon {{$status}}'></span> {{$info.name}} - {{$info.version}} : <a href="{{$baseurl}}/admin/{{$function}}/{{$plugin}}/?a=t&t={{$form_security_token}}">{{$action}}</a></p>
|
||||
<p>{{$info.description}}</p>
|
||||
|
||||
<p class="author">{{$str_author}}
|
||||
{{foreach $info.author as $a}}
|
||||
{{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}},
|
||||
{{/foreach}}
|
||||
</p>
|
||||
|
||||
<p class="maintainer">{{$str_maintainer}}
|
||||
{{foreach $info.maintainer as $a}}
|
||||
{{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}},
|
||||
{{/foreach}}
|
||||
</p>
|
||||
|
||||
{{if $screenshot}}
|
||||
<a href="{{$screenshot.0}}" class='screenshot'><img src="{{$screenshot.0}}" alt="{{$screenshot.1}}" /></a>
|
||||
{{/if}}
|
||||
|
||||
{{if $admin_form}}
|
||||
<h3>{{$settings}}</h3>
|
||||
<form method="post" action="{{$baseurl}}/admin/{{$function}}/{{$plugin}}/">
|
||||
{{$admin_form}}
|
||||
</form>
|
||||
{{/if}}
|
||||
|
||||
{{if $readme}}
|
||||
<h3>Readme</h3>
|
||||
<div id="plugin_readme">
|
||||
{{$readme}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
98
view/tpl/smarty3/admin_remoteupdate.tpl
Normal file
98
view/tpl/smarty3/admin_remoteupdate.tpl
Normal file
@@ -0,0 +1,98 @@
|
||||
<script src="js/jquery.htmlstream.js"></script>
|
||||
<script>
|
||||
/* ajax updater */
|
||||
function updateEnd(data){
|
||||
//$("#updatepopup .panel_text").html(data);
|
||||
$("#remoteupdate_form").find("input").removeAttr('disabled');
|
||||
$(".panel_action_close").fadeIn()
|
||||
}
|
||||
function updateOn(data){
|
||||
|
||||
var patt=/§([^§]*)§/g;
|
||||
var matches = data.match(patt);
|
||||
$(matches).each(function(id,data){
|
||||
data = data.replace(/§/g,"");
|
||||
d = data.split("@");
|
||||
console.log(d);
|
||||
elm = $("#updatepopup .panel_text #"+d[0]);
|
||||
html = "<div id='"+d[0]+"' class='progress'>"+d[1]+"<span>"+d[2]+"</span></div>";
|
||||
if (elm.length==0){
|
||||
$("#updatepopup .panel_text").append(html);
|
||||
} else {
|
||||
$(elm).replaceWith(html);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$("#remoteupdate_form").submit(function(){
|
||||
var data={};
|
||||
$(this).find("input").each(function(i, e){
|
||||
name = $(e).attr('name');
|
||||
value = $(e).val();
|
||||
e.disabled = true;
|
||||
data[name]=value;
|
||||
});
|
||||
|
||||
$("#updatepopup .panel_text").html("");
|
||||
$("#updatepopup").show();
|
||||
$("#updatepopup .panel").hide().slideDown(500);
|
||||
$(".panel_action_close").hide().click(function(){
|
||||
$("#updatepopup .panel").slideUp(500, function(){
|
||||
$("#updatepopup").hide();
|
||||
});
|
||||
});
|
||||
|
||||
$.post(
|
||||
$(this).attr('action'),
|
||||
data,
|
||||
updateEnd,
|
||||
'text',
|
||||
updateOn
|
||||
);
|
||||
|
||||
|
||||
return false;
|
||||
})
|
||||
});
|
||||
</script>
|
||||
<div id="updatepopup" class="popup">
|
||||
<div class="background"></div>
|
||||
<div class="panel">
|
||||
<div class="panel_in">
|
||||
<h1>Friendica Update</h1>
|
||||
<div class="panel_text"></div>
|
||||
<div class="panel_actions">
|
||||
<input type="button" value="{{$close}}" class="panel_action_close">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="adminpage">
|
||||
<dl> <dt>Your version:</dt><dd>{{$localversion}}</dd> </dl>
|
||||
{{if $needupdate}}
|
||||
<dl> <dt>New version:</dt><dd>{{$remoteversion}}</dd> </dl>
|
||||
|
||||
<form id="remoteupdate_form" method="POST" action="{{$baseurl}}/admin/update">
|
||||
<input type="hidden" name="{{$remotefile.0}}" value="{{$remotefile.2}}">
|
||||
|
||||
{{if $canwrite}}
|
||||
<div class="submit"><input type="submit" name="remoteupdate" value="{{$submit}}" /></div>
|
||||
{{else}}
|
||||
<h3>Your friendica installation is not writable by web server.</h3>
|
||||
{{if $canftp}}
|
||||
<p>You can try to update via FTP</p>
|
||||
{{include file="field_input.tpl" field=$ftphost}}
|
||||
{{include file="field_input.tpl" field=$ftppath}}
|
||||
{{include file="field_input.tpl" field=$ftpuser}}
|
||||
{{include file="field_password.tpl" field=$ftppwd}}
|
||||
<div class="submit"><input type="submit" name="remoteupdate" value="{{$submit}}" /></div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</form>
|
||||
{{else}}
|
||||
<h4>No updates</h4>
|
||||
{{/if}}
|
||||
</div>
|
||||
82
view/tpl/smarty3/admin_site.tpl
Normal file
82
view/tpl/smarty3/admin_site.tpl
Normal file
@@ -0,0 +1,82 @@
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
$("#cnftheme").fancybox({
|
||||
width: 800,
|
||||
autoDimensions: false,
|
||||
onStart: function(){
|
||||
var theme = $("#id_theme :selected").val();
|
||||
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
|
||||
},
|
||||
onComplete: function(){
|
||||
$("div#fancybox-content form").submit(function(e){
|
||||
var url = $(this).attr('action');
|
||||
// can't get .serialize() to work...
|
||||
var data={};
|
||||
$(this).find("input").each(function(){
|
||||
data[$(this).attr('name')] = $(this).val();
|
||||
});
|
||||
$(this).find("select").each(function(){
|
||||
data[$(this).attr('name')] = $(this).children(":selected").val();
|
||||
});
|
||||
console.log(":)", url, data);
|
||||
|
||||
$.post(url, data, function(data) {
|
||||
if(timer) clearTimeout(timer);
|
||||
NavUpdate();
|
||||
$.fancybox.close();
|
||||
})
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/site" method="post">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
{{include file="field_input.tpl" field=$sitename}}
|
||||
{{include file="field_textarea.tpl" field=$banner}}
|
||||
{{include file="field_select.tpl" field=$language}}
|
||||
{{include file="field_select.tpl" field=$theme}}
|
||||
{{include file="field_select.tpl" field=$ssl_policy}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
<h3>{{$registration}}</h3>
|
||||
{{include file="field_input.tpl" field=$register_text}}
|
||||
{{include file="field_select.tpl" field=$register_policy}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
<h3>{{$upload}}</h3>
|
||||
{{include file="field_input.tpl" field=$maximagesize}}
|
||||
|
||||
<h3>{{$corporate}}</h3>
|
||||
{{include file="field_input.tpl" field=$allowed_sites}}
|
||||
{{include file="field_input.tpl" field=$allowed_email}}
|
||||
{{include file="field_checkbox.tpl" field=$block_public}}
|
||||
{{include file="field_checkbox.tpl" field=$force_publish}}
|
||||
{{include file="field_checkbox.tpl" field=$no_community_page}}
|
||||
{{include file="field_input.tpl" field=$global_directory}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
<h3>{{$advanced}}</h3>
|
||||
{{include file="field_input.tpl" field=$proxy}}
|
||||
{{include file="field_input.tpl" field=$proxyuser}}
|
||||
{{include file="field_input.tpl" field=$timeout}}
|
||||
{{include file="field_input.tpl" field=$delivery_interval}}
|
||||
{{include file="field_input.tpl" field=$poll_interval}}
|
||||
{{include file="field_input.tpl" field=$maxloadavg}}
|
||||
{{include file="field_input.tpl" field=$abandon_days}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
40
view/tpl/smarty3/admin_summary.tpl
Normal file
40
view/tpl/smarty3/admin_summary.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
<div id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<dl>
|
||||
<dt>{{$queues.label}}</dt>
|
||||
<dd>{{$queues.deliverq}} - {{$queues.queue}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$pending.0}}</dt>
|
||||
<dd>{{$pending.1}}</dt>
|
||||
</dl>
|
||||
|
||||
<dl>
|
||||
<dt>{{$users.0}}</dt>
|
||||
<dd>{{$users.1}}</dd>
|
||||
</dl>
|
||||
{{foreach $accounts as $p}}
|
||||
<dl>
|
||||
<dt>{{$p.0}}</dt>
|
||||
<dd>{{if $p.1}}{{$p.1}}{{else}}0{{/if}}</dd>
|
||||
</dl>
|
||||
{{/foreach}}
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>{{$plugins.0}}</dt>
|
||||
|
||||
{{foreach $plugins.1 as $p}}
|
||||
<dd>{{$p}}</dd>
|
||||
{{/foreach}}
|
||||
|
||||
</dl>
|
||||
|
||||
<dl>
|
||||
<dt>{{$version.0}}</dt>
|
||||
<dd>{{$version.1}} - {{$build}}</dt>
|
||||
</dl>
|
||||
|
||||
|
||||
</div>
|
||||
89
view/tpl/smarty3/admin_users.tpl
Normal file
89
view/tpl/smarty3/admin_users.tpl
Normal file
@@ -0,0 +1,89 @@
|
||||
<script>
|
||||
function confirm_delete(uname){
|
||||
return confirm( "{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
function confirm_delete_multi(){
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
function selectall(cls){
|
||||
$("."+cls).attr('checked','checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/users" method="post">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
<h3>{{$h_pending}}</h3>
|
||||
{{if $pending}}
|
||||
<table id='pending'>
|
||||
<thead>
|
||||
<tr>
|
||||
{{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $pending as $u}}
|
||||
<tr>
|
||||
<td class="created">{{$u.created}}</td>
|
||||
<td class="name">{{$u.name}}</td>
|
||||
<td class="email">{{$u.email}}</td>
|
||||
<td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
|
||||
<td class="tools">
|
||||
<a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title='{{$approve}}'><span class='icon like'></span></a>
|
||||
<a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title='{{$deny}}'><span class='icon dislike'></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit"><input type="submit" name="page_users_deny" value="{{$deny}}"/> <input type="submit" name="page_users_approve" value="{{$approve}}" /></div>
|
||||
{{else}}
|
||||
<p>{{$no_pending}}</p>
|
||||
{{/if}}
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>{{$h_users}}</h3>
|
||||
{{if $users}}
|
||||
<table id='users'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{foreach $th_users as $th}}<th>{{$th}}</th>{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $users as $u}}
|
||||
<tr>
|
||||
<td><img src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
|
||||
<td class='name'><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
|
||||
<td class='email'>{{$u.email}}</td>
|
||||
<td class='register_date'>{{$u.register_date}}</td>
|
||||
<td class='login_date'>{{$u.login_date}}</td>
|
||||
<td class='lastitem_date'>{{$u.lastitem_date}}</td>
|
||||
<td class='login_date'>{{$u.page_flags}}</td>
|
||||
<td class="checkbox"><input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/></td>
|
||||
<td class="tools">
|
||||
<a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title='{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}'><span class='icon block {{if $u.blocked==0}}dim{{/if}}'></span></a>
|
||||
<a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" title='{{$delete}}' onclick="return confirm_delete('{{$u.name}}')"><span class='icon drop'></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit"><input type="submit" name="page_users_block" value="{{$block}}/{{$unblock}}" /> <input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()" /></div>
|
||||
{{else}}
|
||||
NO USERS?!?
|
||||
{{/if}}
|
||||
</form>
|
||||
</div>
|
||||
15
view/tpl/smarty3/album_edit.tpl
Normal file
15
view/tpl/smarty3/album_edit.tpl
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="photo-album-edit-wrapper">
|
||||
<form name="photo-album-edit-form" id="photo-album-edit-form" action="photos/{{$nickname}}/album/{{$hexalbum}}" method="post" >
|
||||
|
||||
|
||||
<label id="photo-album-edit-name-label" for="photo-album-edit-name" >{{$nametext}}</label>
|
||||
<input type="text" size="64" name="albumname" value="{{$album}}" >
|
||||
|
||||
<div id="photo-album-edit-name-end"></div>
|
||||
|
||||
<input id="photo-album-edit-submit" type="submit" name="submit" value="{{$submit}}" />
|
||||
<input id="photo-album-edit-drop" type="submit" name="dropalbum" value="{{$dropsubmit}}" onclick="return confirmDelete();" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div id="photo-album-edit-end" ></div>
|
||||
66
view/tpl/smarty3/api_config_xml.tpl
Normal file
66
view/tpl/smarty3/api_config_xml.tpl
Normal file
@@ -0,0 +1,66 @@
|
||||
<config>
|
||||
<site>
|
||||
<name>{{$config.site.name}}</name>
|
||||
<server>{{$config.site.server}}</server>
|
||||
<theme>default</theme>
|
||||
<path></path>
|
||||
<logo>{{$config.site.logo}}</logo>
|
||||
|
||||
<fancy>true</fancy>
|
||||
<language>en</language>
|
||||
<email>{{$config.site.email}}</email>
|
||||
<broughtby></broughtby>
|
||||
<broughtbyurl></broughtbyurl>
|
||||
<timezone>UTC</timezone>
|
||||
<closed>{{$config.site.closed}}</closed>
|
||||
|
||||
<inviteonly>false</inviteonly>
|
||||
<private>{{$config.site.private}}</private>
|
||||
<textlimit>{{$config.site.textlimit}}</textlimit>
|
||||
<ssl>{{$config.site.ssl}}</ssl>
|
||||
<sslserver>{{$config.site.sslserver}}</sslserver>
|
||||
<shorturllength>30</shorturllength>
|
||||
|
||||
</site>
|
||||
<license>
|
||||
<type>cc</type>
|
||||
<owner></owner>
|
||||
<url>http://creativecommons.org/licenses/by/3.0/</url>
|
||||
<title>Creative Commons Attribution 3.0</title>
|
||||
<image>http://i.creativecommons.org/l/by/3.0/80x15.png</image>
|
||||
|
||||
</license>
|
||||
<nickname>
|
||||
<featured></featured>
|
||||
</nickname>
|
||||
<profile>
|
||||
<biolimit></biolimit>
|
||||
</profile>
|
||||
<group>
|
||||
<desclimit></desclimit>
|
||||
</group>
|
||||
<notice>
|
||||
|
||||
<contentlimit></contentlimit>
|
||||
</notice>
|
||||
<throttle>
|
||||
<enabled>false</enabled>
|
||||
<count>20</count>
|
||||
<timespan>600</timespan>
|
||||
</throttle>
|
||||
<xmpp>
|
||||
|
||||
<enabled>false</enabled>
|
||||
<server>INVALID SERVER</server>
|
||||
<port>5222</port>
|
||||
<user>update</user>
|
||||
</xmpp>
|
||||
<integration>
|
||||
<source>StatusNet</source>
|
||||
|
||||
</integration>
|
||||
<attachments>
|
||||
<uploads>false</uploads>
|
||||
<file_quota>0</file_quota>
|
||||
</attachments>
|
||||
</config>
|
||||
5
view/tpl/smarty3/api_friends_xml.tpl
Normal file
5
view/tpl/smarty3/api_friends_xml.tpl
Normal file
@@ -0,0 +1,5 @@
|
||||
<users type="array">
|
||||
{{foreach $users as $user}}
|
||||
{{include file="api_user_xml.tpl"}}
|
||||
{{/foreach}}
|
||||
</users>
|
||||
6
view/tpl/smarty3/api_ratelimit_xml.tpl
Normal file
6
view/tpl/smarty3/api_ratelimit_xml.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
<hash>
|
||||
<remaining-hits type="integer">{{$hash.remaining_hits}}</remaining-hits>
|
||||
<hourly-limit type="integer">{{$hash.hourly_limit}}</hourly-limit>
|
||||
<reset-time type="datetime">{{$hash.reset_time}}</reset-time>
|
||||
<reset_time_in_seconds type="integer">{{$hash.resettime_in_seconds}}</reset_time_in_seconds>
|
||||
</hash>
|
||||
46
view/tpl/smarty3/api_status_xml.tpl
Normal file
46
view/tpl/smarty3/api_status_xml.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
<status>{{if $status}}
|
||||
<created_at>{{$status.created_at}}</created_at>
|
||||
<id>{{$status.id}}</id>
|
||||
<text>{{$status.text}}</text>
|
||||
<source>{{$status.source}}</source>
|
||||
<truncated>{{$status.truncated}}</truncated>
|
||||
<in_reply_to_status_id>{{$status.in_reply_to_status_id}}</in_reply_to_status_id>
|
||||
<in_reply_to_user_id>{{$status.in_reply_to_user_id}}</in_reply_to_user_id>
|
||||
<favorited>{{$status.favorited}}</favorited>
|
||||
<in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||
<geo>{{$status.geo}}</geo>
|
||||
<coordinates>{{$status.coordinates}}</coordinates>
|
||||
<place>{{$status.place}}</place>
|
||||
<contributors>{{$status.contributors}}</contributors>
|
||||
<user>
|
||||
<id>{{$status.user.id}}</id>
|
||||
<name>{{$status.user.name}}</name>
|
||||
<screen_name>{{$status.user.screen_name}}</screen_name>
|
||||
<location>{{$status.user.location}}</location>
|
||||
<description>{{$status.user.description}}</description>
|
||||
<profile_image_url>{{$status.user.profile_image_url}}</profile_image_url>
|
||||
<url>{{$status.user.url}}</url>
|
||||
<protected>{{$status.user.protected}}</protected>
|
||||
<followers_count>{{$status.user.followers}}</followers_count>
|
||||
<profile_background_color>{{$status.user.profile_background_color}}</profile_background_color>
|
||||
<profile_text_color>{{$status.user.profile_text_color}}</profile_text_color>
|
||||
<profile_link_color>{{$status.user.profile_link_color}}</profile_link_color>
|
||||
<profile_sidebar_fill_color>{{$status.user.profile_sidebar_fill_color}}</profile_sidebar_fill_color>
|
||||
<profile_sidebar_border_color>{{$status.user.profile_sidebar_border_color}}</profile_sidebar_border_color>
|
||||
<friends_count>{{$status.user.friends_count}}</friends_count>
|
||||
<created_at>{{$status.user.created_at}}</created_at>
|
||||
<favourites_count>{{$status.user.favourites_count}}</favourites_count>
|
||||
<utc_offset>{{$status.user.utc_offset}}</utc_offset>
|
||||
<time_zone>{{$status.user.time_zone}}</time_zone>
|
||||
<profile_background_image_url>{{$status.user.profile_background_image_url}}</profile_background_image_url>
|
||||
<profile_background_tile>{{$status.user.profile_background_tile}}</profile_background_tile>
|
||||
<profile_use_background_image>{{$status.user.profile_use_background_image}}</profile_use_background_image>
|
||||
<notifications></notifications>
|
||||
<geo_enabled>{{$status.user.geo_enabled}}</geo_enabled>
|
||||
<verified>{{$status.user.verified}}</verified>
|
||||
<following></following>
|
||||
<statuses_count>{{$status.user.statuses_count}}</statuses_count>
|
||||
<lang>{{$status.user.lang}}</lang>
|
||||
<contributors_enabled>{{$status.user.contributors_enabled}}</contributors_enabled>
|
||||
</user>
|
||||
{{/if}}</status>
|
||||
1
view/tpl/smarty3/api_test_xml.tpl
Normal file
1
view/tpl/smarty3/api_test_xml.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<ok>{{$ok}}</ok>
|
||||
90
view/tpl/smarty3/api_timeline_atom.tpl
Normal file
90
view/tpl/smarty3/api_timeline_atom.tpl
Normal file
@@ -0,0 +1,90 @@
|
||||
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/">
|
||||
<generator uri="http://status.net" version="0.9.7">StatusNet</generator>
|
||||
<id>{{$rss.self}}</id>
|
||||
<title>Friendika</title>
|
||||
<subtitle>Friendika API feed</subtitle>
|
||||
<logo>{{$rss.logo}}</logo>
|
||||
<updated>{{$rss.atom_updated}}</updated>
|
||||
<link type="text/html" rel="alternate" href="{{$rss.alternate}}"/>
|
||||
<link type="application/atom+xml" rel="self" href="{{$rss.self}}"/>
|
||||
|
||||
|
||||
<author>
|
||||
<activity:obj_type>http://activitystrea.ms/schema/1.0/person</activity:obj_type>
|
||||
<uri>{{$user.url}}</uri>
|
||||
<name>{{$user.name}}</name>
|
||||
<link rel="alternate" type="text/html" href="{{$user.url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
|
||||
<georss:point></georss:point>
|
||||
<poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
|
||||
<poco:displayName>{{$user.name}}</poco:displayName>
|
||||
<poco:urls>
|
||||
<poco:type>homepage</poco:type>
|
||||
<poco:value>{{$user.url}}</poco:value>
|
||||
<poco:primary>true</poco:primary>
|
||||
</poco:urls>
|
||||
<statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
|
||||
</author>
|
||||
|
||||
<!--Deprecation warning: activity:subject is present only for backward compatibility. It will be removed in the next version of StatusNet.-->
|
||||
<activity:subject>
|
||||
<activity:obj_type>http://activitystrea.ms/schema/1.0/person</activity:obj_type>
|
||||
<id>{{$user.contact_url}}</id>
|
||||
<title>{{$user.name}}</title>
|
||||
<link rel="alternate" type="text/html" href="{{$user.url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
|
||||
<poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
|
||||
<poco:displayName>{{$user.name}}</poco:displayName>
|
||||
<poco:urls>
|
||||
<poco:type>homepage</poco:type>
|
||||
<poco:value>{{$user.url}}</poco:value>
|
||||
<poco:primary>true</poco:primary>
|
||||
</poco:urls>
|
||||
<statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
|
||||
</activity:subject>
|
||||
|
||||
|
||||
{{foreach $statuses as $status}}
|
||||
<entry>
|
||||
<activity:obj_type>{{$status.objecttype}}</activity:obj_type>
|
||||
<id>{{$status.message_id}}</id>
|
||||
<title>{{$status.text}}</title>
|
||||
<content type="html">{{$status.statusnet_html}}</content>
|
||||
<link rel="alternate" type="text/html" href="{{$status.url}}"/>
|
||||
<activity:verb>{{$status.verb}}</activity:verb>
|
||||
<published>{{$status.published}}</published>
|
||||
<updated>{{$status.updated}}</updated>
|
||||
|
||||
<link rel="self" type="application/atom+xml" href="{{$status.self}}"/>
|
||||
<link rel="edit" type="application/atom+xml" href="{{$status.edit}}"/>
|
||||
<statusnet:notice_info local_id="{{$status.id}}" source="{{$status.source}}" >
|
||||
</statusnet:notice_info>
|
||||
|
||||
<author>
|
||||
<activity:obj_type>http://activitystrea.ms/schema/1.0/person</activity:obj_type>
|
||||
<uri>{{$status.user.url}}</uri>
|
||||
<name>{{$status.user.name}}</name>
|
||||
<link rel="alternate" type="text/html" href="{{$status.user.url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$status.user.profile_image_url}}"/>
|
||||
|
||||
<georss:point/>
|
||||
<poco:preferredUsername>{{$status.user.screen_name}}</poco:preferredUsername>
|
||||
<poco:displayName>{{$status.user.name}}</poco:displayName>
|
||||
<poco:address/>
|
||||
<poco:urls>
|
||||
<poco:type>homepage</poco:type>
|
||||
<poco:value>{{$status.user.url}}</poco:value>
|
||||
<poco:primary>true</poco:primary>
|
||||
</poco:urls>
|
||||
</author>
|
||||
<link rel="ostatus:conversation" type="text/html" href="{{$status.url}}"/>
|
||||
|
||||
</entry>
|
||||
{{/foreach}}
|
||||
</feed>
|
||||
26
view/tpl/smarty3/api_timeline_rss.tpl
Normal file
26
view/tpl/smarty3/api_timeline_rss.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:twitter="http://api.twitter.com">
|
||||
<channel>
|
||||
<title>Friendika</title>
|
||||
<link>{{$rss.alternate}}</link>
|
||||
<atom:link type="application/rss+xml" rel="self" href="{{$rss.self}}"/>
|
||||
<description>Friendika timeline</description>
|
||||
<language>{{$rss.language}}</language>
|
||||
<ttl>40</ttl>
|
||||
<image>
|
||||
<link>{{$user.link}}</link>
|
||||
<title>{{$user.name}}'s items</title>
|
||||
<url>{{$user.profile_image_url}}</url>
|
||||
</image>
|
||||
|
||||
{{foreach $statuses as $status}}
|
||||
<item>
|
||||
<title>{{$status.user.name}}: {{$status.text}}</title>
|
||||
<description>{{$status.text}}</description>
|
||||
<pubDate>{{$status.created_at}}</pubDate>
|
||||
<guid>{{$status.url}}</guid>
|
||||
<link>{{$status.url}}</link>
|
||||
<twitter:source>{{$status.source}}</twitter:source>
|
||||
</item>
|
||||
{{/foreach}}
|
||||
</channel>
|
||||
</rss>
|
||||
20
view/tpl/smarty3/api_timeline_xml.tpl
Normal file
20
view/tpl/smarty3/api_timeline_xml.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
<statuses type="array" xmlns:statusnet="http://status.net/schema/api/1/">
|
||||
{{foreach $statuses as $status}} <status>
|
||||
<text>{{$status.text}}</text>
|
||||
<truncated>{{$status.truncated}}</truncated>
|
||||
<created_at>{{$status.created_at}}</created_at>
|
||||
<in_reply_to_status_id>{{$status.in_reply_to_status_id}}</in_reply_to_status_id>
|
||||
<source>{{$status.source}}</source>
|
||||
<id>{{$status.id}}</id>
|
||||
<in_reply_to_user_id>{{$status.in_reply_to_user_id}}</in_reply_to_user_id>
|
||||
<in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||
<geo>{{$status.geo}}</geo>
|
||||
<favorited>{{$status.favorited}}</favorited>
|
||||
{{include file="api_user_xml.tpl" user=$status.user}} <statusnet:html>{{$status.statusnet_html}}</statusnet:html>
|
||||
<statusnet:conversation_id>{{$status.statusnet_conversation_id}}</statusnet:conversation_id>
|
||||
<url>{{$status.url}}</url>
|
||||
<coordinates>{{$status.coordinates}}</coordinates>
|
||||
<place>{{$status.place}}</place>
|
||||
<contributors>{{$status.contributors}}</contributors>
|
||||
</status>
|
||||
{{/foreach}}</statuses>
|
||||
46
view/tpl/smarty3/api_user_xml.tpl
Normal file
46
view/tpl/smarty3/api_user_xml.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
<user>
|
||||
<id>{{$user.id}}</id>
|
||||
<name>{{$user.name}}</name>
|
||||
<screen_name>{{$user.screen_name}}</screen_name>
|
||||
<location>{{$user.location}}</location>
|
||||
<description>{{$user.description}}</description>
|
||||
<profile_image_url>{{$user.profile_image_url}}</profile_image_url>
|
||||
<url>{{$user.url}}</url>
|
||||
<protected>{{$user.protected}}</protected>
|
||||
<followers_count>{{$user.followers_count}}</followers_count>
|
||||
<friends_count>{{$user.friends_count}}</friends_count>
|
||||
<created_at>{{$user.created_at}}</created_at>
|
||||
<favourites_count>{{$user.favourites_count}}</favourites_count>
|
||||
<utc_offset>{{$user.utc_offset}}</utc_offset>
|
||||
<time_zone>{{$user.time_zone}}</time_zone>
|
||||
<statuses_count>{{$user.statuses_count}}</statuses_count>
|
||||
<following>{{$user.following}}</following>
|
||||
<profile_background_color>{{$user.profile_background_color}}</profile_background_color>
|
||||
<profile_text_color>{{$user.profile_text_color}}</profile_text_color>
|
||||
<profile_link_color>{{$user.profile_link_color}}</profile_link_color>
|
||||
<profile_sidebar_fill_color>{{$user.profile_sidebar_fill_color}}</profile_sidebar_fill_color>
|
||||
<profile_sidebar_border_color>{{$user.profile_sidebar_border_color}}</profile_sidebar_border_color>
|
||||
<profile_background_image_url>{{$user.profile_background_image_url}}</profile_background_image_url>
|
||||
<profile_background_tile>{{$user.profile_background_tile}}</profile_background_tile>
|
||||
<profile_use_background_image>{{$user.profile_use_background_image}}</profile_use_background_image>
|
||||
<notifications>{{$user.notifications}}</notifications>
|
||||
<geo_enabled>{{$user.geo_enabled}}</geo_enabled>
|
||||
<verified>{{$user.verified}}</verified>
|
||||
<lang>{{$user.lang}}</lang>
|
||||
<contributors_enabled>{{$user.contributors_enabled}}</contributors_enabled>
|
||||
<status>{{if $user.status}}
|
||||
<created_at>{{$user.status.created_at}}</created_at>
|
||||
<id>{{$user.status.id}}</id>
|
||||
<text>{{$user.status.text}}</text>
|
||||
<source>{{$user.status.source}}</source>
|
||||
<truncated>{{$user.status.truncated}}</truncated>
|
||||
<in_reply_to_status_id>{{$user.status.in_reply_to_status_id}}</in_reply_to_status_id>
|
||||
<in_reply_to_user_id>{{$user.status.in_reply_to_user_id}}</in_reply_to_user_id>
|
||||
<favorited>{{$user.status.favorited}}</favorited>
|
||||
<in_reply_to_screen_name>{{$user.status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||
<geo>{{$user.status.geo}}</geo>
|
||||
<coordinates>{{$user.status.coordinates}}</coordinates>
|
||||
<place>{{$user.status.place}}</place>
|
||||
<contributors>{{$user.status.contributors}}</contributors>
|
||||
{{/if}}</status>
|
||||
</user>
|
||||
7
view/tpl/smarty3/apps.tpl
Normal file
7
view/tpl/smarty3/apps.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
<h3>{{$title}}</h3>
|
||||
|
||||
<ul>
|
||||
{{foreach $apps as $ap}}
|
||||
<li>{{$ap}}</li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
29
view/tpl/smarty3/atom_feed.tpl
Normal file
29
view/tpl/smarty3/atom_feed.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"
|
||||
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
||||
xmlns:at="http://purl.org/atompub/tombstones/1.0"
|
||||
xmlns:media="http://purl.org/syndication/atommedia"
|
||||
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0"
|
||||
xmlns:as="http://activitystrea.ms/spec/1.0/"
|
||||
xmlns:georss="http://www.georss.org/georss"
|
||||
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
||||
xmlns:ostatus="http://ostatus.org/schema/1.0"
|
||||
xmlns:statusnet="http://status.net/schema/api/1/" >
|
||||
|
||||
<id>{{$feed_id}}</id>
|
||||
<title>{{$feed_title}}</title>
|
||||
<generator uri="http://friendica.com" version="{{$version}}">Friendica</generator>
|
||||
<link rel="license" href="http://creativecommons.org/licenses/by/3.0/" />
|
||||
{{$hub}}
|
||||
{{$salmon}}
|
||||
{{$community}}
|
||||
|
||||
<updated>{{$feed_updated}}</updated>
|
||||
|
||||
<dfrn:owner>
|
||||
<name dfrn:updated="{{$namdate}}" >{{$name}}</name>
|
||||
<uri dfrn:updated="{{$uridate}}" >{{$profile_page}}</uri>
|
||||
<link rel="photo" type="image/jpeg" dfrn:updated="{{$picdate}}" media:width="175" media:height="175" href="{{$photo}}" />
|
||||
<link rel="avatar" type="image/jpeg" dfrn:updated="{{$picdate}}" media:width="175" media:height="175" href="{{$photo}}" />
|
||||
{{$birthday}}
|
||||
</dfrn:owner>
|
||||
29
view/tpl/smarty3/atom_feed_dfrn.tpl
Normal file
29
view/tpl/smarty3/atom_feed_dfrn.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"
|
||||
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
||||
xmlns:at="http://purl.org/atompub/tombstones/1.0"
|
||||
xmlns:media="http://purl.org/syndication/atommedia"
|
||||
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0"
|
||||
xmlns:as="http://activitystrea.ms/spec/1.0/"
|
||||
xmlns:georss="http://www.georss.org/georss"
|
||||
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
||||
xmlns:ostatus="http://ostatus.org/schema/1.0"
|
||||
xmlns:statusnet="http://status.net/schema/api/1/" >
|
||||
|
||||
<id>{{$feed_id}}</id>
|
||||
<title>{{$feed_title}}</title>
|
||||
<generator uri="http://friendica.com" version="{{$version}}">Friendica</generator>
|
||||
<link rel="license" href="http://creativecommons.org/licenses/by/3.0/" />
|
||||
{{$hub}}
|
||||
{{$salmon}}
|
||||
{{$community}}
|
||||
|
||||
<updated>{{$feed_updated}}</updated>
|
||||
|
||||
<author>
|
||||
<name dfrn:updated="{{$namdate}}" >{{$name}}</name>
|
||||
<uri dfrn:updated="{{$uridate}}" >{{$profile_page}}</uri>
|
||||
<link rel="photo" type="image/jpeg" dfrn:updated="{{$picdate}}" media:width="175" media:height="175" href="{{$photo}}" />
|
||||
<link rel="avatar" type="image/jpeg" dfrn:updated="{{$picdate}}" media:width="175" media:height="175" href="{{$photo}}" />
|
||||
{{$birthday}}
|
||||
</author>
|
||||
17
view/tpl/smarty3/atom_mail.tpl
Normal file
17
view/tpl/smarty3/atom_mail.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
<dfrn:mail>
|
||||
|
||||
<dfrn:sender>
|
||||
<dfrn:name>{{$name}}</dfrn:name>
|
||||
<dfrn:uri>{{$profile_page}}</dfrn:uri>
|
||||
<dfrn:avatar>{{$thumb}}</dfrn:avatar>
|
||||
</dfrn:sender>
|
||||
|
||||
<dfrn:id>{{$item_id}}</dfrn:id>
|
||||
<dfrn:in-reply-to>{{$parent_id}}</dfrn:in-reply-to>
|
||||
<dfrn:sentdate>{{$created}}</dfrn:sentdate>
|
||||
<dfrn:subject>{{$subject}}</dfrn:subject>
|
||||
<dfrn:content>{{$content}}</dfrn:content>
|
||||
|
||||
</dfrn:mail>
|
||||
|
||||
11
view/tpl/smarty3/atom_suggest.tpl
Normal file
11
view/tpl/smarty3/atom_suggest.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
<dfrn:suggest>
|
||||
|
||||
<dfrn:url>{{$url}}</dfrn:url>
|
||||
<dfrn:name>{{$name}}</dfrn:name>
|
||||
<dfrn:photo>{{$photo}}</dfrn:photo>
|
||||
<dfrn:request>{{$request}}</dfrn:request>
|
||||
<dfrn:note>{{$note}}</dfrn:note>
|
||||
|
||||
</dfrn:suggest>
|
||||
|
||||
37
view/tpl/smarty3/auto_request.tpl
Normal file
37
view/tpl/smarty3/auto_request.tpl
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
<h1>{{$header}}</h1>
|
||||
|
||||
<p id="dfrn-request-intro">
|
||||
{{$page_desc}}<br />
|
||||
<ul id="dfrn-request-networks">
|
||||
<li><a href="http://friendica.com" title="{{$friendica}}">{{$friendica}}</a></li>
|
||||
<li><a href="http://joindiaspora.com" title="{{$diaspora}}">{{$diaspora}}</a> {{$diasnote}}</li>
|
||||
<li><a href="http://ostatus.org" title="{{$public_net}}" >{{$statusnet}}</a></li>
|
||||
{{if $emailnet}}<li>{{$emailnet}}</li>{{/if}}
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
{{$invite_desc}}
|
||||
</p>
|
||||
<p>
|
||||
{{$desc}}
|
||||
</p>
|
||||
|
||||
<form action="dfrn_request/{{$nickname}}" method="post" />
|
||||
|
||||
<div id="dfrn-request-url-wrapper" >
|
||||
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<div id="dfrn-request-url-end"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dfrn-request-info-wrapper" >
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dfrn-request-submit-wrapper">
|
||||
<input type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}" />
|
||||
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}" />
|
||||
</div>
|
||||
</form>
|
||||
10
view/tpl/smarty3/birthdays_reminder.tpl
Normal file
10
view/tpl/smarty3/birthdays_reminder.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
{{if $count}}
|
||||
<div id="birthday-notice" class="birthday-notice fakelink {{$classtoday}}" onclick="openClose('birthday-wrapper');">{{$event_reminders}} ({{$count}})</div>
|
||||
<div id="birthday-wrapper" style="display: none;" ><div id="birthday-title">{{$event_title}}</div>
|
||||
<div id="birthday-title-end"></div>
|
||||
{{foreach $events as $event}}
|
||||
<div class="birthday-list" id="birthday-{{$event.id}}"></a> <a href="{{$event.link}}">{{$event.title}}</a> {{$event.date}} </div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
50
view/tpl/smarty3/build_query.tpl
Normal file
50
view/tpl/smarty3/build_query.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
<script>
|
||||
|
||||
var bParam_cmd = "{{$baseurl}}/update_{{$pgtype}}";
|
||||
|
||||
|
||||
var bParam_uid = {{$uid}};
|
||||
var bParam_gid = {{$gid}};
|
||||
var bParam_cid = {{$cid}};
|
||||
var bParam_cmin = {{$cmin}};
|
||||
var bParam_cmax = {{$cmax}};
|
||||
var bParam_star = {{$star}};
|
||||
var bParam_liked = {{$liked}};
|
||||
var bParam_conv = {{$conv}};
|
||||
var bParam_spam = {{$spam}};
|
||||
var bParam_new = {{$nouveau}};
|
||||
var bParam_page = {{$page}};
|
||||
var bParam_wall = {{$wall}};
|
||||
|
||||
var bParam_search = "{{$search}}";
|
||||
var bParam_order = "{{$order}}";
|
||||
var bParam_file = "{{$file}}";
|
||||
var bParam_cats = "{{$cats}}";
|
||||
var bParam_dend = "{{$dend}}";
|
||||
var bParam_dbegin = "{{$dbegin}}";
|
||||
|
||||
function buildCmd() {
|
||||
var udargs = ((page_load) ? "/load" : "");
|
||||
var bCmd = bParam_cmd + udargs + "?f=" ;
|
||||
if(bParam_uid) bCmd = bCmd + "&p=" + bParam_uid;
|
||||
if(bParam_cmin != 0) bCmd = bCmd + "&cmin=" + bParam_cmin;
|
||||
if(bParam_cmax != 99) bCmd = bCmd + "&cmax=" + bParam_cmax;
|
||||
if(bParam_gid != 0) { bCmd = bCmd + "&gid=" + bParam_gid; } else
|
||||
if(bParam_cid != 0) { bCmd = bCmd + "&cid=" + bParam_cid; }
|
||||
if(bParam_star != 0) bCmd = bCmd + "&star=" + bParam_star;
|
||||
if(bParam_liked != 0) bCmd = bCmd + "&liked=" + bParam_liked;
|
||||
if(bParam_conv!= 0) bCmd = bCmd + "&conv=" + bParam_conv;
|
||||
if(bParam_spam != 0) bCmd = bCmd + "&spam=" + bParam_spam;
|
||||
if(bParam_new != 0) bCmd = bCmd + "&new=" + bParam_new;
|
||||
if(bParam_wall != 0) bCmd = bCmd + "&wall=" + bParam_wall;
|
||||
if(bParam_search != "") bCmd = bCmd + "&search=" + bParam_search;
|
||||
if(bParam_file != "") bCmd = bCmd + "&file=" + bParam_file;
|
||||
if(bParam_cats != "") bCmd = bCmd + "&cats=" + bParam_cats;
|
||||
if(bParam_dend != "") bCmd = bCmd + "&dend=" + bParam_dend;
|
||||
if(bParam_dbegin != "") bCmd = bCmd + "&dbegin=" + bParam_dbegin;
|
||||
if(bParam_page != 1) bCmd = bCmd + "&page=" + bParam_page;
|
||||
return(bCmd);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
12
view/tpl/smarty3/categories_widget.tpl
Normal file
12
view/tpl/smarty3/categories_widget.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<div id="categories-sidebar" class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<div id="categories-sidebar-desc">{{$desc}}</div>
|
||||
|
||||
<ul class="categories-ul">
|
||||
<li class="tool"><a href="{{$base}}" class="categories-link categories-all{{if $sel_all}} categories-selected{{/if}}">{{$all}}</a></li>
|
||||
{{foreach $terms as $term}}
|
||||
<li class="tool"><a href="{{$base}}?f=&cat={{$term.name}}" class="categories-link{{if $term.selected}} categories-selected{{/if}}">{{$term.name}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
12
view/tpl/smarty3/channel.tpl
Normal file
12
view/tpl/smarty3/channel.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="channel-selection">
|
||||
{{if $channel.default_links}}
|
||||
{{if $channel.default}}
|
||||
<div class="channel-selection-default default">{{$msg_default}}</div>
|
||||
{{else}}
|
||||
<div class="channel-selection-default"><a href="manage/{{$channel.channel_id}}/default">{{$msg_make_default}}</a></div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<a href="{{$channel.link}}" class="channel-selection-photo-link" title="{{$channel.channel_name}}"><img class="channel-photo" src="{{$channel.xchan_photo_m}}" alt="{{$channel.channel_name}}" /></a>
|
||||
<a href="{{$channel.link}}" class="channel-selection-name-link" title="{{$channel.channel_name}}"><div class="channel-name">{{$channel.channel_name}}</div></a>
|
||||
</div>
|
||||
<div class="channel-selection-end"></div>
|
||||
22
view/tpl/smarty3/channels.tpl
Normal file
22
view/tpl/smarty3/channels.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
<h3>{{$header}}</h3>
|
||||
|
||||
|
||||
{{if $links}}
|
||||
{{foreach $links as $l}}
|
||||
<a class="channels-links" href="{{$l.0}}" title="{{$l.1}}">{{$l.2}}</a>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
{{if $selected}}
|
||||
<div id="channels-selected">{{$msg_selected}}</div>
|
||||
{{include file="channel.tpl" channel=$selected}}
|
||||
<div class="channels-end selected"></div>
|
||||
{{/if}}
|
||||
|
||||
<div id="channels-desc" class="descriptive-text">{{$desc}}</div>
|
||||
|
||||
{{foreach $all_channels as $chn}}
|
||||
{{include file="channel.tpl" channel=$chn}}
|
||||
{{/foreach}}
|
||||
|
||||
<div class="channels-end all"></div>
|
||||
1
view/tpl/smarty3/chanview.tpl
Normal file
1
view/tpl/smarty3/chanview.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<iframe id="remote-channel" width="100%" src="{{$url}}" onload="resize_iframe()"></iframe>
|
||||
68
view/tpl/smarty3/comment_item.tpl
Normal file
68
view/tpl/smarty3/comment_item.tpl
Normal file
@@ -0,0 +1,68 @@
|
||||
{{if $threaded}}
|
||||
<div class="comment-wwedit-wrapper threaded" id="comment-edit-wrapper-{{$id}}" style="display: block;">
|
||||
{{else}}
|
||||
<div class="comment-wwedit-wrapper" id="comment-edit-wrapper-{{$id}}" style="display: block;">
|
||||
{{/if}}
|
||||
<form class="comment-edit-form" style="display: block;" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">
|
||||
<input type="hidden" name="type" value="{{$type}}" />
|
||||
<input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
|
||||
<input type="hidden" name="parent" value="{{$parent}}" />
|
||||
<input type="hidden" name="return" value="{{$return_path}}" />
|
||||
<input type="hidden" name="jsreload" value="{{$jsreload}}" />
|
||||
<input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
|
||||
<input type="hidden" name="post_id_random" value="{{$rand_num}}" />
|
||||
|
||||
<div class="comment-edit-photo" id="comment-edit-photo-{{$id}}" >
|
||||
<a class="comment-edit-photo-link" href="{{$mylink}}" title="{{$mytitle}}"><img class="my-comment-photo" src="{{$myphoto}}" alt="{{$mytitle}}" title="{{$mytitle}}" /></a>
|
||||
</div>
|
||||
<div class="comment-edit-photo-end"></div>
|
||||
<ul class="comment-edit-bb-{{$id}}">
|
||||
<li><a class="editicon boldbb shadow"
|
||||
style="cursor: pointer;" title="{{$edbold}}"
|
||||
onclick="insertFormatting('{{$comment}}','b', {{$id}});"></a></li>
|
||||
<li><a class="editicon italicbb shadow"
|
||||
style="cursor: pointer;" title="{{$editalic}}"
|
||||
onclick="insertFormatting('{{$comment}}','i', {{$id}});"></a></li>
|
||||
<li><a class="editicon underlinebb shadow"
|
||||
style="cursor: pointer;" title="{{$eduline}}"
|
||||
onclick="insertFormatting('{{$comment}}','u', {{$id}});"></a></li>
|
||||
<li><a class="editicon quotebb shadow"
|
||||
style="cursor: pointer;" title="{{$edquote}}"
|
||||
onclick="insertFormatting('{{$comment}}','quote', {{$id}});"></a></li>
|
||||
<li><a class="editicon codebb shadow"
|
||||
style="cursor: pointer;" title="{{$edcode}}"
|
||||
onclick="insertFormatting('{{$comment}}','code', {{$id}});"></a></li>
|
||||
<li><a class="editicon imagebb shadow"
|
||||
style="cursor: pointer;" title="{{$edimg}}"
|
||||
onclick="insertFormatting('{{$comment}}','img', {{$id}});"></a></li>
|
||||
<li><a class="editicon urlbb shadow"
|
||||
style="cursor: pointer;" title="{{$edurl}}"
|
||||
onclick="insertFormatting('{{$comment}}','url', {{$id}});"></a></li>
|
||||
<li><a class="editicon videobb shadow"
|
||||
style="cursor: pointer;" title="{{$edvideo}}"
|
||||
onclick="insertFormatting('{{$comment}}','video', {{$id}});"></a></li>
|
||||
</ul>
|
||||
<div class="comment-edit-bb-end"></div>
|
||||
<textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,{{$id}});cmtBbOpen(this, {{$id}});" onBlur="commentClose(this,{{$id}});cmtBbClose(this,{{$id}});" >{{$comment}}</textarea>
|
||||
{{if $qcomment}}
|
||||
<select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" >
|
||||
<option value=""></option>
|
||||
{{foreach $qcomment as $qc}}
|
||||
<option value="{{$qc}}">{{$qc}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
{{/if}}
|
||||
|
||||
<div class="comment-edit-text-end"></div>
|
||||
<div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" style="display: none;" >
|
||||
<input type="submit" onclick="post_comment({{$id}}); return false;" id="comment-edit-submit-{{$id}}" class="comment-edit-submit" name="submit" value="{{$submit}}" />
|
||||
{{if $preview}}
|
||||
<span onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}" class="fakelink">{{$preview}}</span>
|
||||
<div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="comment-edit-end"></div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
12
view/tpl/smarty3/common_friends.tpl
Normal file
12
view/tpl/smarty3/common_friends.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="profile-match-wrapper">
|
||||
<div class="profile-match-photo">
|
||||
<a href="{{$url}}">
|
||||
<img src="{{$photo}}" alt="{{$name}}" width="80" height="80" title="{{$name}} [{{$url}}]" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-match-break"></div>
|
||||
<div class="profile-match-name">
|
||||
<a href="{{$url}}" title="{{$name}}[{{$tags}}]">{{$name}}</a>
|
||||
</div>
|
||||
<div class="profile-match-end"></div>
|
||||
</div>
|
||||
6
view/tpl/smarty3/common_tabs.tpl
Normal file
6
view/tpl/smarty3/common_tabs.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
<ul class="tabs">
|
||||
{{foreach $tabs as $tab}}
|
||||
<li {{if $tab.id}}id="{{$tab.id}}"{{/if}}><a href="{{$tab.url}}" class="tab button {{$tab.sel}}"{{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
<div class="tabs-end"></div>
|
||||
12
view/tpl/smarty3/contact_block.tpl
Normal file
12
view/tpl/smarty3/contact_block.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<div id="contact-block">
|
||||
<div id="contact-block-numcontacts">{{$contacts}}</div>
|
||||
{{if $micropro}}
|
||||
<a class="allcontact-link" href="viewcontacts/{{$nickname}}">{{$viewcontacts}}</a>
|
||||
<div class='contact-block-content'>
|
||||
{{foreach $micropro as $m}}
|
||||
{{$m}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
89
view/tpl/smarty3/contact_edit.tpl
Normal file
89
view/tpl/smarty3/contact_edit.tpl
Normal file
@@ -0,0 +1,89 @@
|
||||
|
||||
<h2>{{$header}}</h2>
|
||||
|
||||
<div id="contact-edit-wrapper" >
|
||||
|
||||
{{$tab_str}}
|
||||
|
||||
<div id="contact-edit-drop-link" >
|
||||
<a href="contacts/{{$contact_id}}/drop" class="icon drophide" id="contact-edit-drop-link" onclick="return confirmDelete();" title="{{$delete}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);"></a>
|
||||
</div>
|
||||
|
||||
<div id="contact-edit-drop-link-end"></div>
|
||||
|
||||
|
||||
<div id="contact-edit-nav-wrapper" >
|
||||
<div id="contact-edit-links">
|
||||
<ul>
|
||||
<li><div id="contact-edit-rel">{{$relation_text}}</div></li>
|
||||
<li><div id="contact-edit-nettype">{{$nettype}}</div></li>
|
||||
{{if $lost_contact}}
|
||||
<li><div id="lost-contact-message">{{$lost_contact}}</div></li>
|
||||
{{/if}}
|
||||
{{if $insecure}}
|
||||
<li><div id="insecure-message">{{$insecure}}</div></li>
|
||||
{{/if}}
|
||||
{{if $blocked}}
|
||||
<li><div id="block-message">{{$blocked}}</div></li>
|
||||
{{/if}}
|
||||
{{if $ignored}}
|
||||
<li><div id="ignore-message">{{$ignored}}</div></li>
|
||||
{{/if}}
|
||||
{{if $archived}}
|
||||
<li><div id="archive-message">{{$archived}}</div></li>
|
||||
{{/if}}
|
||||
|
||||
<li> </li>
|
||||
|
||||
{{if $common_text}}
|
||||
<li><div id="contact-edit-common"><a href="{{$common_link}}">{{$common_text}}</a></div></li>
|
||||
{{/if}}
|
||||
{{if $all_friends}}
|
||||
<li><div id="contact-edit-allfriends"><a href="allfriends/{{$contact_id}}">{{$all_friends}}</a></div></li>
|
||||
{{/if}}
|
||||
|
||||
|
||||
<li><a href="network/?cid={{$contact_id}}" id="contact-edit-view-recent">{{$lblrecent}}</a></li>
|
||||
{{if $lblsuggest}}
|
||||
<li><a href="fsuggest/{{$contact_id}}" id="contact-edit-suggest">{{$lblsuggest}}</a></li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="contact-edit-nav-end"></div>
|
||||
|
||||
|
||||
<form action="contacts/{{$contact_id}}" method="post" >
|
||||
<input type="hidden" name="contact_id" value="{{$contact_id}}">
|
||||
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
|
||||
|
||||
{{if $poll_enabled}}
|
||||
<div id="contact-edit-poll-wrapper">
|
||||
<div id="contact-edit-last-update-text">{{$lastupdtext}} <span id="contact-edit-last-updated">{{$last_update}}</span></div>
|
||||
<span id="contact-edit-poll-text">{{$updpub}}</span> {{$poll_interval}} <span id="contact-edit-update-now" class="button"><a href="contacts/{{$contact_id}}/update" >{{$udnow}}</a></span>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div id="contact-edit-end" ></div>
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$hidden}}
|
||||
|
||||
<div id="contact-edit-info-wrapper">
|
||||
<h4>{{$lbl_info1}}</h4>
|
||||
<textarea id="contact-edit-info" rows="8" cols="60" name="info">{{$info}}</textarea>
|
||||
<input class="contact-edit-submit" type="submit" name="submit" value="{{$submit}}" />
|
||||
</div>
|
||||
<div id="contact-edit-info-end"></div>
|
||||
|
||||
|
||||
<div id="contact-edit-profile-select-text">
|
||||
<h4>{{$lbl_vis1}}</h4>
|
||||
<p>{{$lbl_vis2}}</p>
|
||||
</div>
|
||||
{{$profile_select}}
|
||||
<div id="contact-edit-profile-select-end"></div>
|
||||
|
||||
<input class="contact-edit-submit" type="submit" name="submit" value="{{$submit}}" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
30
view/tpl/smarty3/contact_head.tpl
Normal file
30
view/tpl/smarty3/contact_head.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
tinyMCE.init({
|
||||
theme : "advanced",
|
||||
mode : "{{$editselect}}",
|
||||
elements: "contact-edit-info",
|
||||
plugins : "bbcode",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "center",
|
||||
theme_advanced_styles : "blockquote,code",
|
||||
gecko_spellcheck : true,
|
||||
entity_encoding : "raw",
|
||||
add_unload_trigger : false,
|
||||
remove_linebreaks : false,
|
||||
force_p_newlines : false,
|
||||
force_br_newlines : true,
|
||||
forced_root_block : '',
|
||||
content_css: "{{$baseurl}}/view/custom_tinymce.css"
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
4
view/tpl/smarty3/contact_slider.tpl
Normal file
4
view/tpl/smarty3/contact_slider.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
<div id="contact-slider" class="slider" style="height: 32px; position: relative; left: 5%; width: 90%;"><input id="contact-range" type="text" name="fake-closeness" value="{{$val}}" /></div>
|
||||
<script>
|
||||
$("#contact-range").slider({ from: 0, to: 99, step: 1, scale: ['{{$me}}', '|', '{{$intimate}}', '|', '{{$friends}}', '|', '{{$oldfriends}}', '|', '{{$acquaintances}}', '|', '{{$world}}' ], onstatechange: function(v) { $("#contact-closeness-mirror").val(v); } });
|
||||
</script>
|
||||
9
view/tpl/smarty3/contact_template.tpl
Normal file
9
view/tpl/smarty3/contact_template.tpl
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
|
||||
<div class="contact-entry-photo-wrapper" >
|
||||
<a href="{{$contact.edit}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
|
||||
</div>
|
||||
<div class="contact-entry-photo-end" ></div>
|
||||
<div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >{{$contact.name}}</div>
|
||||
<div class="contact-entry-end" ></div>
|
||||
</div>
|
||||
26
view/tpl/smarty3/contacts-template.tpl
Normal file
26
view/tpl/smarty3/contacts-template.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
<h1>{{$header}}{{if $total}} ({{$total}}){{/if}}</h1>
|
||||
|
||||
{{if $finding}}<h4>{{$finding}}</h4>{{/if}}
|
||||
|
||||
<div id="contacts-search-wrapper">
|
||||
<form id="contacts-search-form" action="{{$cmd}}" method="get" >
|
||||
<span class="contacts-search-desc">{{$desc}}</span>
|
||||
<input type="text" name="search" id="contacts-search" class="search-input" onfocus="this.select();" value="{{$search}}" />
|
||||
<input type="submit" name="submit" id="contacts-search-submit" value="{{$submit}}" />
|
||||
</form>
|
||||
</div>
|
||||
<div id="contacts-search-end"></div>
|
||||
|
||||
{{$tabs}}
|
||||
|
||||
|
||||
{{foreach $contacts as $contact}}
|
||||
{{include file="contact_template.tpl"}}
|
||||
{{/foreach}}
|
||||
<div id="contact-edit-end"></div>
|
||||
|
||||
{{$paginate}}
|
||||
|
||||
|
||||
|
||||
|
||||
2
view/tpl/smarty3/content.tpl
Normal file
2
view/tpl/smarty3/content.tpl
Normal file
@@ -0,0 +1,2 @@
|
||||
<div id="content-begin"></div>
|
||||
<div id="content-end"></div>
|
||||
17
view/tpl/smarty3/conv.tpl
Normal file
17
view/tpl/smarty3/conv.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
{{foreach $threads as $thread}}
|
||||
<div id="thread-wrapper-{{$thread.id}}" class="thread-wrapper">
|
||||
{{foreach $thread.items as $item}}
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer">
|
||||
<span id="hide-comments-total-{{$thread.id}}" class="hide-comments-total">{{$thread.num_comments}}</span> <span id="hide-comments-{{$thread.id}}" class="hide-comments fakelink" onclick="showHideComments({{$thread.id}});">{{$thread.hide_text}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$thread.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||
|
||||
{{include file="{{$item.template}}"}}
|
||||
|
||||
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/foreach}}
|
||||
14
view/tpl/smarty3/conv_frame.tpl
Normal file
14
view/tpl/smarty3/conv_frame.tpl
Normal file
@@ -0,0 +1,14 @@
|
||||
<div id="threads-begin"></div>
|
||||
<div id="threads-end"></div>
|
||||
<div id="conversation-end"></div>
|
||||
|
||||
{{if $dropping}}
|
||||
<div id="item-delete-selected" class="fakelink" onclick="deleteCheckedItems();">
|
||||
<div id="item-delete-selected-icon" class="icon drophide" title="{{$dropping}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></div>
|
||||
<div id="item-delete-selected-desc" >{{$dropping}}</div>
|
||||
</div>
|
||||
<div id="item-delete-selected-end"></div>
|
||||
{{/if}}
|
||||
|
||||
<img id="page-spinner" src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}" style="display: none;" />
|
||||
|
||||
115
view/tpl/smarty3/conv_item.tpl
Normal file
115
view/tpl/smarty3/conv_item.tpl
Normal file
@@ -0,0 +1,115 @@
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer">
|
||||
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">{{$item.num_comments}}</span> <span id="hide-comments-{{$item.id}}" class="hide-comments fakelink" onclick="showHideComments({{$item.id}});">{{$item.hide_text}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper {{$item.toplevel}}">
|
||||
<a name="{{$item.id}}" ></a>
|
||||
<div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" >
|
||||
<div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" >
|
||||
<div class="wall-item-info{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-info-{{$item.id}}">
|
||||
{{if $item.owner_url}}
|
||||
<div class="wall-item-photo-wrapper wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}" >
|
||||
<a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-photo-link" id="wall-item-ownerphoto-link-{{$item.id}}">
|
||||
<img src="{{$item.owner_photo}}" class="wall-item-photo{{$item.osparkle}}" id="wall-item-ownerphoto-{{$item.id}}" style="height: 80px; width: 80px;" alt="{{$item.owner_name}}" /></a>
|
||||
</div>
|
||||
<div class="wall-item-arrowphoto-wrapper" ><img src="images/larrow.gif" alt="{{$item.wall}}" /></div>
|
||||
{{/if}}
|
||||
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}"
|
||||
onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')"
|
||||
onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-photo-link" id="wall-item-photo-link-{{$item.id}}">
|
||||
<img src="{{$item.thumb}}" class="wall-item-photo{{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" style="height: 80px; width: 80px;" alt="{{$item.name}}" /></a>
|
||||
<span onclick="openClose('wall-item-photo-menu-{{$item.id}}');" class="fakelink wall-item-photo-menu-button" id="wall-item-photo-menu-button-{{$item.id}}">menu</span>
|
||||
<div class="wall-item-photo-menu" id="wall-item-photo-menu-{{$item.id}}">
|
||||
<ul>
|
||||
{{$item.item_photo_menu}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="wall-item-photo-end"></div>
|
||||
<div class="wall-item-wrapper" id="wall-item-wrapper-{{$item.id}}" >
|
||||
{{if $item.lock}}<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="{{$item.lock}}" onclick="lockview(event,{{$item.id}});" /></div>
|
||||
{{else}}<div class="wall-item-lock"></div>{{/if}}
|
||||
<div class="wall-item-location" id="wall-item-location-{{$item.id}}">{{$item.location}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-author">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.to}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a> {{$item.vwall}}{{/if}}<br />
|
||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}" title="{{$item.localtime}}">{{$item.ago}}</div>
|
||||
</div>
|
||||
<div class="wall-item-content" id="wall-item-content-{{$item.id}}" >
|
||||
<div class="wall-item-title" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
|
||||
<div class="wall-item-title-end"></div>
|
||||
<div class="wall-item-body" id="wall-item-body-{{$item.id}}" >{{$item.body}}
|
||||
<div class="body-tag">
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class='tag'>{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{if $item.has_cats}}
|
||||
<div class="categorytags"><span>{{$item.txt_cats}} {{foreach $item.categories as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $item.has_folders}}
|
||||
<div class="filesavetags"><span>{{$item.txt_folders}} {{foreach $item.folders as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-tools" id="wall-item-tools-{{$item.id}}">
|
||||
{{if $item.like}}
|
||||
<a href="#" class="icon like item-tool" title="{{$item.like.0}}" onclick="dolike({{$item.id}},'like'); return false"></a>
|
||||
{{/if}}
|
||||
{{if $item.dislike}}
|
||||
<a href="#" class="icon dislike item-tool" title="{{$item.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false"></a>
|
||||
{{/if}}
|
||||
{{if $item.share}}
|
||||
<a href="#" class="icon recycle item-tool" title="{{$item.share.0}}" onclick="jotShare({{$item.id}}); return false"></a>
|
||||
{{/if}}
|
||||
{{if $item.plink}}
|
||||
<a href="{{$item.plink.href}}" title="{{$item.plink.title}}" target="external-link" class="icon item-tool remote-link{{$item.sparkle}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.edpost}}
|
||||
<a class="editpost icon pencil item-tool" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.star}}
|
||||
<a href="#" id="starred-{{$item.id}}" onclick="dostar({{$item.id}}); return false;" class="star-item icon item-tool {{$item.star.isstarred}}" title="{{$item.star.toggle}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.tagger}}
|
||||
<a href="#" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="tag-item icon item-tool tagged" title="{{$item.tagger.tagit}}"></a>
|
||||
{{/if}}
|
||||
{{if $item.filer}}
|
||||
<a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon item-tool" title="{{$item.filer}}"></a>
|
||||
{{/if}}
|
||||
<img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
|
||||
|
||||
<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-{{$item.id}}" >
|
||||
{{if $item.drop.dropping}}<a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon drophide" title="{{$item.drop.delete}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a>{{/if}}
|
||||
</div>
|
||||
{{if $item.drop.pagedrop}}<input type="checkbox" onclick="checkboxhighlight(this);" title="{{$item.drop.select}}" class="item-select" name="itemselected[]" value="{{$item.id}}" />{{/if}}
|
||||
<div class="wall-item-delete-end"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-wrapper-end"></div>
|
||||
<div class="wall-item-like {{$item.indent}}" id="wall-item-like-{{$item.id}}">{{$item.showlike}}</div>
|
||||
<div class="wall-item-dislike {{$item.indent}}" id="wall-item-dislike-{{$item.id}}">{{$item.showdislike}}</div>
|
||||
|
||||
<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>
|
||||
</div>
|
||||
{{if $item.toplevel}}
|
||||
{{foreach $item.children as $child}}
|
||||
{{include file="{{$child.template}}" item=$child}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
<div class="wall-item-comment-wrapper" >
|
||||
{{$item.comment}}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||
28
view/tpl/smarty3/conversation.tpl
Normal file
28
view/tpl/smarty3/conversation.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
<div id="threads-begin"></div>
|
||||
{{foreach $threads as $thread}}
|
||||
<div id="thread-wrapper-{{$thread.id}}" class="thread-wrapper">
|
||||
{{foreach $thread.items as $item}}
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer">
|
||||
<span id="hide-comments-total-{{$thread.id}}" class="hide-comments-total">{{$thread.num_comments}}</span> <span id="hide-comments-{{$thread.id}}" class="hide-comments fakelink" onclick="showHideComments({{$thread.id}});">{{$thread.hide_text}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$thread.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||
|
||||
{{include file="{{$item.template}}"}}
|
||||
|
||||
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/foreach}}
|
||||
<div id="threads-end"></div>
|
||||
<div id="conversation-end"></div>
|
||||
|
||||
{{if $dropping}}
|
||||
<div id="item-delete-selected" class="fakelink" onclick="deleteCheckedItems();">
|
||||
<div id="item-delete-selected-icon" class="icon drophide" title="{{$dropping}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></div>
|
||||
<div id="item-delete-selected-desc" >{{$dropping}}</div>
|
||||
</div>
|
||||
<div id="item-delete-selected-end"></div>
|
||||
{{/if}}
|
||||
4
view/tpl/smarty3/convobj.tpl
Normal file
4
view/tpl/smarty3/convobj.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
{{foreach $threads as $item}}
|
||||
{{include file="{{$item.template}}"}}
|
||||
{{/foreach}}
|
||||
|
||||
46
view/tpl/smarty3/crepair.tpl
Normal file
46
view/tpl/smarty3/crepair.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
<form id="crepair-form" action="crepair/{{$contact_id}}" method="post" >
|
||||
|
||||
<h4>{{$contact_name}}</h4>
|
||||
|
||||
<label id="crepair-name-label" class="crepair-label" for="crepair-name">{{$label_name}}</label>
|
||||
<input type="text" id="crepair-name" class="crepair-input" name="name" value="{{$contact_name}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-nick-label" class="crepair-label" for="crepair-nick">{{$label_nick}}</label>
|
||||
<input type="text" id="crepair-nick" class="crepair-input" name="nick" value="{{$contact_nick}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-attag-label" class="crepair-label" for="crepair-attag">{{$label_attag}}</label>
|
||||
<input type="text" id="crepair-attag" class="crepair-input" name="attag" value="{{$contact_attag}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-url-label" class="crepair-label" for="crepair-url">{{$label_url}}</label>
|
||||
<input type="text" id="crepair-url" class="crepair-input" name="url" value="{{$contact_url}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-request-label" class="crepair-label" for="crepair-request">{{$label_request}}</label>
|
||||
<input type="text" id="crepair-request" class="crepair-input" name="request" value="{{$request}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-confirm-label" class="crepair-label" for="crepair-confirm">{{$label_confirm}}</label>
|
||||
<input type="text" id="crepair-confirm" class="crepair-input" name="confirm" value="{{$confirm}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-notify-label" class="crepair-label" for="crepair-notify">{{$label_notify}}</label>
|
||||
<input type="text" id="crepair-notify" class="crepair-input" name="notify" value="{{$notify}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-poll-label" class="crepair-label" for="crepair-poll">{{$label_poll}}</label>
|
||||
<input type="text" id="crepair-poll" class="crepair-input" name="poll" value="{{$poll}}" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<label id="crepair-photo-label" class="crepair-label" for="crepair-photo">{{$label_photo}}</label>
|
||||
<input type="text" id="crepair-photo" class="crepair-input" name="photo" value="" />
|
||||
<div class="clear"></div>
|
||||
|
||||
<input type="submit" name="submit" value="{{$lbl_submit}}" />
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
58
view/tpl/smarty3/cropbody.tpl
Normal file
58
view/tpl/smarty3/cropbody.tpl
Normal file
@@ -0,0 +1,58 @@
|
||||
<h1>{{$title}}</h1>
|
||||
<p id="cropimage-desc">
|
||||
{{$desc}}
|
||||
</p>
|
||||
<div id="cropimage-wrapper">
|
||||
<img src="{{$image_url}}" id="croppa" class="imgCrop" alt="{{$title}}" />
|
||||
</div>
|
||||
<div id="cropimage-preview-wrapper" >
|
||||
<div id="previewWrap" ></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
function onEndCrop( coords, dimensions ) {
|
||||
$( 'x1' ).value = coords.x1;
|
||||
$( 'y1' ).value = coords.y1;
|
||||
$( 'x2' ).value = coords.x2;
|
||||
$( 'y2' ).value = coords.y2;
|
||||
$( 'width' ).value = dimensions.width;
|
||||
$( 'height' ).value = dimensions.height;
|
||||
}
|
||||
|
||||
Event.observe( window, 'load', function() {
|
||||
new Cropper.ImgWithPreview(
|
||||
'croppa',
|
||||
{
|
||||
previewWrap: 'previewWrap',
|
||||
minWidth: 175,
|
||||
minHeight: 175,
|
||||
maxWidth: 640,
|
||||
maxHeight: 640,
|
||||
ratioDim: { x: 100, y:100 },
|
||||
displayOnInit: true,
|
||||
onEndCrop: onEndCrop
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
|
||||
<form action="profile_photo/{{$resource}}" id="crop-image-form" method="post" />
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
<input type='hidden' name='profile' value='{{$profile}}'>
|
||||
<input type="hidden" name="cropfinal" value="1" />
|
||||
<input type="hidden" name="xstart" id="x1" />
|
||||
<input type="hidden" name="ystart" id="y1" />
|
||||
<input type="hidden" name="xfinal" id="x2" />
|
||||
<input type="hidden" name="yfinal" id="y2" />
|
||||
<input type="hidden" name="height" id="height" />
|
||||
<input type="hidden" name="width" id="width" />
|
||||
|
||||
<div id="crop-image-submit-wrapper" >
|
||||
<input type="submit" name="submit" value="{{$done}}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
4
view/tpl/smarty3/crophead.tpl
Normal file
4
view/tpl/smarty3/crophead.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
<script type="text/javascript" src="library/cropper/lib/prototype.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="library/cropper/lib/scriptaculous.js?load=effects,builder,dragdrop" language="javascript"></script>
|
||||
<script type="text/javascript" src="library/cropper/cropper.js" language="javascript"></script>
|
||||
<link rel="stylesheet" href="library/cropper/cropper.css" type="text/css" />
|
||||
57
view/tpl/smarty3/delegate.tpl
Normal file
57
view/tpl/smarty3/delegate.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
<h3>{{$header}}</h3>
|
||||
|
||||
<div id="delegate-desc" class="delegate-desc">{{$desc}}</div>
|
||||
|
||||
{{if $managers}}
|
||||
<h3>{{$head_managers}}</h3>
|
||||
|
||||
{{foreach $managers as $x}}
|
||||
|
||||
<div class="contact-block-div">
|
||||
<a class="contact-block-link" href="#" >
|
||||
<img class="contact-block-img" src="{{$base}}/photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{/foreach}}
|
||||
<div class="clear"></div>
|
||||
<hr />
|
||||
{{/if}}
|
||||
|
||||
|
||||
<h3>{{$head_delegates}}</h3>
|
||||
|
||||
{{if $delegates}}
|
||||
{{foreach $delegates as $x}}
|
||||
|
||||
<div class="contact-block-div">
|
||||
<a class="contact-block-link" href="{{$base}}/delegate/remove/{{$x.uid}}" >
|
||||
<img class="contact-block-img" src="{{$base}}/photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{/foreach}}
|
||||
<div class="clear"></div>
|
||||
{{else}}
|
||||
{{$none}}
|
||||
{{/if}}
|
||||
<hr />
|
||||
|
||||
|
||||
<h3>{{$head_potentials}}</h3>
|
||||
{{if $potentials}}
|
||||
{{foreach $potentials as $x}}
|
||||
|
||||
<div class="contact-block-div">
|
||||
<a class="contact-block-link" href="{{$base}}/delegate/add/{{$x.uid}}" >
|
||||
<img class="contact-block-img" src="{{$base}}/photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{/foreach}}
|
||||
<div class="clear"></div>
|
||||
{{else}}
|
||||
{{$none}}
|
||||
{{/if}}
|
||||
<hr />
|
||||
|
||||
21
view/tpl/smarty3/dfrn_req_confirm.tpl
Normal file
21
view/tpl/smarty3/dfrn_req_confirm.tpl
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
<p id="dfrn-request-homecoming" >
|
||||
{{$welcome}}
|
||||
<br />
|
||||
{{$please}}
|
||||
|
||||
</p>
|
||||
<form id="dfrn-request-homecoming-form" action="dfrn_request/{{$nickname}}" method="post">
|
||||
<input type="hidden" name="dfrn_url" value="{{$dfrn_url}}" />
|
||||
<input type="hidden" name="confirm_key" value="{{$confirm_key}}" />
|
||||
<input type="hidden" name="localconfirm" value="1" />
|
||||
{{$aes_allow}}
|
||||
|
||||
<label id="dfrn-request-homecoming-hide-label" for="dfrn-request-homecoming-hide">{{$hidethem}}</label>
|
||||
<input type="checkbox" name="hidden-contact" value="1" {{if $hidechecked}}checked="checked" {{/if}} />
|
||||
|
||||
|
||||
<div id="dfrn-request-homecoming-submit-wrapper" >
|
||||
<input id="dfrn-request-homecoming-submit" type="submit" name="submit" value="{{$submit}}" />
|
||||
</div>
|
||||
</form>
|
||||
59
view/tpl/smarty3/dfrn_request.tpl
Normal file
59
view/tpl/smarty3/dfrn_request.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
|
||||
<h1>{{$header}}</h1>
|
||||
|
||||
<p id="dfrn-request-intro">
|
||||
{{$page_desc}}<br />
|
||||
{{$invite_desc}}
|
||||
</p>
|
||||
<p>
|
||||
{{$desc}}
|
||||
</p>
|
||||
|
||||
<form action="dfrn_request/{{$nickname}}" method="post" />
|
||||
|
||||
<div id="dfrn-request-url-wrapper" >
|
||||
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<div id="dfrn-request-url-end"></div>
|
||||
</div>
|
||||
|
||||
<p id="dfrn-request-options">
|
||||
{{$pls_answer}}
|
||||
</p>
|
||||
|
||||
<div id="dfrn-request-info-wrapper" >
|
||||
|
||||
|
||||
<p id="doiknowyou">
|
||||
{{$does_know}}
|
||||
</p>
|
||||
|
||||
<div id="dfrn-request-know-yes-wrapper">
|
||||
<label id="dfrn-request-knowyou-yes-label" for="dfrn-request-knowyouyes">{{$yes}}</label>
|
||||
<input type="radio" name="knowyou" id="knowyouyes" value="1" />
|
||||
|
||||
<div id="dfrn-request-knowyou-break" ></div>
|
||||
</div>
|
||||
<div id="dfrn-request-know-no-wrapper">
|
||||
<label id="dfrn-request-knowyou-no-label" for="dfrn-request-knowyouno">{{$no}}</label>
|
||||
<input type="radio" name="knowyou" id="knowyouno" value="0" checked="checked" />
|
||||
|
||||
<div id="dfrn-request-knowyou-end"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<p id="dfrn-request-message-desc">
|
||||
{{$add_note}}
|
||||
</p>
|
||||
<div id="dfrn-request-message-wrapper">
|
||||
<textarea name="dfrn-request-message" rows="4" cols="64" ></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dfrn-request-submit-wrapper">
|
||||
<input type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}" />
|
||||
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}" />
|
||||
</div>
|
||||
</form>
|
||||
8
view/tpl/smarty3/diasp_dec_hdr.tpl
Normal file
8
view/tpl/smarty3/diasp_dec_hdr.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
<decrypted_hdeader>
|
||||
<iv>{{$inner_iv}}</iv>
|
||||
<aes_key>{{$inner_key}}</aes_key>
|
||||
<author>
|
||||
<name>{{$author_name}}</name>
|
||||
<uri>{{$author_uri}}</uri>
|
||||
</author>
|
||||
</decrypted_header>
|
||||
16
view/tpl/smarty3/directory_header.tpl
Normal file
16
view/tpl/smarty3/directory_header.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
<h1>{{$dirlbl}}</h1>
|
||||
|
||||
{{if $search}}
|
||||
<h4>{{$finddsc}} {{$safetxt}}</h4>
|
||||
{{/if}}
|
||||
|
||||
{{foreach $entries as $entry}}
|
||||
|
||||
{{include file="direntry.tpl"}}
|
||||
|
||||
{{/foreach}}
|
||||
|
||||
|
||||
|
||||
<div class="directory-end"></div>
|
||||
|
||||
11
view/tpl/smarty3/directory_item.tpl
Normal file
11
view/tpl/smarty3/directory_item.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
<div class="directory-item lframe" id="directory-item-{{$id}}" >
|
||||
<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$id}}" >
|
||||
<div class="contact-photo" id="directory-photo-{{$id}}" >
|
||||
<a href="{{$profile_link}}" class="directory-profile-link" id="directory-profile-link-{{$id}}" ><img class="directory-photo-img" src="{{$photo}}" alt="{{$alt_text}}" title="{{$alt_text}}" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="contact-name" id="directory-name-{{$id}}">{{$name}}</div>
|
||||
<div class="contact-details">{{$details}}</div>
|
||||
</div>
|
||||
11
view/tpl/smarty3/direntry.tpl
Normal file
11
view/tpl/smarty3/direntry.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
<div class="directory-item lframe" id="directory-item-{{$entry.id}}" >
|
||||
<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$entry.id}}" >
|
||||
<div class="contact-photo" id="directory-photo-{{$entry.id}}" >
|
||||
<a href="{{$entry.profile_link}}" class="directory-profile-link" id="directory-profile-link-{{$entry.id}}" ><img class="directory-photo-img" src="{{$entry.photo}}" alt="{{$entry.alttext}}" title="{{$entry.alttext}}" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="contact-name" id="directory-name-{{$entry.id}}">{{$entry.name}}</div>
|
||||
<div class="contact-details">{{$entry.details}}</div>
|
||||
</div>
|
||||
8
view/tpl/smarty3/display-head.tpl
Normal file
8
view/tpl/smarty3/display-head.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
|
||||
// make auto-complete work in more places
|
||||
$(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
|
||||
});
|
||||
</script>
|
||||
|
||||
1
view/tpl/smarty3/edpost_head.tpl
Normal file
1
view/tpl/smarty3/edpost_head.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<h2>{{$title}}</h2>
|
||||
27
view/tpl/smarty3/email_notify_html.tpl
Normal file
27
view/tpl/smarty3/email_notify_html.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>{{$banner}}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<table style="border:1px solid #ccc">
|
||||
<tbody>
|
||||
<tr><td colspan="2" style="background:#ff0000; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='{{$siteurl}}/images/fred-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">{{$product}}</div><div style="clear: both;"></div></td></tr>
|
||||
|
||||
|
||||
<tr><td style="padding-top:22px;" colspan="2">{{$preamble}}</td></tr>
|
||||
|
||||
|
||||
<tr><td style="padding-left:22px;padding-top:22px;width:60px;" valign="top" rowspan=3><a href="{{$source_link}}"><img style="border:0px;width:48px;height:48px;" src="{{$source_photo}}"></a></td>
|
||||
<td style="padding-top:22px;"><a href="{{$source_link}}">{{$source_name}}</a></td></tr>
|
||||
<tr><td style="font-weight:bold;padding-bottom:5px;">{{$title}}</td></tr>
|
||||
<tr><td style="padding-right:22px;">{{$htmlversion}}</td></tr>
|
||||
<tr><td style="padding-top:11px;" colspan="2">{{$hsitelink}}</td></tr>
|
||||
<tr><td style="padding-bottom:11px;" colspan="2">{{$hitemlink}}</td></tr>
|
||||
<tr><td></td><td>{{$thanks}}</td></tr>
|
||||
<tr><td></td><td>{{$site_admin}}</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
13
view/tpl/smarty3/email_notify_text.tpl
Normal file
13
view/tpl/smarty3/email_notify_text.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
{{$preamble}}
|
||||
|
||||
{{$title}}
|
||||
|
||||
{{$textversion}}
|
||||
|
||||
{{$tsitelink}}
|
||||
{{$titemlink}}
|
||||
|
||||
{{$thanks}}
|
||||
{{$site_admin}}
|
||||
|
||||
10
view/tpl/smarty3/event.tpl
Normal file
10
view/tpl/smarty3/event.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
{{foreach $events as $event}}
|
||||
<div class="event">
|
||||
|
||||
{{if $event.item.author-name}}<a href="{{$event.item.author-link}}" ><img src="{{$event.item.author-avatar}}" height="32" width="32" />{{$event.item.author-name}}</a>{{/if}}
|
||||
{{$event.html}}
|
||||
{{if $event.item.plink}}<a href="{{$event.plink.0}}" title="{{$event.plink.1}}" class="plink-event-link icon s22 remote-link"></a>{{/if}}
|
||||
{{if $event.edit}}<a href="{{$event.edit.0}}" title="{{$event.edit.1}}" class="edit-event-link icon s22 pencil"></a>{{/if}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{{/foreach}}
|
||||
49
view/tpl/smarty3/event_form.tpl
Normal file
49
view/tpl/smarty3/event_form.tpl
Normal file
@@ -0,0 +1,49 @@
|
||||
<h3>{{$title}}</h3>
|
||||
|
||||
<p>
|
||||
{{$desc}}
|
||||
</p>
|
||||
|
||||
<form action="{{$post}}" method="post" >
|
||||
|
||||
<input type="hidden" name="event_id" value="{{$eid}}" />
|
||||
<input type="hidden" name="cid" value="{{$cid}}" />
|
||||
<input type="hidden" name="uri" value="{{$uri}}" />
|
||||
|
||||
<div id="event-start-text">{{$s_text}}</div>
|
||||
{{$s_dsel}} {{$s_tsel}}
|
||||
|
||||
<div id="event-finish-text">{{$f_text}}</div>
|
||||
{{$f_dsel}} {{$f_tsel}}
|
||||
|
||||
<div id="event-datetime-break"></div>
|
||||
|
||||
<input type="checkbox" name="nofinish" value="1" id="event-nofinish-checkbox" {{$n_checked}} /> <div id="event-nofinish-text">{{$n_text}}</div>
|
||||
|
||||
<div id="event-nofinish-break"></div>
|
||||
|
||||
<input type="checkbox" name="adjust" value="1" id="event-adjust-checkbox" {{$a_checked}} /> <div id="event-adjust-text">{{$a_text}}</div>
|
||||
|
||||
<div id="event-adjust-break"></div>
|
||||
|
||||
<div id="event-summary-text">{{$t_text}}</div>
|
||||
<input type="text" id="event-summary" name="summary" value="{{$t_orig}}" />
|
||||
|
||||
|
||||
<div id="event-desc-text">{{$d_text}}</div>
|
||||
<textarea id="event-desc-textarea" name="desc">{{$d_orig}}</textarea>
|
||||
|
||||
|
||||
<div id="event-location-text">{{$l_text}}</div>
|
||||
<textarea id="event-location-textarea" name="location">{{$l_orig}}</textarea>
|
||||
|
||||
<input type="checkbox" name="share" value="1" id="event-share-checkbox" {{$sh_checked}} /> <div id="event-share-text">{{$sh_text}}</div>
|
||||
<div id="event-share-break"></div>
|
||||
|
||||
{{$acl}}
|
||||
|
||||
<div class="clear"></div>
|
||||
<input id="event-submit" type="submit" name="submit" value="{{$submit}}" />
|
||||
</form>
|
||||
|
||||
|
||||
139
view/tpl/smarty3/event_head.tpl
Normal file
139
view/tpl/smarty3/event_head.tpl
Normal file
@@ -0,0 +1,139 @@
|
||||
<link rel='stylesheet' type='text/css' href='{{$baseurl}}/library/fullcalendar/fullcalendar.css' />
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
|
||||
|
||||
<script>
|
||||
function showEvent(eventid) {
|
||||
$.get(
|
||||
'{{$baseurl}}/events/?id='+eventid,
|
||||
function(data){
|
||||
$.fancybox(data);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#events-calendar').fullCalendar({
|
||||
events: '{{$baseurl}}/events/json/',
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'month,agendaWeek,agendaDay'
|
||||
},
|
||||
timeFormat: 'H(:mm)',
|
||||
eventClick: function(calEvent, jsEvent, view) {
|
||||
showEvent(calEvent.id);
|
||||
},
|
||||
|
||||
eventRender: function(event, element, view) {
|
||||
//console.log(view.name);
|
||||
if (event.item['author-name']==null) return;
|
||||
switch(view.name){
|
||||
case "month":
|
||||
element.find(".fc-event-title").html(
|
||||
"<img src='{0}' style='height:10px;width:10px'>{1} : {2}".format(
|
||||
event.item['author-avatar'],
|
||||
event.item['author-name'],
|
||||
event.title
|
||||
));
|
||||
break;
|
||||
case "agendaWeek":
|
||||
element.find(".fc-event-title").html(
|
||||
"<img src='{0}' style='height:12px; width:12px'>{1}<p>{2}</p><p>{3}</p>".format(
|
||||
event.item['author-avatar'],
|
||||
event.item['author-name'],
|
||||
event.item.desc,
|
||||
event.item.location
|
||||
));
|
||||
break;
|
||||
case "agendaDay":
|
||||
element.find(".fc-event-title").html(
|
||||
"<img src='{0}' style='height:24px;width:24px'>{1}<p>{2}</p><p>{3}</p>".format(
|
||||
event.item['author-avatar'],
|
||||
event.item['author-name'],
|
||||
event.item.desc,
|
||||
event.item.location
|
||||
));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
// center on date
|
||||
var args=location.href.replace(baseurl,"").split("/");
|
||||
if (args.length>=4) {
|
||||
$("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1);
|
||||
}
|
||||
|
||||
// show event popup
|
||||
var hash = location.hash.split("-")
|
||||
if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]);
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
|
||||
tinyMCE.init({
|
||||
theme : "advanced",
|
||||
mode : "textareas",
|
||||
plugins : "bbcode,paste",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "center",
|
||||
theme_advanced_blockformats : "blockquote,code",
|
||||
gecko_spellcheck : true,
|
||||
paste_text_sticky : true,
|
||||
entity_encoding : "raw",
|
||||
add_unload_trigger : false,
|
||||
remove_linebreaks : false,
|
||||
force_p_newlines : false,
|
||||
force_br_newlines : true,
|
||||
forced_root_block : '',
|
||||
content_css: "{{$baseurl}}/view/custom_tinymce.css",
|
||||
theme_advanced_path : false,
|
||||
setup : function(ed) {
|
||||
ed.onInit.add(function(ed) {
|
||||
ed.pasteAsPlainText = true;
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#event-share-checkbox').change(function() {
|
||||
|
||||
if ($('#event-share-checkbox').is(':checked')) {
|
||||
$('#acl-wrapper').show();
|
||||
}
|
||||
else {
|
||||
$('#acl-wrapper').hide();
|
||||
}
|
||||
}).trigger('change');
|
||||
|
||||
|
||||
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
|
||||
var selstr;
|
||||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||
selstr = $(this).text();
|
||||
$('#jot-public').hide();
|
||||
});
|
||||
if(selstr == null) {
|
||||
$('#jot-public').show();
|
||||
}
|
||||
|
||||
}).trigger('change');
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
6
view/tpl/smarty3/events-js.tpl
Normal file
6
view/tpl/smarty3/events-js.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
{{$tabs}}
|
||||
<h2>{{$title}}</h2>
|
||||
|
||||
<div id="new-event-link"><a href="{{$new_event.0}}" >{{$new_event.1}}</a></div>
|
||||
|
||||
<div id="events-calendar"></div>
|
||||
24
view/tpl/smarty3/events.tpl
Normal file
24
view/tpl/smarty3/events.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{{$tabs}}
|
||||
<h2>{{$title}}</h2>
|
||||
|
||||
<div id="new-event-link"><a href="{{$new_event.0}}" >{{$new_event.1}}</a></div>
|
||||
|
||||
<div id="event-calendar-wrapper">
|
||||
<a href="{{$previus.0}}" class="prevcal {{$previus.2}}"><div id="event-calendar-prev" class="icon s22 prev" title="{{$previus.1}}"></div></a>
|
||||
{{$calendar}}
|
||||
<a href="{{$next.0}}" class="nextcal {{$next.2}}"><div id="event-calendar-prev" class="icon s22 next" title="{{$next.1}}"></div></a>
|
||||
</div>
|
||||
<div class="event-calendar-end"></div>
|
||||
|
||||
|
||||
{{foreach $events as $event}}
|
||||
<div class="event">
|
||||
{{if $event.is_first}}<hr /><a name="link-{{$event.j}}" ><div class="event-list-date">{{$event.d}}</div></a>{{/if}}
|
||||
{{if $event.item.author-name}}<a href="{{$event.item.author-link}}" ><img src="{{$event.item.author-avatar}}" height="32" width="32" />{{$event.item.author-name}}</a>{{/if}}
|
||||
{{$event.html}}
|
||||
{{if $event.item.plink}}<a href="{{$event.plink.0}}" title="{{$event.plink.1}}" class="plink-event-link icon s22 remote-link"></a>{{/if}}
|
||||
{{if $event.edit}}<a href="{{$event.edit.0}}" title="{{$event.edit.1}}" class="edit-event-link icon s22 pencil"></a>{{/if}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
{{/foreach}}
|
||||
10
view/tpl/smarty3/events_reminder.tpl
Normal file
10
view/tpl/smarty3/events_reminder.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
{{if $count}}
|
||||
<div id="event-notice" class="birthday-notice fakelink {{$classtoday}}" onclick="openClose('event-wrapper');">{{$event_reminders}} ({{$count}})</div>
|
||||
<div id="event-wrapper" style="display: none;" ><div id="event-title">{{$event_title}}</div>
|
||||
<div id="event-title-end"></div>
|
||||
{{foreach $events as $event}}
|
||||
<div class="event-list" id="event-{{$event.id}}"></a> <a href="events/{{$event.link}}">{{$event.title}}</a> {{$event.date}} </div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
17
view/tpl/smarty3/failed_updates.tpl
Normal file
17
view/tpl/smarty3/failed_updates.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
<h2>{{$banner}}</h2>
|
||||
|
||||
<div id="failed_updates_desc">{{$desc}}</div>
|
||||
|
||||
{{if $failed}}
|
||||
{{foreach $failed as $f}}
|
||||
|
||||
<h4>{{$f}}</h4>
|
||||
<ul>
|
||||
<li><a href="{{$base}}/admin/dbsync/mark/{{$f}}">{{$mark}}</a></li>
|
||||
<li><a href="{{$base}}/admin/dbsync/{{$f}}">{{$apply}}</a></li>
|
||||
</ul>
|
||||
|
||||
<hr />
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
13
view/tpl/smarty3/fake_feed.tpl
Normal file
13
view/tpl/smarty3/fake_feed.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" >
|
||||
|
||||
<id>fake feed</id>
|
||||
<title>fake title</title>
|
||||
|
||||
<updated>1970-01-01T00:00:00Z</updated>
|
||||
|
||||
<author>
|
||||
<name>Fake Name</name>
|
||||
<uri>http://example.com</uri>
|
||||
</author>
|
||||
|
||||
4
view/tpl/smarty3/field.tpl
Normal file
4
view/tpl/smarty3/field.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
{{if $field.0==select}}
|
||||
{{include file="field_select.tpl"}}
|
||||
{{/if}}
|
||||
7
view/tpl/smarty3/field_acheckbox.tpl
Normal file
7
view/tpl/smarty3/field_acheckbox.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
<div class='field acheckbox'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<input type="checkbox" class="abook-edit-them" name='{{$field.0}}' id='them_id_{{$field.0}}' value="1" disabled="disabled" {{if $field.2}}checked="checked"{{/if}} />
|
||||
<input type="checkbox" class="abook-edit-me" name='{{$field.0}}' id='me_id_{{$field.0}}' value="{{$field.4}}" {{if $field.3}}checked="checked"{{/if}} {{if $field.5}} disabled="disabled" {{/if}}/>
|
||||
<span class='field_abook_help'>{{$field.6}}</span>
|
||||
</div>
|
||||
6
view/tpl/smarty3/field_checkbox.tpl
Normal file
6
view/tpl/smarty3/field_checkbox.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field checkbox'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<input type="checkbox" name='{{$field.0}}' id='id_{{$field.0}}' value="1" {{if $field.2}}checked="checked"{{/if}}>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
18
view/tpl/smarty3/field_combobox.tpl
Normal file
18
view/tpl/smarty3/field_combobox.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
<div class='field combobox'>
|
||||
<label for='id_{{$field.0}}' id='id_{{$field.0}}_label'>{{$field.1}}</label>
|
||||
{{* html5 don't work on Chrome, Safari and IE9
|
||||
<input id="id_{{$field.0}}" type="text" list="data_{{$field.0}}" >
|
||||
<datalist id="data_{{$field.0}}" >
|
||||
{{foreach $field.4 as $opt=>$val}}<option value="{{$val}}">{{/foreach}}
|
||||
</datalist> *}}
|
||||
|
||||
<input id="id_{{$field.0}}" type="text" value="{{$field.2}}">
|
||||
<select id="select_{{$field.0}}" onChange="$('#id_{{$field.0}}').val($(this).val())">
|
||||
<option value="">{{$field.5}}</option>
|
||||
{{foreach $field.4 as $opt=>$val}}<option value="{{$val}}">{{$val}}</option>{{/foreach}}
|
||||
</select>
|
||||
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
|
||||
6
view/tpl/smarty3/field_custom.tpl
Normal file
6
view/tpl/smarty3/field_custom.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field custom'>
|
||||
<label for='{{$field.0}}'>{{$field.1}}</label>
|
||||
{{$field.2}}
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
7
view/tpl/smarty3/field_input.tpl
Normal file
7
view/tpl/smarty3/field_input.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
<div class='field input'>
|
||||
<label for='id_{{$field.0}}' id='label_{{$field.0}}'>{{$field.1}}</label>
|
||||
<input name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}">
|
||||
<span id='help_{{$field.0}}' class='field_help'>{{$field.3}}</span>
|
||||
<div id='end_{{$field.0}}' class='field_end'></div>
|
||||
</div>
|
||||
6
view/tpl/smarty3/field_intcheckbox.tpl
Normal file
6
view/tpl/smarty3/field_intcheckbox.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field checkbox'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<input type="checkbox" name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.3}}" {{if $field.2}}checked="true"{{/if}}>
|
||||
<span class='field_help'>{{$field.4}}</span>
|
||||
</div>
|
||||
6
view/tpl/smarty3/field_openid.tpl
Normal file
6
view/tpl/smarty3/field_openid.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field input openid'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<input name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}">
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
6
view/tpl/smarty3/field_password.tpl
Normal file
6
view/tpl/smarty3/field_password.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field password'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<input type='password' name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}">
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
6
view/tpl/smarty3/field_radio.tpl
Normal file
6
view/tpl/smarty3/field_radio.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field radio'>
|
||||
<label for='id_{{$field.0}}_{{$field.2}}'>{{$field.1}}</label>
|
||||
<input type="radio" name='{{$field.0}}' id='id_{{$field.0}}_{{$field.2}}' value="{{$field.2}}" {{if $field.4}}checked="true"{{/if}}>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
6
view/tpl/smarty3/field_richtext.tpl
Normal file
6
view/tpl/smarty3/field_richtext.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field richtext'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<textarea name='{{$field.0}}' id='id_{{$field.0}}' class="fieldRichtext">{{$field.2}}</textarea>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
8
view/tpl/smarty3/field_select.tpl
Normal file
8
view/tpl/smarty3/field_select.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
<div class='field select'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<select name='{{$field.0}}' id='id_{{$field.0}}'>
|
||||
{{foreach $field.4 as $opt=>$val}}<option value="{{$opt}}" {{if $opt==$field.2}}selected="selected"{{/if}}>{{$val}}</option>{{/foreach}}
|
||||
</select>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
8
view/tpl/smarty3/field_select_raw.tpl
Normal file
8
view/tpl/smarty3/field_select_raw.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
<div class='field select'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<select name='{{$field.0}}' id='id_{{$field.0}}'>
|
||||
{{$field.4}}
|
||||
</select>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
6
view/tpl/smarty3/field_textarea.tpl
Normal file
6
view/tpl/smarty3/field_textarea.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field textarea'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<textarea name='{{$field.0}}' id='id_{{$field.0}}'>{{$field.2}}</textarea>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
9
view/tpl/smarty3/field_themeselect.tpl
Normal file
9
view/tpl/smarty3/field_themeselect.tpl
Normal file
@@ -0,0 +1,9 @@
|
||||
<script>$(function(){ previewTheme($("#id_{{$field.0}}")[0]); });</script>
|
||||
<div class='field select'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<select name='{{$field.0}}' id='id_{{$field.0}}' {{if $field.5=='preview'}}onchange="previewTheme(this);"{{/if}} >
|
||||
{{foreach $field.4 as $opt=>$val}}<option value="{{$opt}}" {{if $opt==$field.2}}selected="selected"{{/if}}>{{$val}}</option>{{/foreach}}
|
||||
</select>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
<div id="theme-preview"></div>
|
||||
</div>
|
||||
13
view/tpl/smarty3/field_yesno.tpl
Normal file
13
view/tpl/smarty3/field_yesno.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
<div class='field yesno'>
|
||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||
<div class='onoff' id="id_{{$field.0}}_onoff">
|
||||
<input type="hidden" name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}">
|
||||
<a href="#" class='off'>
|
||||
{{if $field.4}}{{$field.4.0}}{{else}}OFF{{/if}}
|
||||
</a>
|
||||
<a href="#" class='on'>
|
||||
{{if $field.4}}{{$field.4.1}}{{else}}ON{{/if}}
|
||||
</a>
|
||||
</div>
|
||||
<span class='field_help'>{{$field.3}}</span>
|
||||
</div>
|
||||
12
view/tpl/smarty3/fileas_widget.tpl
Normal file
12
view/tpl/smarty3/fileas_widget.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<div id="fileas-sidebar" class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<div id="nets-desc">{{$desc}}</div>
|
||||
|
||||
<ul class="fileas-ul">
|
||||
<li class="tool"><a href="{{$base}}" class="fileas-link fileas-all{{if $sel_all}} fileas-selected{{/if}}">{{$all}}</a></li>
|
||||
{{foreach $terms as $term}}
|
||||
<li class="tool"><a href="{{$base}}?f=&file={{$term.name}}" class="fileas-link{{if $term.selected}} fileas-selected{{/if}}">{{$term.name}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user