$a->module = 'login';
}
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- '$field_password' => 'field_password.tpl',
- '$field_openid' => 'field_openid.tpl',
- '$field_checkbox' => 'field_checkbox.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl,$includes + array(
+ $o .= replace_macros($tpl, array(
'$dest_url' => $dest_url,
'$logout' => t('Logout'),
'$lostpass' => t('Forgot your password?'),
'$lostlink' => t('Password Reset'),
+
));
call_hooks('login_hook',$o);
$tpl = get_markup_template('profile_vcard.tpl');
- $includes = array(
- '$diaspora_vcard' => 'diaspora_vcard.tpl'
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
if($a->theme['template_engine'] === 'internal')
$location = template_escape($location);
- $o .= replace_macros($tpl, $includes + array(
+ $o .= replace_macros($tpl, array(
'$profile' => $profile,
'$connect' => $connect,
'$wallmessage' => $wallmessage,
class FriendicaSmarty extends Smarty {
public $filename;
- public $root;
function __construct() {
parent::__construct();
$a = get_app();
+ $theme = current_theme();
- //$this->root = $_SERVER['DOCUMENT_ROOT'] . '/';
- $this->root = '';
+ // setTemplateDir can be set to an array, which Smarty will parse in order.
+ // The order is thus very important here
+ $template_dirs = array('theme' => "view/theme/$theme/smarty3/");
+ if( x($a->theme_info,"extends") )
+ $template_dirs = $template_dirs + array('extends' => "view/theme/".$a->theme_info["extends"]."/smarty3/");
+ $template_dirs = $template_dirs + array('base' => 'view/smarty3/');
+ $this->setTemplateDir($template_dirs);
- $this->setTemplateDir($this->root . 'view/smarty3/');
- $this->setCompileDir($this->root . 'view/smarty3/compiled/');
- $this->setConfigDir($this->root . 'view/smarty3/config/');
- $this->setCacheDir($this->root . 'view/smarty3/cache/');
+ $this->setCompileDir('view/smarty3/compiled/');
+ $this->setConfigDir('view/smarty3/config/');
+ $this->setCacheDir('view/smarty3/cache/');
$this->left_delimiter = $a->smarty3_ldelim;
$this->right_delimiter = $a->smarty3_rdelim;
if($template) {
return $this->fetch('string:' . $template);
}
- return $this->fetch('file:' . $this->root . $this->filename);
+ return $this->fetch('file:' . $this->filename);
}
}
// $tt = microtime() - $ts;
// $a->page['debug'] .= "$tt <br>\n";
// return $file_contents;
+// logger($template_file);
return file_get_contents($template_file);
}
}}
return $template_file;
}}
-if(! function_exists("set_template_includes")) {
-function set_template_includes($engine, $includes) {
- if($engine === 'smarty3') {
- $a = get_app();
- foreach($includes as $name=>$path) {
-// $sm_includes[$name] = $_SERVER['DOCUMENT_ROOT'] . '/' . get_template_file($a, 'smarty3/' . $path);
- $sm_includes[$name] = get_template_file($a, 'smarty3/' . $path);
- }
- return $sm_includes;
- }
- else {
- return $includes;
- }
-}}
-
);
$t = get_markup_template("admin_site.tpl");
-
- $includes = array(
- '$field_checkbox' => 'field_checkbox.tpl',
- '$field_input' => 'field_input.tpl',
- '$field_select' => 'field_select.tpl',
- '$field_textarea' => 'field_textarea.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- return replace_macros($t, $includes + array(
+ return replace_macros($t, array(
'$title' => t('Administration'),
'$page' => t('Site'),
'$submit' => t('Submit'),
}
}
- $includes = array(
- '$field_checkbox' => 'field_checkbox.tpl',
- '$field_input' => 'field_input.tpl',
- '$field_select' => 'field_select.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- return replace_macros($t, $includes + array(
+ return replace_macros($t, array(
'$title' => t('Administration'),
'$page' => t('Logs'),
'$submit' => t('Submit'),
}
$tpl = get_markup_template("admin_remoteupdate.tpl");
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- '$field_password' => 'field_password.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- return replace_macros($tpl, $includes + array(
+ return replace_macros($tpl, array(
'$baseurl' => $a->get_baseurl(true),
'$submit' => t("Update now"),
'$close' => t("Close"),
$lost_contact = (($contact['archive'] && $contact['term-date'] != '0000-00-00 00:00:00' && $contact['term-date'] < datetime_convert('','','now')) ? t('Communications lost with this contact!') : '');
- $includes = array(
- '$field_checkbox' => 'field_checkbox.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl,$includes + array(
+ $o .= replace_macros($tpl, array(
'$header' => t('Contact Editor'),
'$tab_str' => $tab_str,
'$submit' => t('Submit'),
}
$tpl = get_markup_template("contacts-template.tpl");
-
- $includes = array(
- '$contact_template' => 'contact_template.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl,$includes + array(
+ $o .= replace_macros($tpl, array(
'$header' => t('Contacts') . (($nets) ? ' - ' . network_to_name($nets) : ''),
'$tabs' => $t,
'$total' => $total,
$filetags = get_pconfig(local_user(),'system','filetags');
$filetags = file_tag_file_to_list($filetags,'file');
$filetags = explode(",", $filetags);
- $tpl = get_markup_template("filer_dialog.tpl");
-
- $includes = array(
- '$field_combobox' => 'field_combobox.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
- $o = replace_macros($tpl,$includes + array(
+ $tpl = get_markup_template("filer_dialog.tpl");
+ $o = replace_macros($tpl, array(
'$field' => array('term', t("Save to Folder:"), '', '', $filetags, t('- select -')),
'$submit' => t('Save'),
));
$tpl = get_markup_template('group_edit.tpl');
- $includes = array(
- '$field_input' => 'field_input.tpl',
- '$groupeditortpl' => 'groupeditor.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $context = $includes + array(
+ $context = array(
'$submit' => t('Submit'),
);
check_htconfig($checks);
+ check_smarty3($checks);
+
check_keys($checks);
if(x($_POST,'phpath'))
$tpl = get_markup_template('install_db.tpl');
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- '$field_password' => 'field_password.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl,$includes + array(
+ $o .= replace_macros($tpl, array(
'$title' => $install_title,
'$pass' => t('Database connection'),
'$info_01' => t('In order to install Friendica we need to know how to connect to your database.'),
$timezone = ((x($_POST,'timezone')) ? ($_POST['timezone']) : 'America/Los_Angeles');
$tpl = get_markup_template('install_settings.tpl');
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl, $includes + array(
+ $o .= replace_macros($tpl, array(
'$title' => $install_title,
'$pass' => t('Site settings'),
}
+function check_smarty3(&$checks) {
+ $status = true;
+ $help = "";
+ if( !is_writable('view/smarty3') ) {
+
+ $status=false;
+ $help = t('Friendica uses the Smarty3 template engine to render its web views. Smarty3 compiles templates to PHP to speed up rendering.') .EOL;
+ $help .= t('In order to store these compiled templates, the web server needs to have write access to the directory view/smarty3/ under the Friendica top level folder.').EOL;
+ $help .= t('Please ensure that the user that your web server runs as (e.g. www-data) has write access to this folder.').EOL;
+ $help .= t('Note: as a security measure, you should give the web server write access to view/smarty3/ only--not the template files (.tpl) that it contains.').EOL;
+ }
+
+ check_add($checks, t('view/smarty3 is writable'), $status, true, $help);
+
+}
+
function check_htaccess(&$checks) {
$a = get_app();
$status = true;
$tpl = get_markup_template('mail_display.tpl');
- $includes = array(
- '$mail_conv' => 'mail_conv.tpl',
- '$prv_message' => 'prv_message.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
if($a->theme['template_engine'] === 'internal') {
$subjtxt_e = template_escape($message['title']);
}
$subjtxt_e = $message['title'];
}
- $o = replace_macros($tpl, $includes + array(
+ $o = replace_macros($tpl, array(
'$thread_id' => $a->argv[1],
'$thread_subject' => $message['title'],
'$thread_seen' => $seen,
}
$tpl = get_markup_template("nogroup-template.tpl");
-
- $includes = array(
- '$contact_template' => 'contact_template.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl,$includes + array(
+ $o .= replace_macros($tpl, array(
'$header' => t('Contacts who are not members of a group'),
'$contacts' => $contacts,
'$paginate' => paginate($a),
$return_addr = bin2hex($a->user['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : ''));
- $includes = array(
- '$field_checkbox' => 'field_checkbox.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $notif_content .= replace_macros($sugg,$includes + array(
+ $notif_content .= replace_macros($sugg, array(
'$str_notifytype' => t('Notification type: '),
'$notify_type' => t('Friend Suggestion'),
'$intro_id' => $rr['intro_id'],
));
}
- $includes = array(
- '$field_checkbox' => 'field_checkbox.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $notif_content .= replace_macros($tpl,$includes + array(
+ $notif_content .= replace_macros($tpl, array(
'$str_notifytype' => t('Notification type: '),
'$notify_type' => (($rr['network'] !== NETWORK_OSTATUS) ? t('Friend/Connect Request') : t('New Follower')),
'$dfrn_text' => $dfrn_text,
else
info( t('No introductions.') . EOL);
- $includes = array(
- '$common_tabs' => 'common_tabs.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($notif_tpl,$includes + array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Notifications'),
'$tabs_data' => $tabs,
'$notif_content' => $notif_content,
$notif_content = t('No more network notifications.');
}
- $includes = array(
- '$common_tabs' => 'common_tabs.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($notif_tpl,$includes + array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Network Notifications'),
'$tabs_data' => $tabs,
'$notif_content' => $notif_content,
$notif_content .= t('No more system notifications.');
}
- $includes = array(
- '$common_tabs' => 'common_tabs.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($notif_tpl,$includes + array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('System Notifications'),
'$tabs_data' => $tabs,
'$notif_content' => $notif_content,
$notif_content = t('No more personal notifications.');
}
- $includes = array(
- '$common_tabs' => 'common_tabs.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($notif_tpl,$includes + array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Personal Notifications'),
'$tabs_data' => $tabs,
'$notif_content' => $notif_content,
$notif_content = t('No more home notifications.');
}
- $includes = array(
- '$common_tabs' => 'common_tabs.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($notif_tpl,$includes + array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('Home Notifications'),
'$tabs_data' => $tabs,
'$notif_content' => $notif_content,
$notif_content .= t('No more system notifications.');
}
- $includes = array(
- '$common_tabs' => 'common_tabs.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($notif_tpl,$includes + array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('System Notifications'),
'$tabs_data' => '', // $tabs,
'$notif_content' => $notif_content,
}
$tpl = get_markup_template('photos_recent.tpl');
-
- $includes = array(
- '$photo_top' => 'photo_top.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl,$includes + array(
+ $o .= replace_macros($tpl, array(
'$title' => t('Recent Photos'),
'$can_post' => $can_post,
'$upload' => array(t('Upload New Photos'), $a->get_baseurl().'/photos/'.$a->data['user']['nickname'].'/upload'),
if($format === 'xml') {
header('Content-type: text/xml');
-
- $includes = array(
- '$poco_entry_xml' => 'poco_entry_xml.tpl'
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- echo replace_macros(get_markup_template('poco_xml.tpl'),array_xmlify($includes + array('$response' => $ret)));
+ echo replace_macros(get_markup_template('poco_xml.tpl'),array_xmlify(array('$response' => $ret)));
http_status_exit(500);
}
if($format === 'json') {
if(($a->argc > 2) && ($a->argv[2] === 'add')) {
$tpl = get_markup_template("settings_oauth_edit.tpl");
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl, $includes + array(
+ $o .= replace_macros($tpl, array(
'$form_security_token' => get_form_security_token("settings_oauth"),
'$title' => t('Add application'),
'$submit' => t('Submit'),
$app = $r[0];
$tpl = get_markup_template("settings_oauth_edit.tpl");
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl, $includes + array(
+ $o .= replace_macros($tpl, array(
'$form_security_token' => get_form_security_token("settings_oauth"),
'$title' => t('Add application'),
'$submit' => t('Update'),
$tpl = get_markup_template("settings_features.tpl");
-
- $includes = array(
- '$field_yesno' => 'field_yesno.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl, $includes + array(
+ $o .= replace_macros($tpl, array(
'$form_security_token' => get_form_security_token("settings_features"),
'$title' => t('Additional Features'),
'$features' => $arr,
}
- $includes = array(
- '$field_checkbox' => 'field_checkbox.tpl',
- '$field_input' => 'field_input.tpl',
- '$field_select' => 'field_select.tpl',
- '$field_custom' => 'field_custom.tpl',
- '$field_password' => 'field_password.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl, $includes + array(
+ $o .= replace_macros($tpl, array(
'$form_security_token' => get_form_security_token("settings_connectors"),
'$title' => t('Connector Settings'),
}
$tpl = get_markup_template("settings_display.tpl");
-
- $includes = array(
- '$field_themeselect' => 'field_themeselect.tpl',
- '$field_checkbox' => 'field_checkbox.tpl',
- '$field_input' => 'field_input.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o = replace_macros($tpl, $includes + array(
+ $o = replace_macros($tpl, array(
'$ptitle' => t('Display Settings'),
'$form_security_token' => get_form_security_token("settings_display"),
'$submit' => t('Submit'),
$pageset_tpl = get_markup_template('pagetypes.tpl');
-
- $includes = array(
- '$field_radio' => 'field_radio.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $pagetype = replace_macros($pageset_tpl,$includes + array(
+ $pagetype = replace_macros($pageset_tpl, array(
'$page_normal' => array('page-flags', t('Normal Account Page'), PAGE_NORMAL,
t('This account is a normal personal profile'),
($a->user['page-flags'] == PAGE_NORMAL)),
require_once('include/group.php');
$group_select = mini_group_select(local_user(),$a->user['def_gid']);
- $includes = array(
- '$field_password' => 'field_password.tpl',
- '$field_input' => 'field_input.tpl',
- '$field_custom' => 'field_custom.tpl',
- '$field_checkbox' => 'field_checkbox.tpl',
- '$field_yesno' => 'field_yesno.tpl',
- '$field_intcheckbox' => 'field_intcheckbox.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($stpl,$includes + array(
+ $o .= replace_macros($stpl, array(
'$ptitle' => t('Account Settings'),
'$submit' => t('Submit'),
\r
\r
$tpl = get_markup_template("uimport.tpl");\r
-\r
- $includes = array(\r
- '$field_custom' => 'field_custom.tpl',\r
- );\r
- $includes = set_template_includes($a->theme['template_engine'], $includes);\r
-\r
- return replace_macros($tpl, $includes + array(\r
+ return replace_macros($tpl, array(\r
'$regbutt' => t('Import'),\r
'$import' => array(\r
'title' => t("Move account"),\r
$tpl = get_markup_template("viewcontact_template.tpl");
-
- $includes = array(
- '$contact_template' => 'contact_template.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($tpl, $includes + array(
+ $o .= replace_macros($tpl, array(
'$title' => t('View Contacts'),
'$contacts' => $contacts,
'$paginate' => paginate($a),
<form action="$baseurl/admin/logs" method="post">
<input type='hidden' name='form_security_token' value='$form_security_token'>
- {{ inc $field_checkbox with $field=$debugging }}{{ endinc }}
- {{ inc $field_input with $field=$logfile }}{{ endinc }}
- {{ inc $field_select with $field=$loglevel }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$debugging }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$logfile }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$loglevel }}{{ endinc }}
<div class="submit"><input type="submit" name="page_logs" value="$submit" /></div>
<h3>Your friendica installation is not writable by web server.</h3>
{{ if $canftp }}
<p>You can try to update via FTP</p>
- {{ inc $field_input with $field=$ftphost }}{{ endinc }}
- {{ inc $field_input with $field=$ftppath }}{{ endinc }}
- {{ inc $field_input with $field=$ftpuser }}{{ endinc }}
- {{ inc $field_password with $field=$ftppwd }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$ftphost }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$ftppath }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$ftpuser }}{{ endinc }}
+ {{ inc field_password.tpl with $field=$ftppwd }}{{ endinc }}
<div class="submit"><input type="submit" name="remoteupdate" value="$submit" /></div>
{{ endif }}
{{ endif }}
<form action="$baseurl/admin/site" method="post">
<input type='hidden' name='form_security_token' value='$form_security_token'>
- {{ inc $field_input with $field=$sitename }}{{ endinc }}
- {{ inc $field_textarea with $field=$banner }}{{ endinc }}
- {{ inc $field_select with $field=$language }}{{ endinc }}
- {{ inc $field_select with $field=$theme }}{{ endinc }}
- {{ inc $field_select with $field=$theme_mobile }}{{ endinc }}
- {{ inc $field_select with $field=$ssl_policy }}{{ endinc }}
- {{ inc $field_checkbox with $field=$new_share }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
+ {{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$language }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$theme }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$theme_mobile }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$new_share }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$registration</h3>
- {{ inc $field_input with $field=$register_text }}{{ endinc }}
- {{ inc $field_select with $field=$register_policy }}{{ endinc }}
- {{ inc $field_input with $field=$daily_registrations }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_multi_reg }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_openid }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_regfullname }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$daily_registrations }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$upload</h3>
- {{ inc $field_input with $field=$maximagesize }}{{ endinc }}
- {{ inc $field_input with $field=$maximagelength }}{{ endinc }}
- {{ inc $field_input with $field=$jpegimagequality }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maximagelength }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$jpegimagequality }}{{ endinc }}
<h3>$corporate</h3>
- {{ inc $field_input with $field=$allowed_sites }}{{ endinc }}
- {{ inc $field_input with $field=$allowed_email }}{{ endinc }}
- {{ inc $field_checkbox with $field=$block_public }}{{ endinc }}
- {{ inc $field_checkbox with $field=$force_publish }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_community_page }}{{ endinc }}
- {{ inc $field_checkbox with $field=$ostatus_disabled }}{{ endinc }}
- {{ inc $field_checkbox with $field=$diaspora_enabled }}{{ endinc }}
- {{ inc $field_checkbox with $field=$dfrn_only }}{{ endinc }}
- {{ inc $field_input with $field=$global_directory }}{{ endinc }}
- {{ inc $field_checkbox with $field=$thread_allow }}{{ endinc }}
- {{ inc $field_checkbox with $field=$newuser_private }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$thread_allow }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$newuser_private }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$advanced</h3>
- {{ inc $field_checkbox with $field=$no_utf }}{{ endinc }}
- {{ inc $field_checkbox with $field=$verifyssl }}{{ endinc }}
- {{ inc $field_input with $field=$proxy }}{{ endinc }}
- {{ inc $field_input with $field=$proxyuser }}{{ endinc }}
- {{ inc $field_input with $field=$timeout }}{{ endinc }}
- {{ inc $field_input with $field=$delivery_interval }}{{ endinc }}
- {{ inc $field_input with $field=$poll_interval }}{{ endinc }}
- {{ inc $field_input with $field=$maxloadavg }}{{ endinc }}
- {{ inc $field_input with $field=$abandon_days }}{{ endinc }}
- {{ inc $field_input with $field=$lockpath }}{{ endinc }}
- {{ inc $field_input with $field=$temppath }}{{ endinc }}
- {{ inc $field_input with $field=$basepath }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$lockpath }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$temppath }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$basepath }}{{ endinc }}
<h3>$performance</h3>
- {{ inc $field_checkbox with $field=$use_fulltext_engine }}{{ endinc }}
- {{ inc $field_input with $field=$itemcache }}{{ endinc }}
- {{ inc $field_input with $field=$itemcache_duration }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$use_fulltext_engine }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$itemcache }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$itemcache_duration }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<users type="array">
{{for $users as $u }}
- {{inc $api_user_xml with $user=$u }}{{endinc}}
+ {{inc api_user_xml.tpl with $user=$u }}{{endinc}}
{{endfor}}
</users>
<in_reply_to_screen_name>$status.in_reply_to_screen_name</in_reply_to_screen_name>
<geo>$status.geo</geo>
<favorited>$status.favorited</favorited>
-{{ inc $api_user_xml with $user=$status.user }}{{ endinc }} <statusnet:html>$status.statusnet_html</statusnet:html>
+{{ inc api_user_xml.tpl with $user=$status.user }}{{ endinc }} <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>
{{ endif }}
<div id="contact-edit-end" ></div>
- {{inc $field_checkbox with $field=$hidden }}{{endinc}}
+ {{inc field_checkbox.tpl with $field=$hidden }}{{endinc}}
<div id="contact-edit-info-wrapper">
<h4>$lbl_info1</h4>
{{ for $contacts as $c }}
- {{ inc $contact_template with $contact=$c }}{{ endinc }}
+ {{ inc contact_template.tpl with $contact=$c }}{{ endinc }}
{{ endfor }}
<div id="contact-edit-end"></div>
{{ if $field.0==select }}
- {{ inc $field_select }}{{ endinc }}
+ {{ inc field_select.tpl }}{{ endinc }}
{{ endif }}
-{{ inc $field_combobox }}{{ endinc }}
+{{ inc field_combobox.tpl }}{{ endinc }}
<div class="settings-submit-wrapper" >
<input id="filer_save" type="button" class="settings-submit" value="$submit" />
</div>
<form action="group/$gid" id="group-edit-form" method="post" >
<input type='hidden' name='form_security_token' value='$form_security_token'>
- {{ inc $field_input with $field=$gname }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$gname }}{{ endinc }}
{{ if $drop }}$drop{{ endif }}
<div id="group-edit-submit-wrapper" >
<input type="submit" name="submit" value="$submit" >
{{ if $groupedit_info }}
<div id="group-update-wrapper">
- {{ inc $groupeditortpl with $groupeditor=$groupedit_info }}{{ endinc }}
+ {{ inc groupeditor.tpl with $groupeditor=$groupedit_info }}{{ endinc }}
</div>
{{ endif }}
{{ if $desc }}<div id="group-edit-desc">$desc</div>{{ endif }}
<input type="hidden" name="phpath" value="$phpath" />
<input type="hidden" name="pass" value="3" />
-{{ inc $field_input with $field=$dbhost }}{{endinc}}
-{{ inc $field_input with $field=$dbuser }}{{endinc}}
-{{ inc $field_password with $field=$dbpass }}{{endinc}}
-{{ inc $field_input with $field=$dbdata }}{{endinc}}
+{{ inc field_input.tpl with $field=$dbhost }}{{endinc}}
+{{ inc field_input.tpl with $field=$dbuser }}{{endinc}}
+{{ inc field_password.tpl with $field=$dbpass }}{{endinc}}
+{{ inc field_input.tpl with $field=$dbdata }}{{endinc}}
<input id="install-submit" type="submit" name="submit" value="$submit" />
<input type="hidden" name="dbdata" value="$dbdata" />
<input type="hidden" name="pass" value="4" />
-{{ inc $field_input with $field=$adminmail }}{{endinc}}
+{{ inc field_input.tpl with $field=$adminmail }}{{endinc}}
$timezone
<input id="install-submit" type="submit" name="submit" value="$submit" />
<div class="intro-form-end"></div>
<form class="intro-approve-form" action="dfrn_confirm" method="post">
-{{inc $field_checkbox with $field=$hidden }}{{endinc}}
-{{inc $field_checkbox with $field=$activity }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$hidden }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$activity }}{{endinc}}
<input type="hidden" name="dfrn_id" value="$dfrn_id" >
<input type="hidden" name="intro_id" value="$intro_id" >
<input type="hidden" name="contact_id" value="$contact_id" >
<input type="hidden" name="auth-params" value="login" />
<div id="login_standard">
- {{ inc $field_input with $field=$lname }}{{ endinc }}
- {{ inc $field_password with $field=$lpassword }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$lname }}{{ endinc }}
+ {{ inc field_password.tpl with $field=$lpassword }}{{ endinc }}
</div>
{{ if $openid }}
<div id="login_openid">
- {{ inc $field_openid with $field=$lopenid }}{{ endinc }}
+ {{ inc field_openid.tpl with $field=$lopenid }}{{ endinc }}
</div>
{{ endif }}
- {{ inc $field_checkbox with $field=$lremember }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$lremember }}{{ endinc }}
<div id="login-extra-links">
{{ if $register }}<a href="register" title="$register.title" id="register-link">$register.desc</a>{{ endif }}
{{ for $mails as $mail_item }}
- {{ inc $mail_conv with $mail=$mail_item }}{{endinc}}
+ {{ inc mail_conv.tpl with $mail=$mail_item }}{{endinc}}
{{ endfor }}
{{ if $canreply }}
-{{ inc $prv_message with $reply=$reply_info }}{{ endinc }}
+{{ inc prv_message.tpl with $reply=$reply_info }}{{ endinc }}
{{ else }}
$unknown_text
{{endif }}
<h1>$header</h1>
{{ for $contacts as $c }}
- {{ inc $contact_template with $contact=$c }}{{ endinc }}
+ {{ inc contact_template.tpl with $contact=$c }}{{ endinc }}
{{ endfor }}
<div id="contact-edit-end"></div>
<h1>$notif_header</h1>
-{{ inc $common_tabs with $tabs=$tabs_data }}{{ endinc }}
+{{ inc common_tabs.tpl with $tabs=$tabs_data }}{{ endinc }}
<div class="notif-network-wrapper">
$notif_content
- {{inc $field_radio with $field=$page_normal }}{{endinc}}
- {{inc $field_radio with $field=$page_community }}{{endinc}}
- {{inc $field_radio with $field=$page_prvgroup }}{{endinc}}
- {{inc $field_radio with $field=$page_soapbox }}{{endinc}}
- {{inc $field_radio with $field=$page_freelove }}{{endinc}}
+ {{inc field_radio.tpl with $field=$page_normal }}{{endinc}}
+ {{inc field_radio.tpl with $field=$page_community }}{{endinc}}
+ {{inc field_radio.tpl with $field=$page_prvgroup }}{{endinc}}
+ {{inc field_radio.tpl with $field=$page_soapbox }}{{endinc}}
+ {{inc field_radio.tpl with $field=$page_freelove }}{{endinc}}
<div class="photos">
{{ for $photos as $ph }}
- {{ inc $photo_top with $photo=$ph }}{{ endinc }}
+ {{ inc photo_top.tpl with $photo=$ph }}{{ endinc }}
{{ endfor }}
</div>
<div class="photos-end"></div>
{{ if $response.totalResults }}
{{ for $response.entry as $ent }}
-{{ inc $poco_entry_xml with $entry=$ent }}{{ endinc }}
+{{ inc poco_entry_xml.tpl with $entry=$ent }}{{ endinc }}
{{ endfor }}
{{ else }}
<entry></entry>
{{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-extra-links">
<ul>
<h3 class="settings-heading">$h_pass</h3>
-{{inc $field_password with $field=$password1 }}{{endinc}}
-{{inc $field_password with $field=$password2 }}{{endinc}}
+{{inc field_password.tpl with $field=$password1 }}{{endinc}}
+{{inc field_password.tpl with $field=$password2 }}{{endinc}}
{{ if $oid_enable }}
-{{inc $field_input with $field=$openid }}{{endinc}}
+{{inc field_input.tpl with $field=$openid }}{{endinc}}
{{ endif }}
<div class="settings-submit-wrapper" >
<h3 class="settings-heading">$h_basic</h3>
-{{inc $field_input with $field=$username }}{{endinc}}
-{{inc $field_input with $field=$email }}{{endinc}}
-{{inc $field_custom with $field=$timezone }}{{endinc}}
-{{inc $field_input with $field=$defloc }}{{endinc}}
-{{inc $field_checkbox with $field=$allowloc }}{{endinc}}
+{{inc field_input.tpl with $field=$username }}{{endinc}}
+{{inc field_input.tpl with $field=$email }}{{endinc}}
+{{inc field_custom.tpl with $field=$timezone }}{{endinc}}
+{{inc field_input.tpl with $field=$defloc }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$allowloc }}{{endinc}}
<div class="settings-submit-wrapper" >
<input type="hidden" name="visibility" value="$visibility" />
-{{inc $field_input with $field=$maxreq }}{{endinc}}
+{{inc field_input.tpl with $field=$maxreq }}{{endinc}}
$profile_in_dir
$unkmail
-{{inc $field_input with $field=$cntunkmail }}{{endinc}}
+{{inc field_input.tpl with $field=$cntunkmail }}{{endinc}}
-{{inc $field_input with $field=$expire.days }}{{endinc}}
+{{inc field_input.tpl with $field=$expire.days }}{{endinc}}
<div class="field input">
<div style="display: none;">
<div id="advanced-expire-popup" style="width:auto;height:auto;overflow:auto;">
<h3>$expire.advanced</h3>
- {{ inc $field_yesno with $field=$expire.items }}{{endinc}}
- {{ inc $field_yesno with $field=$expire.notes }}{{endinc}}
- {{ inc $field_yesno with $field=$expire.starred }}{{endinc}}
- {{ inc $field_yesno with $field=$expire.network_only }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.items }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.notes }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.starred }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.network_only }}{{endinc}}
</div>
</div>
<div id="settings-activity-desc">$activity_options</div>
-{{inc $field_checkbox with $field=$post_newfriend }}{{endinc}}
-{{inc $field_checkbox with $field=$post_joingroup }}{{endinc}}
-{{inc $field_checkbox with $field=$post_profilechange }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$post_newfriend }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$post_joingroup }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$post_profilechange }}{{endinc}}
<div id="settings-notify-desc">$lbl_not</div>
<div class="group">
-{{inc $field_intcheckbox with $field=$notify1 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify2 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify3 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify4 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify5 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify6 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify7 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify8 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify1 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify2 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify3 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify4 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify5 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify6 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify7 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify8 }}{{endinc}}
</div>
</div>
<div class="settings-block">
<h3 class="settings-heading">$h_imap</h3>
<p>$imap_desc</p>
- {{inc $field_custom with $field=$imap_lastcheck }}{{endinc}}
- {{inc $field_input with $field=$mail_server }}{{endinc}}
- {{inc $field_input with $field=$mail_port }}{{endinc}}
- {{inc $field_select with $field=$mail_ssl }}{{endinc}}
- {{inc $field_input with $field=$mail_user }}{{endinc}}
- {{inc $field_password with $field=$mail_pass }}{{endinc}}
- {{inc $field_input with $field=$mail_replyto }}{{endinc}}
- {{inc $field_checkbox with $field=$mail_pubmail }}{{endinc}}
- {{inc $field_select with $field=$mail_action }}{{endinc}}
- {{inc $field_input with $field=$mail_movetofolder }}{{endinc}}
+ {{inc field_custom.tpl with $field=$imap_lastcheck }}{{endinc}}
+ {{inc field_input.tpl with $field=$mail_server }}{{endinc}}
+ {{inc field_input.tpl with $field=$mail_port }}{{endinc}}
+ {{inc field_select.tpl with $field=$mail_ssl }}{{endinc}}
+ {{inc field_input.tpl with $field=$mail_user }}{{endinc}}
+ {{inc field_password.tpl with $field=$mail_pass }}{{endinc}}
+ {{inc field_input.tpl with $field=$mail_replyto }}{{endinc}}
+ {{inc field_checkbox.tpl with $field=$mail_pubmail }}{{endinc}}
+ {{inc field_select.tpl with $field=$mail_action }}{{endinc}}
+ {{inc field_input.tpl with $field=$mail_movetofolder }}{{endinc}}
<div class="settings-submit-wrapper" >
<input type="submit" id="imap-submit" name="imap-submit" class="settings-submit" value="$submit" />
<form action="settings/display" id="settings-form" method="post" autocomplete="off" >
<input type='hidden' name='form_security_token' value='$form_security_token'>
-{{inc $field_themeselect with $field=$theme }}{{endinc}}
-{{inc $field_themeselect with $field=$mobile_theme }}{{endinc}}
-{{inc $field_input with $field=$ajaxint }}{{endinc}}
-{{inc $field_input with $field=$itemspage_network }}{{endinc}}
-{{inc $field_checkbox with $field=$nosmile}}{{endinc}}
+{{inc field_themeselect.tpl with $field=$theme }}{{endinc}}
+{{inc field_themeselect.tpl with $field=$mobile_theme }}{{endinc}}
+{{inc field_input.tpl with $field=$ajaxint }}{{endinc}}
+{{inc field_input.tpl with $field=$itemspage_network }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$nosmile}}{{endinc}}
<div class="settings-submit-wrapper" >
<h3 class="settings-heading">$f.0</h3>
{{ for $f.1 as $fcat }}
- {{ inc $field_yesno with $field=$fcat }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$fcat }}{{endinc}}
{{ endfor }}
{{ endfor }}
<form method="POST">
<input type='hidden' name='form_security_token' value='$form_security_token'>
-{{ inc $field_input with $field=$name }}{{ endinc }}
-{{ inc $field_input with $field=$key }}{{ endinc }}
-{{ inc $field_input with $field=$secret }}{{ endinc }}
-{{ inc $field_input with $field=$redirect }}{{ endinc }}
-{{ inc $field_input with $field=$icon }}{{ endinc }}
+{{ inc field_input.tpl with $field=$name }}{{ endinc }}
+{{ inc field_input.tpl with $field=$key }}{{ endinc }}
+{{ inc field_input.tpl with $field=$secret }}{{ endinc }}
+{{ inc field_input.tpl with $field=$redirect }}{{ endinc }}
+{{ inc field_input.tpl with $field=$icon }}{{ endinc }}
<div class="settings-submit-wrapper" >
<input type="submit" name="submit" class="settings-submit" value="$submit" />
<div class="intro-form-end"></div>
<form class="intro-approve-form" action="$request" method="get">
-{{inc $field_checkbox with $field=$hidden }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$hidden }}{{endinc}}
<input class="intro-submit-approve" type="submit" name="submit" value="$approve" />
</form>
</div>
"wide"=>"wide",
);
-// $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
$t = get_markup_template("theme_settings.tpl" );
-
- $includes = array(
- '$field_select' => 'field_select.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($t, $includes + array(
+ $o .= replace_macros($t, array(
'$submit' => t('Submit'),
'$baseurl' => $a->get_baseurl(),
'$title' => t("Theme settings"),
-{{inc $field_select with $field=$color}}{{endinc}}
-{{inc $field_select with $field=$font_size}}{{endinc}}
-{{inc $field_select with $field=$resize}}{{endinc}}
-{{inc $field_select with $field=$theme_width}}{{endinc}}
+{{inc field_select.tpl with $field=$color}}{{endinc}}
+{{inc field_select.tpl with $field=$font_size}}{{endinc}}
+{{inc field_select.tpl with $field=$resize}}{{endinc}}
+{{inc field_select.tpl with $field=$theme_width}}{{endinc}}
<div class="settings-submit-wrapper">
<div id="twittersettings" style="display:none">
<form id="twittersettingsform" action="network" method="post" >
-{{inc $field_input with $field=$TSearchTerm}}{{endinc}}
+{{inc field_input.tpl with $field=$TSearchTerm}}{{endinc}}
<div class="settings-submit-wrapper">
<input id="twittersub" type="submit" value="$sub" class="settings-submit" name="diabook-settings-sub"></input>
</div>
<div id="layermanager" style="width: 350px;position: relative;float: right;right:20px;height: 300px;"></div>
<div id="map2" style="height:350px;width:350px;"></div>
<div id="mouseposition" style="width: 350px;"></div>
-{{inc $field_input with $field=$ELZoom}}{{endinc}}
-{{inc $field_input with $field=$ELPosX}}{{endinc}}
-{{inc $field_input with $field=$ELPosY}}{{endinc}}
+{{inc field_input.tpl with $field=$ELZoom}}{{endinc}}
+{{inc field_input.tpl with $field=$ELPosX}}{{endinc}}
+{{inc field_input.tpl with $field=$ELPosY}}{{endinc}}
<div class="settings-submit-wrapper">
<input id="mapsub" type="submit" value="$sub" class="settings-submit" name="diabook-settings-map-sub"></input>
</div>
<div id="boxsettings" style="display:none">
<form id="boxsettingsform" action="network" method="post" >
<fieldset><legend>$boxsettings.title.1</legend>
-{{inc $field_select with $field=$close_pages}}{{endinc}}
-{{inc $field_select with $field=$close_profiles}}{{endinc}}
-{{inc $field_select with $field=$close_helpers}}{{endinc}}
-{{inc $field_select with $field=$close_services}}{{endinc}}
-{{inc $field_select with $field=$close_friends}}{{endinc}}
-{{inc $field_select with $field=$close_lastusers}}{{endinc}}
-{{inc $field_select with $field=$close_lastphotos}}{{endinc}}
-{{inc $field_select with $field=$close_lastlikes}}{{endinc}}
-{{inc $field_select with $field=$close_twitter}}{{endinc}}
-{{inc $field_select with $field=$close_mapquery}}{{endinc}}
+{{inc field_select.tpl with $field=$close_pages}}{{endinc}}
+{{inc field_select.tpl with $field=$close_profiles}}{{endinc}}
+{{inc field_select.tpl with $field=$close_helpers}}{{endinc}}
+{{inc field_select.tpl with $field=$close_services}}{{endinc}}
+{{inc field_select.tpl with $field=$close_friends}}{{endinc}}
+{{inc field_select.tpl with $field=$close_lastusers}}{{endinc}}
+{{inc field_select.tpl with $field=$close_lastphotos}}{{endinc}}
+{{inc field_select.tpl with $field=$close_lastlikes}}{{endinc}}
+{{inc field_select.tpl with $field=$close_twitter}}{{endinc}}
+{{inc field_select.tpl with $field=$close_mapquery}}{{endinc}}
<div class="settings-submit-wrapper">
<input id="boxsub" type="submit" value="$sub" class="settings-submit" name="diabook-settings-box-sub"></input>
</div>
-// $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
$t = get_markup_template("theme_settings.tpl" );
-
- $includes = array(
- '$field_select' => 'field_select.tpl',
- '$field_input' => 'field_input.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($t, $includes + array(
+ $o .= replace_macros($t, array(
'$submit' => t('Submit'),
'$baseurl' => $a->get_baseurl(),
'$title' => t("Theme settings"),
<input type="hidden" name="auth-params" value="login" />
<div id="login_standard">
- {{ inc $field_input with $field=$lname }}{{ endinc }}
- {{ inc $field_password with $field=$lpassword }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$lname }}{{ endinc }}
+ {{ inc field_password.tpl with $field=$lpassword }}{{ endinc }}
</div>
{{ if $openid }}
<div id="login_openid">
- {{ inc $field_openid with $field=$lopenid }}{{ endinc }}
+ {{ inc field_openid.tpl with $field=$lopenid }}{{ endinc }}
</div>
{{ endif }}
{{ for $mails as $mail_item }}
<div id="tread-wrapper-$mail_item.id" class="tread-wrapper">
- {{ inc $mail_conv with $mail=$mail_item }}{{endinc}}
+ {{ inc mail_conv.tpl with $mail=$mail_item }}{{endinc}}
</div>
{{ endfor }}
-{{ inc $prv_message with $reply=$reply_info }}{{ endinc }}
+{{ inc prv_message.tpl with $reply=$reply_info }}{{ endinc }}
{{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-extra-links">
<ul>
set_pconfig(local_user(), 'diabook', 'close_lastlikes', $_POST['diabook_close_lastlikes']);
}
}
- $close = t('Settings');
- $aside['$close'] = $close;
- //get_baseurl
- $url = $a->get_baseurl($ssl_state);
- $aside['$url'] = $url;
- //print right_aside
- $tpl = get_markup_template('communityhome.tpl');
+ $close = t('Settings');
+ $aside['$close'] = $close;
- $includes = array(
- '$field_select' => 'field_select.tpl',
- '$field_input' => 'field_input.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
+ //get_baseurl
+ $url = $a->get_baseurl($ssl_state);
+ $aside['$url'] = $url;
- $a->page['right_aside'] = replace_macros($tpl, $includes + $aside);
+ //print right_aside
+ $tpl = get_markup_template('communityhome.tpl');
+ $a->page['right_aside'] = replace_macros($tpl, $aside);
}
-{{inc $field_select with $field=$color}}{{endinc}}
+{{inc field_select.tpl with $field=$color}}{{endinc}}
-{{inc $field_select with $field=$font_size}}{{endinc}}
+{{inc field_select.tpl with $field=$font_size}}{{endinc}}
-{{inc $field_select with $field=$line_height}}{{endinc}}
+{{inc field_select.tpl with $field=$line_height}}{{endinc}}
-{{inc $field_select with $field=$resolution}}{{endinc}}
+{{inc field_select.tpl with $field=$resolution}}{{endinc}}
<div class="settings-submit-wrapper">
<input type="submit" value="$submit" class="settings-submit" name="diabook-settings-submit" />
</div>
<br>
<h3>Show/hide boxes at right-hand column</h3>
-{{inc $field_select with $field=$close_pages}}{{endinc}}
-{{inc $field_select with $field=$close_profiles}}{{endinc}}
-{{inc $field_select with $field=$close_helpers}}{{endinc}}
-{{inc $field_select with $field=$close_services}}{{endinc}}
-{{inc $field_select with $field=$close_friends}}{{endinc}}
-{{inc $field_select with $field=$close_lastusers}}{{endinc}}
-{{inc $field_select with $field=$close_lastphotos}}{{endinc}}
-{{inc $field_select with $field=$close_lastlikes}}{{endinc}}
-{{inc $field_select with $field=$close_twitter}}{{endinc}}
-{{inc $field_input with $field=$TSearchTerm}}{{endinc}}
-{{inc $field_select with $field=$close_mapquery}}{{endinc}}
-
-{{inc $field_input with $field=$ELPosX}}{{endinc}}
-
-{{inc $field_input with $field=$ELPosY}}{{endinc}}
-
-{{inc $field_input with $field=$ELZoom}}{{endinc}}
+{{inc field_select.tpl with $field=$close_pages}}{{endinc}}
+{{inc field_select.tpl with $field=$close_profiles}}{{endinc}}
+{{inc field_select.tpl with $field=$close_helpers}}{{endinc}}
+{{inc field_select.tpl with $field=$close_services}}{{endinc}}
+{{inc field_select.tpl with $field=$close_friends}}{{endinc}}
+{{inc field_select.tpl with $field=$close_lastusers}}{{endinc}}
+{{inc field_select.tpl with $field=$close_lastphotos}}{{endinc}}
+{{inc field_select.tpl with $field=$close_lastlikes}}{{endinc}}
+{{inc field_select.tpl with $field=$close_twitter}}{{endinc}}
+{{inc field_input.tpl with $field=$TSearchTerm}}{{endinc}}
+{{inc field_select.tpl with $field=$close_mapquery}}{{endinc}}
+
+{{inc field_input.tpl with $field=$ELPosX}}{{endinc}}
+
+{{inc field_input.tpl with $field=$ELPosY}}{{endinc}}
+
+{{inc field_input.tpl with $field=$ELZoom}}{{endinc}}
<div class="settings-submit-wrapper">
<input type="submit" value="$submit" class="settings-submit" name="diabook-settings-submit" />
);
$t = get_markup_template("theme_settings.tpl" );
-
- $includes = array(
- '$field_select' => 'field_select.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($t, $includes + array(
+ $o .= replace_macros($t, array(
'$submit' => t('Submit'),
'$baseurl' => $a->get_baseurl(),
'$title' => t("Theme settings"),
target="external-link">$profile.homepage</a></span>
</div>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-extra-links">
<ul>
{{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-vcard-break"></div>
<div id="profile-extra-links">
{{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-extra-links">
<ul>
<form action="$baseurl/admin/site" method="post">
<input type='hidden' name='form_security_token' value='$form_security_token'>
- {{ inc $field_input with $field=$sitename }}{{ endinc }}
- {{ inc $field_textarea with $field=$banner }}{{ endinc }}
- {{ inc $field_select with $field=$language }}{{ endinc }}
- {{ inc $field_select with $field=$theme }}{{ endinc }}
- {{ inc $field_select with $field=$theme_mobile }}{{ endinc }}
- {{ inc $field_select with $field=$ssl_policy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
+ {{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$language }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$theme }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$theme_mobile }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$registration</h3>
- {{ inc $field_input with $field=$register_text }}{{ endinc }}
- {{ inc $field_select with $field=$register_policy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_multi_reg }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_openid }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_regfullname }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$upload</h3>
- {{ inc $field_input with $field=$maximagesize }}{{ endinc }}
- {{ inc $field_input with $field=$maximagelength }}{{ endinc }}
- {{ inc $field_input with $field=$jpegimagequality }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maximagelength }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$jpegimagequality }}{{ endinc }}
<h3>$corporate</h3>
- {{ inc $field_input with $field=$allowed_sites }}{{ endinc }}
- {{ inc $field_input with $field=$allowed_email }}{{ endinc }}
- {{ inc $field_checkbox with $field=$block_public }}{{ endinc }}
- {{ inc $field_checkbox with $field=$force_publish }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_community_page }}{{ endinc }}
- {{ inc $field_checkbox with $field=$ostatus_disabled }}{{ endinc }}
- {{ inc $field_checkbox with $field=$diaspora_enabled }}{{ endinc }}
- {{ inc $field_checkbox with $field=$dfrn_only }}{{ endinc }}
- {{ inc $field_input with $field=$global_directory }}{{ endinc }}
- {{ inc $field_checkbox with $field=$thread_allow }}{{ endinc }}
- {{ inc $field_checkbox with $field=$newuser_private }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$thread_allow }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$newuser_private }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$advanced</h3>
- {{ inc $field_checkbox with $field=$no_utf }}{{ endinc }}
- {{ inc $field_checkbox with $field=$verifyssl }}{{ endinc }}
- {{ inc $field_input with $field=$proxy }}{{ endinc }}
- {{ inc $field_input with $field=$proxyuser }}{{ endinc }}
- {{ inc $field_input with $field=$timeout }}{{ endinc }}
- {{ inc $field_input with $field=$delivery_interval }}{{ endinc }}
- {{ inc $field_input with $field=$poll_interval }}{{ endinc }}
- {{ inc $field_input with $field=$maxloadavg }}{{ endinc }}
- {{ inc $field_input with $field=$abandon_days }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<div id="contacts-display-wrapper">
{{ for $contacts as $c }}
- {{ inc $contact_template with $contact=$c }}{{ endinc }}
+ {{ inc contact_template.tpl with $contact=$c }}{{ endinc }}
{{ endfor }}
</div>
<div id="contact-edit-end"></div>
<input type="hidden" name="auth-params" value="login" />
<div id="login_standard">
- {{ inc $field_input with $field=$lname }}{{ endinc }}
- {{ inc $field_password with $field=$lpassword }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$lname }}{{ endinc }}
+ {{ inc field_password.tpl with $field=$lpassword }}{{ endinc }}
</div>
{{ if $openid }}
<div id="login_openid">
- {{ inc $field_openid with $field=$lopenid }}{{ endinc }}
+ {{ inc field_openid.tpl with $field=$lopenid }}{{ endinc }}
</div>
{{ endif }}
</div>-->
<br />
- {{ inc $field_checkbox with $field=$lremember }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$lremember }}{{ endinc }}
<div id="login-submit-wrapper" >
<input type="submit" name="submit" id="login-submit-button" value="$login" />
{{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-vcard-break"></div>
<div id="profile-extra-links">
<h3 class="settings-heading">$h_pass</h3>
-{{inc $field_password with $field=$password1 }}{{endinc}}
-{{inc $field_password with $field=$password2 }}{{endinc}}
+{{inc field_password.tpl with $field=$password1 }}{{endinc}}
+{{inc field_password.tpl with $field=$password2 }}{{endinc}}
{{ if $oid_enable }}
-{{inc $field_input with $field=$openid }}{{endinc}}
+{{inc field_input.tpl with $field=$openid }}{{endinc}}
{{ endif }}
<div class="settings-submit-wrapper" >
<h3 class="settings-heading">$h_basic</h3>
-{{inc $field_input with $field=$username }}{{endinc}}
-{{inc $field_input with $field=$email }}{{endinc}}
-{{inc $field_custom with $field=$timezone }}{{endinc}}
-{{inc $field_input with $field=$defloc }}{{endinc}}
-{{inc $field_checkbox with $field=$allowloc }}{{endinc}}
+{{inc field_input.tpl with $field=$username }}{{endinc}}
+{{inc field_input.tpl with $field=$email }}{{endinc}}
+{{inc field_custom.tpl with $field=$timezone }}{{endinc}}
+{{inc field_input.tpl with $field=$defloc }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$allowloc }}{{endinc}}
<div class="settings-submit-wrapper" >
<input type="hidden" name="visibility" value="$visibility" />
-{{inc $field_input with $field=$maxreq }}{{endinc}}
+{{inc field_input.tpl with $field=$maxreq }}{{endinc}}
$profile_in_dir
$unkmail
-{{inc $field_input with $field=$cntunkmail }}{{endinc}}
+{{inc field_input.tpl with $field=$cntunkmail }}{{endinc}}
-{{inc $field_input with $field=$expire.days }}{{endinc}}
+{{inc field_input.tpl with $field=$expire.days }}{{endinc}}
<div class="field input">
<div style="display: none;">
<div id="advanced-expire-popup" style="width:auto;height:auto;overflow:auto;">
<h3>$expire.advanced</h3>
- {{ inc $field_yesno with $field=$expire.items }}{{endinc}}
- {{ inc $field_yesno with $field=$expire.notes }}{{endinc}}
- {{ inc $field_yesno with $field=$expire.starred }}{{endinc}}
- {{ inc $field_yesno with $field=$expire.network_only }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.items }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.notes }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.starred }}{{endinc}}
+ {{ inc field_yesno.tpl with $field=$expire.network_only }}{{endinc}}
</div>
</div>
<div id="settings-activity-desc">$activity_options</div>
-{{inc $field_checkbox with $field=$post_newfriend }}{{endinc}}
-{{inc $field_checkbox with $field=$post_joingroup }}{{endinc}}
-{{inc $field_checkbox with $field=$post_profilechange }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$post_newfriend }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$post_joingroup }}{{endinc}}
+{{inc field_checkbox.tpl with $field=$post_profilechange }}{{endinc}}
<div id="settings-notify-desc">$lbl_not</div>
<div class="group">
-{{inc $field_intcheckbox with $field=$notify1 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify2 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify3 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify4 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify5 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify6 }}{{endinc}}
-{{inc $field_intcheckbox with $field=$notify7 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify1 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify2 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify3 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify4 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify5 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify6 }}{{endinc}}
+{{inc field_intcheckbox.tpl with $field=$notify7 }}{{endinc}}
</div>
</div>
<form action="$baseurl/admin/site" method="post">
<input type='hidden' name='form_security_token' value='$form_security_token'>
- {{ inc $field_input with $field=$sitename }}{{ endinc }}
- {{ inc $field_textarea with $field=$banner }}{{ endinc }}
- {{ inc $field_select with $field=$language }}{{ endinc }}
- {{ inc $field_select with $field=$theme }}{{ endinc }}
- {{ inc $field_select with $field=$theme_mobile }}{{ endinc }}
- {{ inc $field_select with $field=$ssl_policy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
+ {{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$language }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$theme }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$theme_mobile }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$new_share }}{{ endinc }}
+
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$registration</h3>
- {{ inc $field_input with $field=$register_text }}{{ endinc }}
- {{ inc $field_select with $field=$register_policy }}{{ endinc }}
- {{ inc $field_input with $field=$daily_registrations }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_multi_reg }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_openid }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_regfullname }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
+ {{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$daily_registrations }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$upload</h3>
- {{ inc $field_input with $field=$maximagesize }}{{ endinc }}
- {{ inc $field_input with $field=$maximagelength }}{{ endinc }}
- {{ inc $field_input with $field=$jpegimagequality }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maximagelength }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$jpegimagequality }}{{ endinc }}
<h3>$corporate</h3>
- {{ inc $field_input with $field=$allowed_sites }}{{ endinc }}
- {{ inc $field_input with $field=$allowed_email }}{{ endinc }}
- {{ inc $field_checkbox with $field=$block_public }}{{ endinc }}
- {{ inc $field_checkbox with $field=$force_publish }}{{ endinc }}
- {{ inc $field_checkbox with $field=$no_community_page }}{{ endinc }}
- {{ inc $field_checkbox with $field=$ostatus_disabled }}{{ endinc }}
- {{ inc $field_checkbox with $field=$diaspora_enabled }}{{ endinc }}
- {{ inc $field_checkbox with $field=$dfrn_only }}{{ endinc }}
- {{ inc $field_input with $field=$global_directory }}{{ endinc }}
- {{ inc $field_checkbox with $field=$thread_allow }}{{ endinc }}
- {{ inc $field_checkbox with $field=$newuser_private }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$thread_allow }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$newuser_private }}{{ endinc }}
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<h3>$advanced</h3>
- {{ inc $field_checkbox with $field=$no_utf }}{{ endinc }}
- {{ inc $field_checkbox with $field=$verifyssl }}{{ endinc }}
- {{ inc $field_input with $field=$proxy }}{{ endinc }}
- {{ inc $field_input with $field=$proxyuser }}{{ endinc }}
- {{ inc $field_input with $field=$timeout }}{{ endinc }}
- {{ inc $field_input with $field=$delivery_interval }}{{ endinc }}
- {{ inc $field_input with $field=$poll_interval }}{{ endinc }}
- {{ inc $field_input with $field=$maxloadavg }}{{ endinc }}
- {{ inc $field_input with $field=$abandon_days }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$lockpath }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$temppath }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$basepath }}{{ endinc }}
+
+ <h3>$performance</h3>
+ {{ inc field_checkbox.tpl with $field=$use_fulltext_engine }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$itemcache }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$itemcache_duration }}{{ endinc }}
+
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
<div id="contacts-display-wrapper">
{{ for $contacts as $c }}
- {{ inc $contact_template with $contact=$c }}{{ endinc }}
+ {{ inc contact_template.tpl with $contact=$c }}{{ endinc }}
{{ endfor }}
</div>
<div id="contact-edit-end"></div>
<input type="hidden" name="auth-params" value="login" />
<div id="login_standard">
- {{ inc $field_input with $field=$lname }}{{ endinc }}
- {{ inc $field_password with $field=$lpassword }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$lname }}{{ endinc }}
+ {{ inc field_password.tpl with $field=$lpassword }}{{ endinc }}
</div>
{{ if $openid }}
<br /><br />
<div id="login_openid">
- {{ inc $field_openid with $field=$lopenid }}{{ endinc }}
+ {{ inc field_openid.tpl with $field=$lopenid }}{{ endinc }}
</div>
{{ endif }}
</div>-->
<br /><br />
- {{ inc $field_checkbox with $field=$lremember }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$lremember }}{{ endinc }}
<div id="login-submit-wrapper" >
<input type="submit" name="submit" id="login-submit-button" value="$login" />
{{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-vcard-break"></div>
<div id="profile-extra-links">
if ($pfs===false) $pfs="12";
$t = get_markup_template("theme_settings.tpl" );
-
- $includes = array(
- '$field_select' => 'field_select.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros($t, $includes + array(
+ $o .= replace_macros($t, array(
'$submit' => t('Submit'),
'$baseurl' => $a->get_baseurl(),
'$title' => t("Theme settings"),
{{ for $mails as $mail_item }}
<div id="tread-wrapper-$mail_item.id" class="tread-wrapper">
- {{ inc $mail_conv with $mail=$mail_item }}{{endinc}}
+ {{ inc mail_conv.tpl with $mail=$mail_item }}{{endinc}}
</div>
{{ endfor }}
-{{ inc $prv_message with $reply=$reply_info }}{{ endinc }}
+{{ inc prv_message.tpl with $reply=$reply_info }}{{ endinc }}
class="homepage-label">$homepage</dt><dd class="homepage-url"><a
href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-extra-links">
<ul>
<input type="hidden" name="auth-params" value="login" />
<div id="login_standard">
- {{ inc $field_input with $field=$lname }}{{ endinc }}
- {{ inc $field_password with $field=$lpassword }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$lname }}{{ endinc }}
+ {{ inc field_password.tpl with $field=$lpassword }}{{ endinc }}
</div>
{{ if $openid }}
<div id="login_openid">
- {{ inc $field_openid with $field=$lopenid }}{{ endinc }}
+ {{ inc field_openid.tpl with $field=$lopenid }}{{ endinc }}
</div>
{{ endif }}
{{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
- {{ inc $diaspora_vcard with $diaspora=$diaspora_info }}{{ endinc }}
+ {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }}
<div id="profile-extra-links">
<ul>
<p>$import.intro</p>\r
<p>$import.instruct</p>\r
<p><b>$import.warn</b></p>\r
- {{inc $field_custom with $field=$import.field }}{{ endinc }}\r
+ {{inc field_custom.tpl with $field=$import.field }}{{ endinc }}\r
\r
\r
<div id="register-submit-wrapper">\r
<h3>$title</h3>
{{ for $contacts as $c }}
- {{ inc $contact_template with $contact=$c }}{{ endinc }}
+ {{ inc contact_template.tpl with $contact=$c }}{{ endinc }}
{{ endfor }}
<div id="view-contact-end"></div>