mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
update addons to support Smarty3
This commit is contained in:
parent
66334ec5cb
commit
3da6f1471c
62 changed files with 778 additions and 468 deletions
19
widgets/view/smarty3/settings.tpl
Normal file
19
widgets/view/smarty3/settings.tpl
Normal file
|
@ -0,0 +1,19 @@
|
|||
<div class="settings-block">
|
||||
<h3 class="settings-heading">{{$title}}</h3>
|
||||
<div class='field noedit'>
|
||||
<label>{{$label}}</label>
|
||||
<tt>{{$key}}</tt>
|
||||
</div>
|
||||
|
||||
<div class="settings-submit-wrapper">
|
||||
<input type="submit" value="{{$submit}}" class="settings-submit" name="widgets-submit" />
|
||||
</div>
|
||||
|
||||
<h4>{{$widgets_h}}</h4>
|
||||
<ul>
|
||||
{{foreach $widgets as $w}}
|
||||
<li><a href="{{$baseurl}}/widgets/{{$w.0}}/?k={{$key}}&p=1">{{$w.1}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
|
||||
</div>
|
3
widgets/view/smarty3/widget_like.tpl
Normal file
3
widgets/view/smarty3/widget_like.tpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
<style>body {font-size: 0.8em; margin: 0px; padding: 0px;}</style>
|
||||
<span class='f9k_like' title="{{$strlike}}">{{$like}} <img src="{{$baseurl}}/images/like.gif" alt="like"/></span>
|
||||
<span class='f9k_dislike' title="{{$strdislike}}">{{$dislike}} <img src="{{$baseurl}}/images/dislike.gif" alt="dislike"/></span>
|
|
@ -52,7 +52,8 @@ function like_widget_content(&$a, $conf){
|
|||
|
||||
$o = "";
|
||||
|
||||
$t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
|
||||
# $t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
|
||||
$t = get_markup_template("widget_like.tpl", "addon/widgets/");
|
||||
$o .= replace_macros($t, array(
|
||||
'$like' => $likes,
|
||||
'$strlike' => sprintf( tt("%d person likes this", "%d people like this", $likes), $likes),
|
||||
|
|
|
@ -51,7 +51,8 @@ function widgets_settings(&$a,&$o) {
|
|||
|
||||
|
||||
|
||||
$t = file_get_contents( dirname(__file__). "/settings.tpl" );
|
||||
# $t = file_get_contents( dirname(__file__). "/settings.tpl" );
|
||||
$t = get_markup_template("settings.tpl", "addon/widgets/");
|
||||
$o .= replace_macros($t, array(
|
||||
'$submit' => t('Generate new key'),
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue