Merge https://github.com/friendica/friendica into pull
This commit is contained in:
commit
6881edf1f7
32 changed files with 77 additions and 110 deletions
63
boot.php
63
boot.php
|
@ -384,8 +384,14 @@ if(! class_exists('App')) {
|
||||||
'template_engine' => 'internal',
|
'template_engine' => 'internal',
|
||||||
);
|
);
|
||||||
|
|
||||||
public $smarty3_ldelim = '{{';
|
private $ldelim = array(
|
||||||
public $smarty3_rdelim = '}}';
|
'internal' => '',
|
||||||
|
'smarty3' => '{{'
|
||||||
|
);
|
||||||
|
private $rdelim = array(
|
||||||
|
'internal' => '',
|
||||||
|
'smarty3' => '}}'
|
||||||
|
);
|
||||||
|
|
||||||
private $scheme;
|
private $scheme;
|
||||||
private $hostname;
|
private $hostname;
|
||||||
|
@ -623,7 +629,7 @@ if(! class_exists('App')) {
|
||||||
// replacing $stylesheet until later, we need to replace it now
|
// replacing $stylesheet until later, we need to replace it now
|
||||||
// with another variable name
|
// with another variable name
|
||||||
if($this->theme['template_engine'] === 'smarty3')
|
if($this->theme['template_engine'] === 'smarty3')
|
||||||
$stylesheet = $this->smarty3_ldelim . '$stylesheet' . $this->smarty3_rdelim;
|
$stylesheet = $this->get_template_ldelim('smarty3') . '$stylesheet' . $this->get_template_rdelim('smarty3');
|
||||||
else
|
else
|
||||||
$stylesheet = '$stylesheet';
|
$stylesheet = '$stylesheet';
|
||||||
|
|
||||||
|
@ -695,6 +701,31 @@ if(! class_exists('App')) {
|
||||||
return $this->cached_profile_image[$avatar_image];
|
return $this->cached_profile_image[$avatar_image];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_template_engine() {
|
||||||
|
return $this->theme['template_engine'];
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_template_engine($engine = 'internal') {
|
||||||
|
|
||||||
|
$this->theme['template_engine'] = 'internal';
|
||||||
|
|
||||||
|
switch($engine) {
|
||||||
|
case 'smarty3':
|
||||||
|
if(is_writable('view/smarty3/'))
|
||||||
|
$this->theme['template_engine'] = 'smarty3';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_template_ldelim($engine = 'internal') {
|
||||||
|
return $this->ldelim[$engine];
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_template_rdelim($engine = 'internal') {
|
||||||
|
return $this->rdelim[$engine];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -847,10 +878,6 @@ if(! function_exists('check_config')) {
|
||||||
$retval = $func();
|
$retval = $func();
|
||||||
if($retval) {
|
if($retval) {
|
||||||
//send the administrator an e-mail
|
//send the administrator an e-mail
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
$email_tpl = get_intltext_template("update_fail_eml.tpl");
|
$email_tpl = get_intltext_template("update_fail_eml.tpl");
|
||||||
$email_msg = replace_macros($email_tpl, array(
|
$email_msg = replace_macros($email_tpl, array(
|
||||||
'$sitename' => $a->config['sitename'],
|
'$sitename' => $a->config['sitename'],
|
||||||
|
@ -858,9 +885,6 @@ if(! function_exists('check_config')) {
|
||||||
'$update' => $x,
|
'$update' => $x,
|
||||||
'$error' => sprintf( t('Update %s failed. See error logs.'), $x)
|
'$error' => sprintf( t('Update %s failed. See error logs.'), $x)
|
||||||
));
|
));
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
$subject=sprintf(t('Update Error at %s'), $a->get_baseurl());
|
$subject=sprintf(t('Update Error at %s'), $a->get_baseurl());
|
||||||
require_once('include/email.php');
|
require_once('include/email.php');
|
||||||
$subject = email_header_encode($subject,'UTF-8');
|
$subject = email_header_encode($subject,'UTF-8');
|
||||||
|
@ -1205,7 +1229,7 @@ if(! function_exists('profile_load')) {
|
||||||
* load/reload current theme info
|
* load/reload current theme info
|
||||||
*/
|
*/
|
||||||
|
|
||||||
set_template_engine($a); // reset the template engine to the default in case the user's theme doesn't specify one
|
$a->set_template_engine(); // reset the template engine to the default in case the user's theme doesn't specify one
|
||||||
|
|
||||||
$theme_info_file = "view/theme/".current_theme()."/theme.php";
|
$theme_info_file = "view/theme/".current_theme()."/theme.php";
|
||||||
if (file_exists($theme_info_file)){
|
if (file_exists($theme_info_file)){
|
||||||
|
@ -1968,20 +1992,9 @@ function clear_cache($basepath = "", $path = "") {
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_template_engine(&$a, $engine = 'internal') {
|
function set_template_engine(&$a, $engine = 'internal') {
|
||||||
|
// This function is no longer necessary, but keep it as a wrapper to the class method
|
||||||
|
// to avoid breaking themes again unnecessarily
|
||||||
|
|
||||||
$a->theme['template_engine'] = 'internal';
|
$a->set_template_engine($engine);
|
||||||
|
|
||||||
if(is_writable('view/smarty3/')) {
|
|
||||||
switch($engine) {
|
|
||||||
case 'smarty3':
|
|
||||||
$a->theme['template_engine'] = 'smarty3';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_template_engine($a) {
|
|
||||||
return $a->theme['template_engine'];
|
|
||||||
}
|
|
|
@ -24,8 +24,11 @@ class FriendicaSmarty extends Smarty {
|
||||||
$this->setConfigDir('view/smarty3/config/');
|
$this->setConfigDir('view/smarty3/config/');
|
||||||
$this->setCacheDir('view/smarty3/cache/');
|
$this->setCacheDir('view/smarty3/cache/');
|
||||||
|
|
||||||
$this->left_delimiter = $a->smarty3_ldelim;
|
$this->left_delimiter = $a->get_template_ldelim('smarty3');
|
||||||
$this->right_delimiter = $a->smarty3_rdelim;
|
$this->right_delimiter = $a->get_template_rdelim('smarty3');
|
||||||
|
|
||||||
|
// Don't report errors so verbosely
|
||||||
|
$this->error_reporting = E_ALL & ~E_NOTICE;
|
||||||
}
|
}
|
||||||
|
|
||||||
function parsed($template = '') {
|
function parsed($template = '') {
|
||||||
|
|
|
@ -3361,10 +3361,6 @@ function new_follower($importer,$contact,$datarray,$item,$sharing = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($r[0]['notify-flags'] & NOTIFY_INTRO) && ($r[0]['page-flags'] == PAGE_NORMAL)) {
|
if(($r[0]['notify-flags'] & NOTIFY_INTRO) && ($r[0]['page-flags'] == PAGE_NORMAL)) {
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
$email_tpl = get_intltext_template('follow_notify_eml.tpl');
|
$email_tpl = get_intltext_template('follow_notify_eml.tpl');
|
||||||
$email = replace_macros($email_tpl, array(
|
$email = replace_macros($email_tpl, array(
|
||||||
'$requestor' => ((strlen($name)) ? $name : t('[Name Withheld]')),
|
'$requestor' => ((strlen($name)) ? $name : t('[Name Withheld]')),
|
||||||
|
@ -3373,9 +3369,6 @@ function new_follower($importer,$contact,$datarray,$item,$sharing = false) {
|
||||||
'$siteurl' => $a->get_baseurl(),
|
'$siteurl' => $a->get_baseurl(),
|
||||||
'$sitename' => $a->config['sitename']
|
'$sitename' => $a->config['sitename']
|
||||||
));
|
));
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
$res = mail($r[0]['email'],
|
$res = mail($r[0]['email'],
|
||||||
email_header_encode((($sharing) ? t('A new person is sharing with you at ') : t("You have a new follower at ")) . $a->config['sitename'],'UTF-8'),
|
email_header_encode((($sharing) ? t('A new person is sharing with you at ') : t("You have a new follower at ")) . $a->config['sitename'],'UTF-8'),
|
||||||
$email,
|
$email,
|
||||||
|
|
|
@ -23,7 +23,6 @@ function replace_macros($s,$r) {
|
||||||
if(gettype($s) === 'string') {
|
if(gettype($s) === 'string') {
|
||||||
$template = $s;
|
$template = $s;
|
||||||
$s = new FriendicaSmarty();
|
$s = new FriendicaSmarty();
|
||||||
$s->error_reporting = E_ALL & ~E_NOTICE;
|
|
||||||
}
|
}
|
||||||
foreach($r as $key=>$value) {
|
foreach($r as $key=>$value) {
|
||||||
if($key[0] === '$') {
|
if($key[0] === '$') {
|
||||||
|
|
|
@ -737,11 +737,6 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||||
? get_intltext_template('friend_complete_eml.tpl')
|
? get_intltext_template('friend_complete_eml.tpl')
|
||||||
: get_intltext_template('intro_complete_eml.tpl'));
|
: get_intltext_template('intro_complete_eml.tpl'));
|
||||||
|
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
|
|
||||||
$email_tpl = replace_macros($tpl, array(
|
$email_tpl = replace_macros($tpl, array(
|
||||||
'$sitename' => $a->config['sitename'],
|
'$sitename' => $a->config['sitename'],
|
||||||
'$siteurl' => $a->get_baseurl(),
|
'$siteurl' => $a->get_baseurl(),
|
||||||
|
@ -751,10 +746,6 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||||
'$dfrn_url' => $r[0]['url'],
|
'$dfrn_url' => $r[0]['url'],
|
||||||
'$uid' => $newuid )
|
'$uid' => $newuid )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
require_once('include/email.php');
|
require_once('include/email.php');
|
||||||
|
|
||||||
$res = mail($r[0]['email'], email_header_encode( sprintf( t("Connection accepted at %s") , $a->config['sitename']),'UTF-8'),
|
$res = mail($r[0]['email'], email_header_encode( sprintf( t("Connection accepted at %s") , $a->config['sitename']),'UTF-8'),
|
||||||
|
|
|
@ -73,9 +73,6 @@ function install_post(&$a) {
|
||||||
// connect to db
|
// connect to db
|
||||||
$db = new dba($dbhost, $dbuser, $dbpass, $dbdata, true);
|
$db = new dba($dbhost, $dbuser, $dbpass, $dbdata, true);
|
||||||
|
|
||||||
// disable smarty for this template
|
|
||||||
$engine = $a->get_template_engine();
|
|
||||||
$a->set_template_engine();
|
|
||||||
$tpl = get_intltext_template('htconfig.tpl');
|
$tpl = get_intltext_template('htconfig.tpl');
|
||||||
$txt = replace_macros($tpl,array(
|
$txt = replace_macros($tpl,array(
|
||||||
'$dbhost' => $dbhost,
|
'$dbhost' => $dbhost,
|
||||||
|
@ -87,7 +84,6 @@ function install_post(&$a) {
|
||||||
'$phpath' => $phpath,
|
'$phpath' => $phpath,
|
||||||
'$adminmail' => $adminmail
|
'$adminmail' => $adminmail
|
||||||
));
|
));
|
||||||
$a->set_template_engine($engine);
|
|
||||||
|
|
||||||
$result = file_put_contents('.htconfig.php', $txt);
|
$result = file_put_contents('.htconfig.php', $txt);
|
||||||
if(! $result) {
|
if(! $result) {
|
||||||
|
|
|
@ -32,9 +32,6 @@ function lostpass_post(&$a) {
|
||||||
if($r)
|
if($r)
|
||||||
info( t('Password reset request issued. Check your email.') . EOL);
|
info( t('Password reset request issued. Check your email.') . EOL);
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
$email_tpl = get_intltext_template("lostpass_eml.tpl");
|
$email_tpl = get_intltext_template("lostpass_eml.tpl");
|
||||||
$email_tpl = replace_macros($email_tpl, array(
|
$email_tpl = replace_macros($email_tpl, array(
|
||||||
'$sitename' => $a->config['sitename'],
|
'$sitename' => $a->config['sitename'],
|
||||||
|
@ -44,8 +41,6 @@ function lostpass_post(&$a) {
|
||||||
'$reset_link' => $a->get_baseurl() . '/lostpass?verify=' . $new_password
|
'$reset_link' => $a->get_baseurl() . '/lostpass?verify=' . $new_password
|
||||||
));
|
));
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
$res = mail($email, email_header_encode(sprintf( t('Password reset requested at %s'),$a->config['sitename']),'UTF-8'),
|
$res = mail($email, email_header_encode(sprintf( t('Password reset requested at %s'),$a->config['sitename']),'UTF-8'),
|
||||||
$email_tpl,
|
$email_tpl,
|
||||||
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
||||||
|
@ -99,8 +94,6 @@ function lostpass_content(&$a) {
|
||||||
info("Your password has been reset." . EOL);
|
info("Your password has been reset." . EOL);
|
||||||
|
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
$email_tpl = get_intltext_template("passchanged_eml.tpl");
|
$email_tpl = get_intltext_template("passchanged_eml.tpl");
|
||||||
$email_tpl = replace_macros($email_tpl, array(
|
$email_tpl = replace_macros($email_tpl, array(
|
||||||
|
@ -111,8 +104,6 @@ function lostpass_content(&$a) {
|
||||||
'$new_password' => $new_password,
|
'$new_password' => $new_password,
|
||||||
'$uid' => $newuid ));
|
'$uid' => $newuid ));
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
$subject = sprintf( t('Your password has been changed at %s'), $a->config['sitename']);
|
$subject = sprintf( t('Your password has been changed at %s'), $a->config['sitename']);
|
||||||
|
|
||||||
$res = mail($email, email_header_encode( $subject, 'UTF-8'), $email_tpl,
|
$res = mail($email, email_header_encode( $subject, 'UTF-8'), $email_tpl,
|
||||||
|
|
|
@ -79,10 +79,6 @@ function register_post(&$a) {
|
||||||
set_pconfig($user['uid'],'system','invites_remaining',$num_invites);
|
set_pconfig($user['uid'],'system','invites_remaining',$num_invites);
|
||||||
}
|
}
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
|
|
||||||
$email_tpl = get_intltext_template("register_open_eml.tpl");
|
$email_tpl = get_intltext_template("register_open_eml.tpl");
|
||||||
$email_tpl = replace_macros($email_tpl, array(
|
$email_tpl = replace_macros($email_tpl, array(
|
||||||
'$sitename' => $a->config['sitename'],
|
'$sitename' => $a->config['sitename'],
|
||||||
|
@ -92,10 +88,6 @@ function register_post(&$a) {
|
||||||
'$password' => $result['password'],
|
'$password' => $result['password'],
|
||||||
'$uid' => $user['uid'] ));
|
'$uid' => $user['uid'] ));
|
||||||
|
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
|
|
||||||
$res = mail($user['email'], email_header_encode( sprintf( t('Registration details for %s'), $a->config['sitename']),'UTF-8'),
|
$res = mail($user['email'], email_header_encode( sprintf( t('Registration details for %s'), $a->config['sitename']),'UTF-8'),
|
||||||
$email_tpl,
|
$email_tpl,
|
||||||
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
||||||
|
@ -139,10 +131,6 @@ function register_post(&$a) {
|
||||||
set_pconfig($user['uid'],'system','invites_remaining',$num_invites);
|
set_pconfig($user['uid'],'system','invites_remaining',$num_invites);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
$email_tpl = get_intltext_template("register_verify_eml.tpl");
|
$email_tpl = get_intltext_template("register_verify_eml.tpl");
|
||||||
$email_tpl = replace_macros($email_tpl, array(
|
$email_tpl = replace_macros($email_tpl, array(
|
||||||
'$sitename' => $a->config['sitename'],
|
'$sitename' => $a->config['sitename'],
|
||||||
|
@ -154,9 +142,6 @@ function register_post(&$a) {
|
||||||
'$hash' => $hash
|
'$hash' => $hash
|
||||||
));
|
));
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
|
|
||||||
$res = mail($a->config['admin_email'], email_header_encode( sprintf(t('Registration request at %s'), $a->config['sitename']),'UTF-8'),
|
$res = mail($a->config['admin_email'], email_header_encode( sprintf(t('Registration request at %s'), $a->config['sitename']),'UTF-8'),
|
||||||
$email_tpl,
|
$email_tpl,
|
||||||
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
||||||
|
|
|
@ -41,9 +41,6 @@ function user_allow($hash) {
|
||||||
|
|
||||||
push_lang($register[0]['language']);
|
push_lang($register[0]['language']);
|
||||||
|
|
||||||
$engine = get_app()->get_template_engine();
|
|
||||||
get_app()->set_template_engine();
|
|
||||||
|
|
||||||
$email_tpl = get_intltext_template("register_open_eml.tpl");
|
$email_tpl = get_intltext_template("register_open_eml.tpl");
|
||||||
$email_tpl = replace_macros($email_tpl, array(
|
$email_tpl = replace_macros($email_tpl, array(
|
||||||
'$sitename' => $a->config['sitename'],
|
'$sitename' => $a->config['sitename'],
|
||||||
|
@ -54,10 +51,6 @@ function user_allow($hash) {
|
||||||
'$uid' => $user[0]['uid']
|
'$uid' => $user[0]['uid']
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
get_app()->set_template_engine($engine);
|
|
||||||
|
|
||||||
|
|
||||||
$res = mail($user[0]['email'], email_header_encode( sprintf(t('Registration details for %s'), $a->config['sitename']), 'UTF-8'),
|
$res = mail($user[0]['email'], email_header_encode( sprintf(t('Registration details for %s'), $a->config['sitename']), 'UTF-8'),
|
||||||
$email_tpl,
|
$email_tpl,
|
||||||
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
|
||||||
|
|
|
@ -77,7 +77,7 @@ def fix_element(element):
|
||||||
|
|
||||||
if parts[first+1][0] == '$':
|
if parts[first+1][0] == '$':
|
||||||
# This takes care of elements where the filename is a variable, e.g. {{ inc $file }}
|
# This takes care of elements where the filename is a variable, e.g. {{ inc $file }}
|
||||||
element += 'file:' + ldelim + parts[first+1].rstrip('}') + rdelim
|
element += ldelim + parts[first+1].rstrip('}') + rdelim
|
||||||
else:
|
else:
|
||||||
# This takes care of elements where the filename is a path, e.g. {{ inc file.tpl }}
|
# This takes care of elements where the filename is a path, e.g. {{ inc file.tpl }}
|
||||||
element += parts[first+1].rstrip('}')
|
element += parts[first+1].rstrip('}')
|
||||||
|
@ -189,10 +189,14 @@ for a_file in files:
|
||||||
filename = os.path.join(path,a_file)
|
filename = os.path.join(path,a_file)
|
||||||
ext = a_file.split('.')[-1]
|
ext = a_file.split('.')[-1]
|
||||||
if os.path.isfile(filename) and ext == 'tpl':
|
if os.path.isfile(filename) and ext == 'tpl':
|
||||||
with open(filename, 'r') as f:
|
f = open(filename, 'r')
|
||||||
newfilename = os.path.join(outpath,a_file)
|
|
||||||
with open(newfilename, 'w') as outf:
|
|
||||||
print "Converting " + filename + " to " + newfilename
|
|
||||||
convert(f, outf, php_tpl)
|
|
||||||
|
|
||||||
|
newfilename = os.path.join(outpath,a_file)
|
||||||
|
outf = open(newfilename, 'w')
|
||||||
|
|
||||||
|
print "Converting " + filename + " to " + newfilename
|
||||||
|
convert(f, outf, php_tpl)
|
||||||
|
|
||||||
|
outf.close()
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||||
|
|
||||||
{{include file="file:{{$item.template}}"}}
|
{{include file="{{$item.template}}"}}
|
||||||
|
|
||||||
|
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
<p id="register-fill-desc">{{$fillwith}}</p>
|
<p id="register-fill-desc">{{$fillwith}}</p>
|
||||||
<p id="register-fill-ext">{{$fillext}}</p>
|
<p id="register-fill-ext">{{$fillext}}</p>
|
||||||
|
|
||||||
{{if $oidlabel }}
|
{{if $oidlabel}}
|
||||||
<div id="register-openid-wrapper" >
|
<div id="register-openid-wrapper" >
|
||||||
<label for="register-openid" id="label-register-openid" >{{$oidlabel}}</label><input type="text" maxlength="60" size="32" name="openid_url" class="openid" id="register-openid" value="{{$openid}}" >
|
<label for="register-openid" id="label-register-openid" >{{$oidlabel}}</label><input type="text" maxlength="60" size="32" name="openid_url" class="openid" id="register-openid" value="{{$openid}}" >
|
||||||
</div>
|
</div>
|
||||||
<div id="register-openid-end" ></div>
|
<div id="register-openid-end" ></div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{$live_update}}
|
{{$live_update}}
|
||||||
|
|
||||||
{{foreach $threads as $thread}}
|
{{foreach $threads as $thread}}
|
||||||
{{include file="file:{{$thread.template}}" item=$thread}}
|
{{include file="{{$thread.template}}" item=$thread}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
<div id="conversation-end"></div>
|
<div id="conversation-end"></div>
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>
|
<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>
|
||||||
</div>
|
</div>
|
||||||
{{foreach $item.children as $child}}
|
{{foreach $item.children as $child}}
|
||||||
{{include file="file:{{$child.template}}" item=$child}}
|
{{include file="{{$child.template}}" item=$child}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
{{if $item.flatten}}
|
{{if $item.flatten}}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||||
|
|
||||||
{{include file="file:{{$item.template}}"}}
|
{{include file="{{$item.template}}"}}
|
||||||
|
|
||||||
|
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{$live_update}}
|
{{$live_update}}
|
||||||
|
|
||||||
{{foreach $threads as $thread}}
|
{{foreach $threads as $thread}}
|
||||||
{{include file="file:{{$thread.template}}" item=$thread}}
|
{{include file="{{$thread.template}}" item=$thread}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
<div id="conversation-end"></div>
|
<div id="conversation-end"></div>
|
||||||
|
|
|
@ -132,7 +132,7 @@ class="icon recycle wall-item-share-buttons" title="{{$item.vote.share.0}}" onc
|
||||||
<div class="wall-item-outside-wrapper-end {{$item.indent}} {{$item.shiny}}" ></div>
|
<div class="wall-item-outside-wrapper-end {{$item.indent}} {{$item.shiny}}" ></div>
|
||||||
</div>
|
</div>
|
||||||
{{foreach $item.children as $child}}
|
{{foreach $item.children as $child}}
|
||||||
{{include file="file:{{$child.template}}" item=$child}}
|
{{include file="{{$child.template}}" item=$child}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||||
|
|
||||||
{{include file="file:{{$item.template}}"}}
|
{{include file="{{$item.template}}"}}
|
||||||
|
|
||||||
|
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
<p id="register-realpeople">{{$realpeople}}</p>
|
<p id="register-realpeople">{{$realpeople}}</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
{{if $oidlabel }}
|
{{if $oidlabel}}
|
||||||
<div id="register-openid-wrapper" >
|
<div id="register-openid-wrapper" >
|
||||||
<label for="register-openid" id="label-register-openid" >{{$oidlabel}}</label><input type="text" maxlength="60" size="32" name="openid_url" class="openid" id="register-openid" value="{{$openid}}" >
|
<label for="register-openid" id="label-register-openid" >{{$oidlabel}}</label><input type="text" maxlength="60" size="32" name="openid_url" class="openid" id="register-openid" value="{{$openid}}" >
|
||||||
</div>
|
</div>
|
||||||
<div id="register-openid-end" ></div>
|
<div id="register-openid-end" ></div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{$live_update}}
|
{{$live_update}}
|
||||||
|
|
||||||
{{foreach $threads as $thread}}
|
{{foreach $threads as $thread}}
|
||||||
{{include file="file:{{$thread.template}}" item=$thread}}
|
{{include file="{{$thread.template}}" item=$thread}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
<div id="conversation-end"></div>
|
<div id="conversation-end"></div>
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
<!--<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>-->
|
<!--<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
{{foreach $item.children as $child}}
|
{{foreach $item.children as $child}}
|
||||||
{{include file="file:{{$child.template}}" item=$child}}
|
{{include file="{{$child.template}}" item=$child}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
{{if $item.flatten}}
|
{{if $item.flatten}}
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="acl-list-item" rel="acl-template" style="display:none">
|
<div class="acl-list-item" rel="acl-template" style="display:none">
|
||||||
<img data-src="{0}"><p>{1}</p>
|
|
||||||
<a href="#" class='acl-button-show'>{{$show}}</a>
|
<a href="#" class='acl-button-show'>{{$show}}</a>
|
||||||
<a href="#" class='acl-button-hide'>{{$hide}}</a>
|
<a href="#" class='acl-button-hide'>{{$hide}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
<p id="register-realpeople">{{$realpeople}}</p>
|
<p id="register-realpeople">{{$realpeople}}</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
{{if $oidlabel }}
|
{{if $oidlabel}}
|
||||||
<div id="register-openid-wrapper" >
|
<div id="register-openid-wrapper" >
|
||||||
<label for="register-openid" id="label-register-openid" >{{$oidlabel}}</label><input type="text" maxlength="60" size="32" name="openid_url" class="openid" id="register-openid" value="{{$openid}}" >
|
<label for="register-openid" id="label-register-openid" >{{$oidlabel}}</label><input type="text" maxlength="60" size="32" name="openid_url" class="openid" id="register-openid" value="{{$openid}}" >
|
||||||
</div>
|
</div>
|
||||||
<div id="register-openid-end" ></div>
|
<div id="register-openid-end" ></div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{{$live_update}}
|
{{$live_update}}
|
||||||
|
|
||||||
{{foreach $threads as $thread}}
|
{{foreach $threads as $thread}}
|
||||||
{{include file="file:{{$thread.template}}" item=$thread}}
|
{{include file="{{$thread.template}}" item=$thread}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
<div id="conversation-end"></div>
|
<div id="conversation-end"></div>
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
<!--<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>-->
|
<!--<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
{{foreach $item.children as $child}}
|
{{foreach $item.children as $child}}
|
||||||
{{include file="file:{{$child.template}}" item=$child}}
|
{{include file="{{$child.template}}" item=$child}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
{{if $item.flatten}}
|
{{if $item.flatten}}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
{{if $item.type == tag}}
|
{{if $item.type == tag}}
|
||||||
{{include file="wall_item_tag.tpl"}}
|
{{include file="wall_item_tag.tpl"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{include file="file:{{$item.template}}"}}
|
{{include file="{{$item.template}}"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{{if $thread.type == tag}}
|
{{if $thread.type == tag}}
|
||||||
{{include file="wall_item_tag.tpl" item=$thread}}
|
{{include file="wall_item_tag.tpl" item=$thread}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{include file="file:{{$thread.template}}" item=$thread}}
|
{{include file="{{$thread.template}}" item=$thread}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -149,7 +149,7 @@
|
||||||
{{if $child.type == tag}}
|
{{if $child.type == tag}}
|
||||||
{{include file="wall_item_tag.tpl" item=$child}}
|
{{include file="wall_item_tag.tpl" item=$child}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{include file="file:{{$item.template}}" item=$child}}
|
{{include file="{{$item.template}}" item=$child}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@
|
||||||
<div class="wall-item-outside-wrapper-end {{$item.indent}} {{$item.shiny}}" ></div>
|
<div class="wall-item-outside-wrapper-end {{$item.indent}} {{$item.shiny}}" ></div>
|
||||||
|
|
||||||
{{foreach $item.children as $child}}
|
{{foreach $item.children as $child}}
|
||||||
{{include file="file:{{$child.template}}" item=$child}}
|
{{include file="{{$child.template}}" item=$child}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
{{if $item.flatten}}
|
{{if $item.flatten}}
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<div class="wall-item-outside-wrapper-end {{$item.indent}} {{$item.shiny}}" ></div>
|
<div class="wall-item-outside-wrapper-end {{$item.indent}} {{$item.shiny}}" ></div>
|
||||||
|
|
||||||
{{foreach $item.children as $child}}
|
{{foreach $item.children as $child}}
|
||||||
{{include file="file:{{$child.template}}" item=$child}}
|
{{include file="{{$child.template}}" item=$child}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
{{if $item.flatten}}
|
{{if $item.flatten}}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{{if $thread.type == tag}}
|
{{if $thread.type == tag}}
|
||||||
{{include file="wall_item_tag.tpl" item=$thread}}
|
{{include file="wall_item_tag.tpl" item=$thread}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{include file="file:{{$thread.template}}" item=$thread}}
|
{{include file="{{$thread.template}}" item=$thread}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -150,7 +150,7 @@
|
||||||
{{if $item.type == tag}}
|
{{if $item.type == tag}}
|
||||||
{{include file="wall_item_tag.tpl" item=$child}}
|
{{include file="wall_item_tag.tpl" item=$child}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{include file="file:{{$item.template}}" item=$child}}
|
{{include file="{{$item.template}}" item=$child}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue