From 31a21ac24cd5cbe19e40ab3838fcc179d812da13 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 8 May 2013 03:51:38 -0400 Subject: use smarty3 as default template engine. add pluggable template system --- .gitignore | 3 ++ boot.php | 84 +++++++++++++++++++++++++++++++++++++----- include/ITemplateEngine.php | 11 ++++++ include/friendica_smarty.php | 39 +++++++++++++++++++- include/plugin.php | 21 ++--------- include/template_processor.php | 25 +++++++++---- include/text.php | 63 ++++++++++++++++--------------- 7 files changed, 178 insertions(+), 68 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 boot.php create mode 100755 include/ITemplateEngine.php mode change 100644 => 100755 include/friendica_smarty.php mode change 100644 => 100755 include/plugin.php mode change 100644 => 100755 include/template_processor.php mode change 100644 => 100755 include/text.php diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index 6cb36fb26..1a1b8259e --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ report/ #ignore OSX .DS_Store files .DS_Store + +#netbeans project folder +nbproject diff --git a/boot.php b/boot.php old mode 100644 new mode 100755 index e230a13c6..b00419359 --- a/boot.php +++ b/boot.php @@ -546,9 +546,14 @@ class App { 'force_max_items' => 0, 'thread_allow' => true, 'stylesheet' => '', - 'template_engine' => 'internal', + 'template_engine' => 'smarty3', ); + // array of registered template engines ('name'=>'class name') + public $template_engines = array(); + // array of instanced template engines ('name'=>'instance') + public $template_engine_instance = array(); + private $ldelim = array( 'internal' => '', 'smarty3' => '{{' @@ -680,6 +685,16 @@ class App { $this->is_tablet = $mobile_detect->isTablet(); BaseObject::set_app($this); + + /** + * register template engines + */ + $dc = get_declared_classes(); + foreach ($dc as $k) { + if (in_array("ITemplateEngine", class_implements($k))){ + $this->register_template_engine($k); + } + } } function get_baseurl($ssl = false) { @@ -897,28 +912,79 @@ class App { return $this->curl_headers; } + + /** + * register template engine class + * if $name is "", is used class static property $class::$name + * @param string $class + * @param string $name + */ + function register_template_engine($class, $name = '') { + if ($name===""){ + $v = get_class_vars( $class ); + if(x($v,"name")) $name = $v['name']; + } + if ($name===""){ + echo "template engine $class cannot be registered without a name.\n"; + killme(); + } + $this->template_engines[$name] = $class; + } + + /** + * return template engine instance. If $name is not defined, + * return engine defined by theme, or default + * + * @param strin $name Template engine name + * @return object Template Engine instance + */ + function template_engine($name = ''){ + if ($name!=="") { + $template_engine = $name; + } else { + $template_engine = 'smarty3'; + if (x($this->theme, 'template_engine')) { + $template_engine = $this->theme['template_engine']; + } + } + + if (isset($this->template_engines[$template_engine])){ + if(isset($this->template_engine_instance[$template_engine])){ + return $this->template_engine_instance[$template_engine]; + } else { + $class = $this->template_engines[$template_engine]; + $obj = new $class; + $this->template_engine_instance[$template_engine] = $obj; + return $obj; + } + } + + echo "template engine $template_engine is not registered!\n"; killme(); + } + function get_template_engine() { return $this->theme['template_engine']; } - function set_template_engine($engine = 'internal') { + function set_template_engine($engine = 'smarty3') { - $this->theme['template_engine'] = 'internal'; + $this->theme['template_engine'] = $engine; - switch($engine) { + /*if ($engine) { case 'smarty3': - if(is_writable('view/tpl/smarty3/')) - $this->theme['template_engine'] = 'smarty3'; + if(!is_writable('view/tpl/smarty3/')) + echo "ERROR folder view/tpl/smarty3/ must be writable by webserver."; killme(); + break; default: break; - } + }*/ } - function get_template_ldelim($engine = 'internal') { + function get_template_ldelim($engine = 'smarty3') { return $this->ldelim[$engine]; } - function get_template_rdelim($engine = 'internal') { + function get_template_rdelim($engine = 'smarty3') { return $this->rdelim[$engine]; } diff --git a/include/ITemplateEngine.php b/include/ITemplateEngine.php new file mode 100755 index 000000000..53c1845f4 --- /dev/null +++ b/include/ITemplateEngine.php @@ -0,0 +1,11 @@ +ERROR: folder view/tpl/smarty3/ must be writable by webserver."; killme(); + } + } + + // ITemplateEngine interface + public function replace_macros($s, $r) { + $template = ''; + if(gettype($s) === 'string') { + $template = $s; + $s = new FriendicaSmarty(); + } + foreach($r as $key=>$value) { + if($key[0] === '$') { + $key = substr($key, 1); + } + $s->assign($key, $value); + } + return $s->parsed($template); + } + + public function get_markup_template($file, $root=''){ + $template_file = theme_include('smarty3/'.$file, $root); + if($template_file) { + $template = new FriendicaSmarty(); + $template->filename = $template_file; + + return $template; + } + return ""; + } +} \ No newline at end of file diff --git a/include/plugin.php b/include/plugin.php old mode 100644 new mode 100755 index 31427e117..3ef97fba9 --- a/include/plugin.php +++ b/include/plugin.php @@ -569,24 +569,9 @@ function get_intltext_template($s) { function get_markup_template($s, $root = '') { - $a = get_app(); - - $template_eng = $a->get_template_engine(); - if($template_eng === 'internal') { - $template_file = theme_include($s, $root); - if($template_file) - return file_get_contents($template_file); - } - else { - $template_file = theme_include("$template_eng/$s", $root); - - if($template_file) { - $template = new FriendicaSmarty(); - $template->filename = $template_file; - - return $template; - } - } + $t = $a->template_engine(); + $template = $t->get_markup_template($s, $root); + return $template; } diff --git a/include/template_processor.php b/include/template_processor.php old mode 100644 new mode 100755 index 0b4b4142f..794155f84 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -1,7 +1,11 @@ -r = $r; $s = $this->_build_nodes($s); @@ -265,14 +269,19 @@ $os=$s; $count++; $s = $this->var_replace($s); } - $t3 = dba_timer(); -// logger('macro timer: ' . sprintf('%01.4f %01.4f',$t3 - $t2, $t2 - $t1)); - return $s; } + + public function get_markup_template($file, $root='') { + $template_file = theme_include($file, $root); + $template_file = ""; + if ($template_file) { + $content = file_get_contents($template_file); + } + return $content; + } } - $t = new Template; diff --git a/include/text.php b/include/text.php old mode 100644 new mode 100755 index c7210010c..3b3620f33 --- a/include/text.php +++ b/include/text.php @@ -1,44 +1,23 @@ replace) -// returns substituted string. - require_once("include/template_processor.php"); +require_once("include/friendica_smarty.php"); - +/** + * This is our template processor + * + * @param string|FriendicaSmarty $s the string requiring macro substitution, + * or an instance of FriendicaSmarty + * @param array $r key value pairs (search => replace) + * @return string substituted string + */ function replace_macros($s,$r) { - global $t; - -// $ts = microtime(); $a = get_app(); - if($a->get_template_engine() === 'smarty3') { - $output = ''; - if(gettype($s) !== 'NULL') { - $template = ''; - if(gettype($s) === 'string') { - $template = $s; - $s = new FriendicaSmarty(); - } - foreach($r as $key=>$value) { - if($key[0] === '$') { - $key = substr($key, 1); - } - $s->assign($key, $value); - } - $output = $s->parsed($template); - } - } - else { - $r = $t->replace($s,$r); + $t = $a->template_engine(); + $output = $t->replace_macros($s,$r); - $output = template_unescape($r); - } -// $tt = microtime() - $ts; -// $a->page['debug'] .= "$tt
\n"; return $output; } @@ -71,6 +50,8 @@ function random_string($size = 64,$type = RANDOM_STRING_HEX) { * They will be replaced with safer brackets. This may be filtered further * if these are not allowed either. * + * @param string $string Input string + * @return string Filtered string */ @@ -86,6 +67,13 @@ function notags($string) { // and allow them to be safely displayed. + +/** + * use this on "body" or "content" input where angle chars shouldn't be removed, + * and allow them to be safely displayed. + * @param string $string + * @return string + */ function escape_tags($string) { return(htmlspecialchars($string, ENT_COMPAT, 'UTF-8', false)); @@ -97,6 +85,12 @@ function escape_tags($string) { // used to generate initial passwords +/** + * generate a string that's random, but usually pronounceable. + * used to generate initial passwords + * @param int $len + * @return string + */ function autoname($len) { if($len <= 0) @@ -172,6 +166,11 @@ function autoname($len) { // returns escaped text. +/** + * escape text ($str) for XML transport + * @param string $str + * @return string Escaped text. + */ function xmlify($str) { $buffer = ''; -- cgit v1.2.3 From c753fa19d289e936131aad706cf31bcfe111b4c1 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 8 May 2013 04:00:05 -0400 Subject: fix internal --- include/template_processor.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/template_processor.php b/include/template_processor.php index 794155f84..74acc9c67 100755 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -248,7 +248,11 @@ return $s; } - + + private function replace($s,$r) { + $this->replace_macros($s, $r); + } + // TemplateEngine interface public function replace_macros($s, $r) { $this->r = $r; @@ -274,7 +278,6 @@ public function get_markup_template($file, $root='') { $template_file = theme_include($file, $root); - $template_file = ""; if ($template_file) { $content = file_get_contents($template_file); } -- cgit v1.2.3 From 5e1980becf69a4c65489bed6f94fa730ec8ef4bf Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 8 May 2013 04:23:17 -0400 Subject: remove "internal" templates, use "tpl/" folder for smarty3 templates, move smarty3 templates in "tpl/" folder, add util/precompile_smarty.php utility, add precompiled templates --- include/friendica_smarty.php | 8 +- util/precompile_smarty3.php | 27 ++ view/theme/redbasic/tpl/basic_theme_settings.tpl | 13 +- .../redbasic/tpl/smarty3/basic_theme_settings.tpl | 14 - view/theme/redbasic/tpl/smarty3/theme_settings.tpl | 26 -- view/theme/redbasic/tpl/theme_settings.tpl | 25 +- view/tpl/404.tpl | 7 +- view/tpl/abook_edit.tpl | 81 ++--- view/tpl/acl_selector.tpl | 13 +- view/tpl/admin_aside.tpl | 37 ++- view/tpl/admin_logs.tpl | 27 +- view/tpl/admin_plugins.tpl | 21 +- view/tpl/admin_plugins_details.tpl | 49 ++-- view/tpl/admin_site.tpl | 75 ++--- view/tpl/admin_summary.tpl | 39 +-- view/tpl/admin_users.tpl | 81 ++--- view/tpl/album_edit.tpl | 15 +- view/tpl/api_config_xml.tpl | 23 +- view/tpl/api_friends_xml.tpl | 11 +- view/tpl/api_ratelimit_xml.tpl | 13 +- view/tpl/api_status_xml.tpl | 89 +++--- view/tpl/api_test_xml.tpl | 7 +- view/tpl/api_timeline_atom.tpl | 101 ++++--- view/tpl/api_timeline_rss.tpl | 33 ++- view/tpl/api_timeline_xml.tpl | 41 +-- view/tpl/api_user_xml.tpl | 93 +++--- view/tpl/apps.tpl | 13 +- view/tpl/atom_feed.tpl | 29 +- view/tpl/atom_feed_dfrn.tpl | 29 +- view/tpl/birthdays_reminder.tpl | 19 +- view/tpl/build_query.tpl | 45 +-- view/tpl/categories_widget.tpl | 17 +- view/tpl/channel.tpl | 23 +- view/tpl/channel_import.tpl | 29 +- view/tpl/channels.tpl | 33 ++- view/tpl/chanview.tpl | 9 +- view/tpl/comment_item.tpl | 93 +++--- view/tpl/common_friends.tpl | 11 +- view/tpl/common_tabs.tpl | 11 +- view/tpl/contact_block.tpl | 19 +- view/tpl/contact_head.tpl | 11 +- view/tpl/contact_slider.tpl | 9 +- view/tpl/contact_template.tpl | 11 +- view/tpl/contacts-template.tpl | 27 +- view/tpl/conv.tpl | 25 +- view/tpl/conv_frame.tpl | 15 +- view/tpl/conv_item.tpl | 163 ++++++----- view/tpl/conversation.tpl | 33 ++- view/tpl/convobj.tpl | 11 +- view/tpl/crepair.tpl | 45 +-- view/tpl/cropbody.tpl | 19 +- view/tpl/crophead.tpl | 5 + view/tpl/delegate.tpl | 57 ++-- view/tpl/directory_header.tpl | 19 +- view/tpl/direntry.tpl | 17 +- view/tpl/display-head.tpl | 5 + view/tpl/edpost_head.tpl | 7 +- view/tpl/email_notify_html.tpl | 27 +- view/tpl/email_notify_text.tpl | 19 +- view/tpl/event.tpl | 17 +- view/tpl/event_form.tpl | 47 +-- view/tpl/event_head.tpl | 17 +- view/tpl/events-js.tpl | 11 +- view/tpl/events_reminder.tpl | 19 +- view/tpl/failed_updates.tpl | 23 +- view/tpl/field.tpl | 11 +- view/tpl/field_acheckbox.tpl | 13 +- view/tpl/field_checkbox.tpl | 11 +- view/tpl/field_combobox.tpl | 27 +- view/tpl/field_custom.tpl | 11 +- view/tpl/field_input.tpl | 13 +- view/tpl/field_intcheckbox.tpl | 11 +- view/tpl/field_password.tpl | 11 +- view/tpl/field_radio.tpl | 11 +- view/tpl/field_richtext.tpl | 11 +- view/tpl/field_select.tpl | 13 +- view/tpl/field_select_raw.tpl | 13 +- view/tpl/field_textarea.tpl | 11 +- view/tpl/field_themeselect.tpl | 15 +- view/tpl/field_yesno.tpl | 17 +- view/tpl/fileas_widget.tpl | 17 +- view/tpl/filebrowser.tpl | 21 +- view/tpl/filer_dialog.tpl | 9 +- view/tpl/follow.tpl | 11 +- view/tpl/generic_links_widget.tpl | 17 +- view/tpl/group_drop.tpl | 11 +- view/tpl/group_edit.tpl | 25 +- view/tpl/group_selection.tpl | 13 +- view/tpl/group_side.tpl | 37 ++- view/tpl/groupeditor.tpl | 13 +- view/tpl/head.tpl | 23 +- view/tpl/hide_comments.tpl | 9 +- view/tpl/install.tpl | 17 +- view/tpl/install_checks.tpl | 39 +-- view/tpl/install_db.tpl | 35 ++- view/tpl/install_settings.tpl | 35 ++- view/tpl/intros.tpl | 27 +- view/tpl/intros_header.tpl | 7 +- view/tpl/invite.tpl | 17 +- view/tpl/jot-header.tpl | 41 +-- view/tpl/jot.tpl | 87 +++--- view/tpl/jot_geotag.tpl | 5 + view/tpl/js_strings.tpl | 53 ++-- view/tpl/lang_selector.tpl | 13 +- view/tpl/like_noshare.tpl | 13 +- view/tpl/login.tpl | 27 +- view/tpl/logout.tpl | 9 +- view/tpl/lostpass.tpl | 13 +- view/tpl/mail_conv.tpl | 17 +- view/tpl/mail_display.tpl | 21 +- view/tpl/mail_head.tpl | 9 +- view/tpl/mail_list.tpl | 15 +- view/tpl/main_slider.tpl | 9 +- view/tpl/match.tpl | 17 +- view/tpl/message_side.tpl | 13 +- view/tpl/micropro_img.tpl | 7 +- view/tpl/micropro_txt.tpl | 7 +- view/tpl/mood_content.tpl | 19 +- view/tpl/msg-header.tpl | 15 +- view/tpl/nav.tpl | 165 ++++++----- view/tpl/netfriend.tpl | 15 +- view/tpl/new_channel.tpl | 25 +- view/tpl/nogroup-template.tpl | 15 +- view/tpl/notifications.tpl | 11 +- view/tpl/notifications_comments_item.tpl | 7 +- view/tpl/notifications_dislikes_item.tpl | 7 +- view/tpl/notifications_friends_item.tpl | 7 +- view/tpl/notifications_likes_item.tpl | 7 +- view/tpl/notifications_posts_item.tpl | 7 +- view/tpl/notify.tpl | 7 +- view/tpl/oauth_authorize.tpl | 15 +- view/tpl/oauth_authorize_done.tpl | 11 +- view/tpl/oembed_video.tpl | 11 +- view/tpl/oexchange_xrd.tpl | 13 +- view/tpl/opensearch.tpl | 17 +- view/tpl/page_display.tpl | 13 +- view/tpl/peoplefind.tpl | 23 +- view/tpl/photo_album.tpl | 13 +- view/tpl/photo_albums.tpl | 23 +- view/tpl/photo_drop.tpl | 9 +- view/tpl/photo_edit.tpl | 35 ++- view/tpl/photo_item.tpl | 31 +- view/tpl/photo_top.tpl | 13 +- view/tpl/photo_view.tpl | 51 ++-- view/tpl/photos_recent.tpl | 19 +- view/tpl/photos_upload.tpl | 27 +- view/tpl/poco_entry_xml.tpl | 15 +- view/tpl/poco_xml.tpl | 29 +- view/tpl/poke_content.tpl | 31 +- view/tpl/posted_date_widget.tpl | 15 +- view/tpl/profed_head.tpl | 11 +- view/tpl/profile_advanced.tpl | 187 ++++++------ view/tpl/profile_edit.tpl | 165 ++++++----- view/tpl/profile_edlink.tpl | 7 +- view/tpl/profile_entry.tpl | 11 +- view/tpl/profile_listing_header.tpl | 11 +- view/tpl/profile_photo.tpl | 23 +- view/tpl/profile_vcard.tpl | 51 ++-- view/tpl/prv_message.tpl | 39 +-- view/tpl/pwdreset.tpl | 17 +- view/tpl/register.tpl | 45 +-- view/tpl/remote_friends_common.tpl | 21 +- view/tpl/removeme.tpl | 17 +- view/tpl/rmagic.tpl | 11 +- view/tpl/saved_searches_aside.tpl | 17 +- view/tpl/search_item.tpl | 73 ++--- view/tpl/settings.tpl | 91 +++--- view/tpl/settings_account.tpl | 23 +- view/tpl/settings_addons.tpl | 11 +- view/tpl/settings_connectors.tpl | 11 +- view/tpl/settings_display.tpl | 27 +- view/tpl/settings_features.tpl | 23 +- view/tpl/settings_nick_set.tpl | 7 +- view/tpl/settings_oauth.tpl | 37 ++- view/tpl/settings_oauth_edit.tpl | 23 +- view/tpl/siteinfo.tpl | 31 +- view/tpl/smarty3/404.tpl | 6 - view/tpl/smarty3/abook_edit.tpl | 79 ----- view/tpl/smarty3/acl_selector.tpl | 33 --- view/tpl/smarty3/admin_aside.tpl | 47 --- view/tpl/smarty3/admin_logs.tpl | 24 -- view/tpl/smarty3/admin_plugins.tpl | 20 -- view/tpl/smarty3/admin_plugins_details.tpl | 41 --- view/tpl/smarty3/admin_site.tpl | 89 ------ view/tpl/smarty3/admin_summary.tpl | 45 --- view/tpl/smarty3/admin_users.tpl | 92 ------ view/tpl/smarty3/album_edit.tpl | 20 -- view/tpl/smarty3/api_config_xml.tpl | 71 ----- view/tpl/smarty3/api_friends_xml.tpl | 10 - view/tpl/smarty3/api_ratelimit_xml.tpl | 11 - view/tpl/smarty3/api_status_xml.tpl | 51 ---- view/tpl/smarty3/api_test_xml.tpl | 6 - view/tpl/smarty3/api_timeline_atom.tpl | 95 ------ view/tpl/smarty3/api_timeline_rss.tpl | 31 -- view/tpl/smarty3/api_timeline_xml.tpl | 25 -- view/tpl/smarty3/api_user_xml.tpl | 51 ---- view/tpl/smarty3/apps.tpl | 12 - view/tpl/smarty3/atom_feed.tpl | 34 --- view/tpl/smarty3/atom_feed_dfrn.tpl | 34 --- view/tpl/smarty3/birthdays_reminder.tpl | 15 - view/tpl/smarty3/build_query.tpl | 57 ---- view/tpl/smarty3/categories_widget.tpl | 17 -- view/tpl/smarty3/channel.tpl | 17 -- view/tpl/smarty3/channel_import.tpl | 40 --- view/tpl/smarty3/channels.tpl | 27 -- view/tpl/smarty3/chanview.tpl | 7 - view/tpl/smarty3/comment_item.tpl | 72 ----- view/tpl/smarty3/common_friends.tpl | 17 -- view/tpl/smarty3/common_tabs.tpl | 11 - view/tpl/smarty3/contact_block.tpl | 17 -- view/tpl/smarty3/contact_head.tpl | 35 --- view/tpl/smarty3/contact_slider.tpl | 9 - view/tpl/smarty3/contact_template.tpl | 14 - view/tpl/smarty3/contacts-template.tpl | 31 -- view/tpl/smarty3/conv.tpl | 22 -- view/tpl/smarty3/conv_frame.tpl | 19 -- view/tpl/smarty3/conv_item.tpl | 120 -------- view/tpl/smarty3/conversation.tpl | 33 --- view/tpl/smarty3/convobj.tpl | 9 - view/tpl/smarty3/crepair.tpl | 51 ---- view/tpl/smarty3/cropbody.tpl | 63 ---- view/tpl/smarty3/crophead.tpl | 9 - view/tpl/smarty3/delegate.tpl | 62 ---- view/tpl/smarty3/directory_header.tpl | 21 -- view/tpl/smarty3/direntry.tpl | 16 - view/tpl/smarty3/display-head.tpl | 13 - view/tpl/smarty3/edpost_head.tpl | 6 - view/tpl/smarty3/email_notify_html.tpl | 32 -- view/tpl/smarty3/email_notify_text.tpl | 18 -- view/tpl/smarty3/event.tpl | 15 - view/tpl/smarty3/event_form.tpl | 54 ---- view/tpl/smarty3/event_head.tpl | 144 --------- view/tpl/smarty3/events-js.tpl | 11 - view/tpl/smarty3/events_reminder.tpl | 15 - view/tpl/smarty3/failed_updates.tpl | 22 -- view/tpl/smarty3/field.tpl | 9 - view/tpl/smarty3/field_acheckbox.tpl | 12 - view/tpl/smarty3/field_checkbox.tpl | 11 - view/tpl/smarty3/field_combobox.tpl | 23 -- view/tpl/smarty3/field_custom.tpl | 11 - view/tpl/smarty3/field_input.tpl | 12 - view/tpl/smarty3/field_intcheckbox.tpl | 11 - view/tpl/smarty3/field_password.tpl | 11 - view/tpl/smarty3/field_radio.tpl | 11 - view/tpl/smarty3/field_richtext.tpl | 11 - view/tpl/smarty3/field_select.tpl | 13 - view/tpl/smarty3/field_select_raw.tpl | 13 - view/tpl/smarty3/field_textarea.tpl | 11 - view/tpl/smarty3/field_themeselect.tpl | 14 - view/tpl/smarty3/field_yesno.tpl | 18 -- view/tpl/smarty3/fileas_widget.tpl | 17 -- view/tpl/smarty3/filebrowser.tpl | 89 ------ view/tpl/smarty3/filer_dialog.tpl | 9 - view/tpl/smarty3/follow.tpl | 13 - view/tpl/smarty3/generic_links_widget.tpl | 16 - view/tpl/smarty3/group_drop.tpl | 14 - view/tpl/smarty3/group_edit.tpl | 28 -- view/tpl/smarty3/group_selection.tpl | 13 - view/tpl/smarty3/group_side.tpl | 38 --- view/tpl/smarty3/groupeditor.tpl | 21 -- view/tpl/smarty3/head.tpl | 35 --- view/tpl/smarty3/hide_comments.tpl | 9 - view/tpl/smarty3/install.tpl | 15 - view/tpl/smarty3/install_checks.tpl | 29 -- view/tpl/smarty3/install_db.tpl | 35 --- view/tpl/smarty3/install_settings.tpl | 32 -- view/tpl/smarty3/intros.tpl | 23 -- view/tpl/smarty3/intros_header.tpl | 6 - view/tpl/smarty3/invite.tpl | 35 --- view/tpl/smarty3/jot-header.tpl | 305 ------------------- view/tpl/smarty3/jot.tpl | 92 ------ view/tpl/smarty3/jot_geotag.tpl | 13 - view/tpl/smarty3/js_strings.tpl | 39 --- view/tpl/smarty3/lang_selector.tpl | 15 - view/tpl/smarty3/like_noshare.tpl | 10 - view/tpl/smarty3/login.tpl | 36 --- view/tpl/smarty3/logout.tpl | 11 - view/tpl/smarty3/lostpass.tpl | 23 -- view/tpl/smarty3/mail_conv.tpl | 19 -- view/tpl/smarty3/mail_display.tpl | 15 - view/tpl/smarty3/mail_head.tpl | 8 - view/tpl/smarty3/mail_list.tpl | 12 - view/tpl/smarty3/main_slider.tpl | 38 --- view/tpl/smarty3/match.tpl | 21 -- view/tpl/smarty3/message_side.tpl | 15 - view/tpl/smarty3/micropro_img.tpl | 6 - view/tpl/smarty3/micropro_txt.tpl | 6 - view/tpl/smarty3/mood_content.tpl | 25 -- view/tpl/smarty3/msg-header.tpl | 102 ------- view/tpl/smarty3/nav.tpl | 157 ---------- view/tpl/smarty3/netfriend.tpl | 19 -- view/tpl/smarty3/new_channel.tpl | 34 --- view/tpl/smarty3/nogroup-template.tpl | 17 -- view/tpl/smarty3/notifications.tpl | 13 - view/tpl/smarty3/notifications_comments_item.tpl | 8 - view/tpl/smarty3/notifications_dislikes_item.tpl | 8 - view/tpl/smarty3/notifications_friends_item.tpl | 8 - view/tpl/smarty3/notifications_likes_item.tpl | 8 - view/tpl/smarty3/notifications_posts_item.tpl | 8 - view/tpl/smarty3/notify.tpl | 8 - view/tpl/smarty3/oauth_authorize.tpl | 15 - view/tpl/smarty3/oauth_authorize_done.tpl | 9 - view/tpl/smarty3/oembed_video.tpl | 9 - view/tpl/smarty3/oexchange_xrd.tpl | 38 --- view/tpl/smarty3/opensearch.tpl | 18 -- view/tpl/smarty3/page_display.tpl | 12 - view/tpl/smarty3/peoplefind.tpl | 19 -- view/tpl/smarty3/photo_album.tpl | 18 -- view/tpl/smarty3/photo_albums.tpl | 18 -- view/tpl/smarty3/photo_drop.tpl | 9 - view/tpl/smarty3/photo_edit.tpl | 55 ---- view/tpl/smarty3/photo_item.tpl | 27 -- view/tpl/smarty3/photo_top.tpl | 13 - view/tpl/smarty3/photo_view.tpl | 48 --- view/tpl/smarty3/photos_recent.tpl | 16 - view/tpl/smarty3/photos_upload.tpl | 52 ---- view/tpl/smarty3/poco_entry_xml.tpl | 12 - view/tpl/smarty3/poco_xml.tpl | 23 -- view/tpl/smarty3/poke_content.tpl | 37 --- view/tpl/smarty3/posted_date_widget.tpl | 14 - view/tpl/smarty3/profed_head.tpl | 41 --- view/tpl/smarty3/profile_advanced.tpl | 175 ----------- view/tpl/smarty3/profile_edit.tpl | 325 --------------------- view/tpl/smarty3/profile_edlink.tpl | 7 - view/tpl/smarty3/profile_entry.tpl | 16 - view/tpl/smarty3/profile_listing_header.tpl | 13 - view/tpl/smarty3/profile_photo.tpl | 34 --- view/tpl/smarty3/profile_vcard.tpl | 57 ---- view/tpl/smarty3/prv_message.tpl | 44 --- view/tpl/smarty3/pwdreset.tpl | 22 -- view/tpl/smarty3/register.tpl | 50 ---- view/tpl/smarty3/remote_friends_common.tpl | 26 -- view/tpl/smarty3/removeme.tpl | 25 -- view/tpl/smarty3/rmagic.tpl | 16 - view/tpl/smarty3/saved_searches_aside.tpl | 19 -- view/tpl/smarty3/search_item.tpl | 68 ----- view/tpl/smarty3/settings.tpl | 119 -------- view/tpl/smarty3/settings_account.tpl | 33 --- view/tpl/smarty3/settings_addons.tpl | 15 - view/tpl/smarty3/settings_connectors.tpl | 14 - view/tpl/smarty3/settings_display.tpl | 27 -- view/tpl/smarty3/settings_features.tpl | 25 -- view/tpl/smarty3/settings_nick_set.tpl | 10 - view/tpl/smarty3/settings_oauth.tpl | 36 --- view/tpl/smarty3/settings_oauth_edit.tpl | 22 -- view/tpl/smarty3/siteinfo.tpl | 19 -- view/tpl/smarty3/suggest_friends.tpl | 21 -- view/tpl/smarty3/suggest_page.tpl | 14 - view/tpl/smarty3/suggestions.tpl | 26 -- view/tpl/smarty3/threaded_conversation.tpl | 18 -- view/tpl/smarty3/toggle_mobile_footer.tpl | 7 - view/tpl/smarty3/viewcontact_template.tpl | 14 - view/tpl/smarty3/xchan_vcard.tpl | 25 -- view/tpl/smarty3/xrd_host.tpl | 23 -- view/tpl/smarty3/xrd_person.tpl | 34 --- view/tpl/suggest_friends.tpl | 19 +- view/tpl/suggest_page.tpl | 17 +- view/tpl/suggestions.tpl | 27 +- view/tpl/threaded_conversation.tpl | 19 +- view/tpl/toggle_mobile_footer.tpl | 7 +- view/tpl/viewcontact_template.tpl | 15 +- view/tpl/xchan_vcard.tpl | 21 +- view/tpl/xrd_host.tpl | 17 +- view/tpl/xrd_person.tpl | 25 +- 364 files changed, 2868 insertions(+), 7713 deletions(-) create mode 100755 util/precompile_smarty3.php mode change 100644 => 100755 view/theme/redbasic/tpl/basic_theme_settings.tpl delete mode 100644 view/theme/redbasic/tpl/smarty3/basic_theme_settings.tpl delete mode 100644 view/theme/redbasic/tpl/smarty3/theme_settings.tpl mode change 100644 => 100755 view/theme/redbasic/tpl/theme_settings.tpl mode change 100644 => 100755 view/tpl/404.tpl mode change 100644 => 100755 view/tpl/abook_edit.tpl mode change 100644 => 100755 view/tpl/acl_selector.tpl mode change 100644 => 100755 view/tpl/admin_aside.tpl mode change 100644 => 100755 view/tpl/admin_logs.tpl mode change 100644 => 100755 view/tpl/admin_plugins.tpl mode change 100644 => 100755 view/tpl/admin_plugins_details.tpl mode change 100644 => 100755 view/tpl/admin_site.tpl mode change 100644 => 100755 view/tpl/admin_summary.tpl mode change 100644 => 100755 view/tpl/admin_users.tpl mode change 100644 => 100755 view/tpl/album_edit.tpl mode change 100644 => 100755 view/tpl/api_config_xml.tpl mode change 100644 => 100755 view/tpl/api_friends_xml.tpl mode change 100644 => 100755 view/tpl/api_ratelimit_xml.tpl mode change 100644 => 100755 view/tpl/api_status_xml.tpl mode change 100644 => 100755 view/tpl/api_test_xml.tpl mode change 100644 => 100755 view/tpl/api_timeline_atom.tpl mode change 100644 => 100755 view/tpl/api_timeline_rss.tpl mode change 100644 => 100755 view/tpl/api_timeline_xml.tpl mode change 100644 => 100755 view/tpl/api_user_xml.tpl mode change 100644 => 100755 view/tpl/apps.tpl mode change 100644 => 100755 view/tpl/atom_feed.tpl mode change 100644 => 100755 view/tpl/atom_feed_dfrn.tpl mode change 100644 => 100755 view/tpl/birthdays_reminder.tpl mode change 100644 => 100755 view/tpl/build_query.tpl mode change 100644 => 100755 view/tpl/categories_widget.tpl mode change 100644 => 100755 view/tpl/channel.tpl mode change 100644 => 100755 view/tpl/channel_import.tpl mode change 100644 => 100755 view/tpl/channels.tpl mode change 100644 => 100755 view/tpl/chanview.tpl mode change 100644 => 100755 view/tpl/comment_item.tpl mode change 100644 => 100755 view/tpl/common_friends.tpl mode change 100644 => 100755 view/tpl/common_tabs.tpl mode change 100644 => 100755 view/tpl/contact_block.tpl mode change 100644 => 100755 view/tpl/contact_head.tpl mode change 100644 => 100755 view/tpl/contact_slider.tpl mode change 100644 => 100755 view/tpl/contact_template.tpl mode change 100644 => 100755 view/tpl/contacts-template.tpl mode change 100644 => 100755 view/tpl/conv.tpl mode change 100644 => 100755 view/tpl/conv_frame.tpl mode change 100644 => 100755 view/tpl/conv_item.tpl mode change 100644 => 100755 view/tpl/conversation.tpl mode change 100644 => 100755 view/tpl/convobj.tpl mode change 100644 => 100755 view/tpl/crepair.tpl mode change 100644 => 100755 view/tpl/cropbody.tpl mode change 100644 => 100755 view/tpl/crophead.tpl mode change 100644 => 100755 view/tpl/delegate.tpl mode change 100644 => 100755 view/tpl/directory_header.tpl mode change 100644 => 100755 view/tpl/direntry.tpl mode change 100644 => 100755 view/tpl/display-head.tpl mode change 100644 => 100755 view/tpl/edpost_head.tpl mode change 100644 => 100755 view/tpl/email_notify_html.tpl mode change 100644 => 100755 view/tpl/email_notify_text.tpl mode change 100644 => 100755 view/tpl/event.tpl mode change 100644 => 100755 view/tpl/event_form.tpl mode change 100644 => 100755 view/tpl/event_head.tpl mode change 100644 => 100755 view/tpl/events-js.tpl mode change 100644 => 100755 view/tpl/events_reminder.tpl mode change 100644 => 100755 view/tpl/failed_updates.tpl mode change 100644 => 100755 view/tpl/field.tpl mode change 100644 => 100755 view/tpl/field_acheckbox.tpl mode change 100644 => 100755 view/tpl/field_checkbox.tpl mode change 100644 => 100755 view/tpl/field_combobox.tpl mode change 100644 => 100755 view/tpl/field_custom.tpl mode change 100644 => 100755 view/tpl/field_input.tpl mode change 100644 => 100755 view/tpl/field_intcheckbox.tpl mode change 100644 => 100755 view/tpl/field_password.tpl mode change 100644 => 100755 view/tpl/field_radio.tpl mode change 100644 => 100755 view/tpl/field_richtext.tpl mode change 100644 => 100755 view/tpl/field_select.tpl mode change 100644 => 100755 view/tpl/field_select_raw.tpl mode change 100644 => 100755 view/tpl/field_textarea.tpl mode change 100644 => 100755 view/tpl/field_themeselect.tpl mode change 100644 => 100755 view/tpl/field_yesno.tpl mode change 100644 => 100755 view/tpl/fileas_widget.tpl mode change 100644 => 100755 view/tpl/filebrowser.tpl mode change 100644 => 100755 view/tpl/filer_dialog.tpl mode change 100644 => 100755 view/tpl/follow.tpl mode change 100644 => 100755 view/tpl/generic_links_widget.tpl mode change 100644 => 100755 view/tpl/group_drop.tpl mode change 100644 => 100755 view/tpl/group_edit.tpl mode change 100644 => 100755 view/tpl/group_selection.tpl mode change 100644 => 100755 view/tpl/group_side.tpl mode change 100644 => 100755 view/tpl/groupeditor.tpl mode change 100644 => 100755 view/tpl/head.tpl mode change 100644 => 100755 view/tpl/hide_comments.tpl mode change 100644 => 100755 view/tpl/install.tpl mode change 100644 => 100755 view/tpl/install_checks.tpl mode change 100644 => 100755 view/tpl/install_db.tpl mode change 100644 => 100755 view/tpl/install_settings.tpl mode change 100644 => 100755 view/tpl/intros.tpl mode change 100644 => 100755 view/tpl/intros_header.tpl mode change 100644 => 100755 view/tpl/invite.tpl mode change 100644 => 100755 view/tpl/jot-header.tpl mode change 100644 => 100755 view/tpl/jot.tpl mode change 100644 => 100755 view/tpl/jot_geotag.tpl mode change 100644 => 100755 view/tpl/js_strings.tpl mode change 100644 => 100755 view/tpl/lang_selector.tpl mode change 100644 => 100755 view/tpl/like_noshare.tpl mode change 100644 => 100755 view/tpl/login.tpl mode change 100644 => 100755 view/tpl/logout.tpl mode change 100644 => 100755 view/tpl/lostpass.tpl mode change 100644 => 100755 view/tpl/mail_conv.tpl mode change 100644 => 100755 view/tpl/mail_display.tpl mode change 100644 => 100755 view/tpl/mail_head.tpl mode change 100644 => 100755 view/tpl/mail_list.tpl mode change 100644 => 100755 view/tpl/main_slider.tpl mode change 100644 => 100755 view/tpl/match.tpl mode change 100644 => 100755 view/tpl/message_side.tpl mode change 100644 => 100755 view/tpl/micropro_img.tpl mode change 100644 => 100755 view/tpl/micropro_txt.tpl mode change 100644 => 100755 view/tpl/mood_content.tpl mode change 100644 => 100755 view/tpl/msg-header.tpl mode change 100644 => 100755 view/tpl/nav.tpl mode change 100644 => 100755 view/tpl/netfriend.tpl mode change 100644 => 100755 view/tpl/new_channel.tpl mode change 100644 => 100755 view/tpl/nogroup-template.tpl mode change 100644 => 100755 view/tpl/notifications.tpl mode change 100644 => 100755 view/tpl/notifications_comments_item.tpl mode change 100644 => 100755 view/tpl/notifications_dislikes_item.tpl mode change 100644 => 100755 view/tpl/notifications_friends_item.tpl mode change 100644 => 100755 view/tpl/notifications_likes_item.tpl mode change 100644 => 100755 view/tpl/notifications_posts_item.tpl mode change 100644 => 100755 view/tpl/notify.tpl mode change 100644 => 100755 view/tpl/oauth_authorize.tpl mode change 100644 => 100755 view/tpl/oauth_authorize_done.tpl mode change 100644 => 100755 view/tpl/oexchange_xrd.tpl mode change 100644 => 100755 view/tpl/opensearch.tpl mode change 100644 => 100755 view/tpl/page_display.tpl mode change 100644 => 100755 view/tpl/peoplefind.tpl mode change 100644 => 100755 view/tpl/photo_album.tpl mode change 100644 => 100755 view/tpl/photo_albums.tpl mode change 100644 => 100755 view/tpl/photo_drop.tpl mode change 100644 => 100755 view/tpl/photo_edit.tpl mode change 100644 => 100755 view/tpl/photo_item.tpl mode change 100644 => 100755 view/tpl/photo_top.tpl mode change 100644 => 100755 view/tpl/photo_view.tpl mode change 100644 => 100755 view/tpl/photos_recent.tpl mode change 100644 => 100755 view/tpl/photos_upload.tpl mode change 100644 => 100755 view/tpl/poco_entry_xml.tpl mode change 100644 => 100755 view/tpl/poco_xml.tpl mode change 100644 => 100755 view/tpl/poke_content.tpl mode change 100644 => 100755 view/tpl/posted_date_widget.tpl mode change 100644 => 100755 view/tpl/profed_head.tpl mode change 100644 => 100755 view/tpl/profile_advanced.tpl mode change 100644 => 100755 view/tpl/profile_edit.tpl mode change 100644 => 100755 view/tpl/profile_edlink.tpl mode change 100644 => 100755 view/tpl/profile_entry.tpl mode change 100644 => 100755 view/tpl/profile_listing_header.tpl mode change 100644 => 100755 view/tpl/profile_photo.tpl mode change 100644 => 100755 view/tpl/profile_vcard.tpl mode change 100644 => 100755 view/tpl/prv_message.tpl mode change 100644 => 100755 view/tpl/pwdreset.tpl mode change 100644 => 100755 view/tpl/register.tpl mode change 100644 => 100755 view/tpl/remote_friends_common.tpl mode change 100644 => 100755 view/tpl/removeme.tpl mode change 100644 => 100755 view/tpl/rmagic.tpl mode change 100644 => 100755 view/tpl/saved_searches_aside.tpl mode change 100644 => 100755 view/tpl/search_item.tpl mode change 100644 => 100755 view/tpl/settings.tpl mode change 100644 => 100755 view/tpl/settings_account.tpl mode change 100644 => 100755 view/tpl/settings_addons.tpl mode change 100644 => 100755 view/tpl/settings_connectors.tpl mode change 100644 => 100755 view/tpl/settings_display.tpl mode change 100644 => 100755 view/tpl/settings_features.tpl mode change 100644 => 100755 view/tpl/settings_nick_set.tpl mode change 100644 => 100755 view/tpl/settings_oauth.tpl mode change 100644 => 100755 view/tpl/settings_oauth_edit.tpl mode change 100644 => 100755 view/tpl/siteinfo.tpl delete mode 100644 view/tpl/smarty3/404.tpl delete mode 100644 view/tpl/smarty3/abook_edit.tpl delete mode 100644 view/tpl/smarty3/acl_selector.tpl delete mode 100644 view/tpl/smarty3/admin_aside.tpl delete mode 100644 view/tpl/smarty3/admin_logs.tpl delete mode 100644 view/tpl/smarty3/admin_plugins.tpl delete mode 100644 view/tpl/smarty3/admin_plugins_details.tpl delete mode 100644 view/tpl/smarty3/admin_site.tpl delete mode 100644 view/tpl/smarty3/admin_summary.tpl delete mode 100644 view/tpl/smarty3/admin_users.tpl delete mode 100644 view/tpl/smarty3/album_edit.tpl delete mode 100644 view/tpl/smarty3/api_config_xml.tpl delete mode 100644 view/tpl/smarty3/api_friends_xml.tpl delete mode 100644 view/tpl/smarty3/api_ratelimit_xml.tpl delete mode 100644 view/tpl/smarty3/api_status_xml.tpl delete mode 100644 view/tpl/smarty3/api_test_xml.tpl delete mode 100644 view/tpl/smarty3/api_timeline_atom.tpl delete mode 100644 view/tpl/smarty3/api_timeline_rss.tpl delete mode 100644 view/tpl/smarty3/api_timeline_xml.tpl delete mode 100644 view/tpl/smarty3/api_user_xml.tpl delete mode 100644 view/tpl/smarty3/apps.tpl delete mode 100644 view/tpl/smarty3/atom_feed.tpl delete mode 100644 view/tpl/smarty3/atom_feed_dfrn.tpl delete mode 100644 view/tpl/smarty3/birthdays_reminder.tpl delete mode 100644 view/tpl/smarty3/build_query.tpl delete mode 100644 view/tpl/smarty3/categories_widget.tpl delete mode 100644 view/tpl/smarty3/channel.tpl delete mode 100644 view/tpl/smarty3/channel_import.tpl delete mode 100644 view/tpl/smarty3/channels.tpl delete mode 100644 view/tpl/smarty3/chanview.tpl delete mode 100644 view/tpl/smarty3/comment_item.tpl delete mode 100644 view/tpl/smarty3/common_friends.tpl delete mode 100644 view/tpl/smarty3/common_tabs.tpl delete mode 100644 view/tpl/smarty3/contact_block.tpl delete mode 100644 view/tpl/smarty3/contact_head.tpl delete mode 100644 view/tpl/smarty3/contact_slider.tpl delete mode 100644 view/tpl/smarty3/contact_template.tpl delete mode 100644 view/tpl/smarty3/contacts-template.tpl delete mode 100644 view/tpl/smarty3/conv.tpl delete mode 100644 view/tpl/smarty3/conv_frame.tpl delete mode 100644 view/tpl/smarty3/conv_item.tpl delete mode 100644 view/tpl/smarty3/conversation.tpl delete mode 100644 view/tpl/smarty3/convobj.tpl delete mode 100644 view/tpl/smarty3/crepair.tpl delete mode 100644 view/tpl/smarty3/cropbody.tpl delete mode 100644 view/tpl/smarty3/crophead.tpl delete mode 100644 view/tpl/smarty3/delegate.tpl delete mode 100644 view/tpl/smarty3/directory_header.tpl delete mode 100644 view/tpl/smarty3/direntry.tpl delete mode 100644 view/tpl/smarty3/display-head.tpl delete mode 100644 view/tpl/smarty3/edpost_head.tpl delete mode 100644 view/tpl/smarty3/email_notify_html.tpl delete mode 100644 view/tpl/smarty3/email_notify_text.tpl delete mode 100644 view/tpl/smarty3/event.tpl delete mode 100644 view/tpl/smarty3/event_form.tpl delete mode 100644 view/tpl/smarty3/event_head.tpl delete mode 100644 view/tpl/smarty3/events-js.tpl delete mode 100644 view/tpl/smarty3/events_reminder.tpl delete mode 100644 view/tpl/smarty3/failed_updates.tpl delete mode 100644 view/tpl/smarty3/field.tpl delete mode 100644 view/tpl/smarty3/field_acheckbox.tpl delete mode 100644 view/tpl/smarty3/field_checkbox.tpl delete mode 100644 view/tpl/smarty3/field_combobox.tpl delete mode 100644 view/tpl/smarty3/field_custom.tpl delete mode 100644 view/tpl/smarty3/field_input.tpl delete mode 100644 view/tpl/smarty3/field_intcheckbox.tpl delete mode 100644 view/tpl/smarty3/field_password.tpl delete mode 100644 view/tpl/smarty3/field_radio.tpl delete mode 100644 view/tpl/smarty3/field_richtext.tpl delete mode 100644 view/tpl/smarty3/field_select.tpl delete mode 100644 view/tpl/smarty3/field_select_raw.tpl delete mode 100644 view/tpl/smarty3/field_textarea.tpl delete mode 100644 view/tpl/smarty3/field_themeselect.tpl delete mode 100644 view/tpl/smarty3/field_yesno.tpl delete mode 100644 view/tpl/smarty3/fileas_widget.tpl delete mode 100644 view/tpl/smarty3/filebrowser.tpl delete mode 100644 view/tpl/smarty3/filer_dialog.tpl delete mode 100644 view/tpl/smarty3/follow.tpl delete mode 100644 view/tpl/smarty3/generic_links_widget.tpl delete mode 100644 view/tpl/smarty3/group_drop.tpl delete mode 100644 view/tpl/smarty3/group_edit.tpl delete mode 100644 view/tpl/smarty3/group_selection.tpl delete mode 100644 view/tpl/smarty3/group_side.tpl delete mode 100644 view/tpl/smarty3/groupeditor.tpl delete mode 100644 view/tpl/smarty3/head.tpl delete mode 100644 view/tpl/smarty3/hide_comments.tpl delete mode 100644 view/tpl/smarty3/install.tpl delete mode 100644 view/tpl/smarty3/install_checks.tpl delete mode 100644 view/tpl/smarty3/install_db.tpl delete mode 100644 view/tpl/smarty3/install_settings.tpl delete mode 100644 view/tpl/smarty3/intros.tpl delete mode 100644 view/tpl/smarty3/intros_header.tpl delete mode 100644 view/tpl/smarty3/invite.tpl delete mode 100644 view/tpl/smarty3/jot-header.tpl delete mode 100644 view/tpl/smarty3/jot.tpl delete mode 100644 view/tpl/smarty3/jot_geotag.tpl delete mode 100644 view/tpl/smarty3/js_strings.tpl delete mode 100644 view/tpl/smarty3/lang_selector.tpl delete mode 100644 view/tpl/smarty3/like_noshare.tpl delete mode 100644 view/tpl/smarty3/login.tpl delete mode 100644 view/tpl/smarty3/logout.tpl delete mode 100644 view/tpl/smarty3/lostpass.tpl delete mode 100644 view/tpl/smarty3/mail_conv.tpl delete mode 100644 view/tpl/smarty3/mail_display.tpl delete mode 100644 view/tpl/smarty3/mail_head.tpl delete mode 100644 view/tpl/smarty3/mail_list.tpl delete mode 100644 view/tpl/smarty3/main_slider.tpl delete mode 100644 view/tpl/smarty3/match.tpl delete mode 100644 view/tpl/smarty3/message_side.tpl delete mode 100644 view/tpl/smarty3/micropro_img.tpl delete mode 100644 view/tpl/smarty3/micropro_txt.tpl delete mode 100644 view/tpl/smarty3/mood_content.tpl delete mode 100644 view/tpl/smarty3/msg-header.tpl delete mode 100644 view/tpl/smarty3/nav.tpl delete mode 100644 view/tpl/smarty3/netfriend.tpl delete mode 100644 view/tpl/smarty3/new_channel.tpl delete mode 100644 view/tpl/smarty3/nogroup-template.tpl delete mode 100644 view/tpl/smarty3/notifications.tpl delete mode 100644 view/tpl/smarty3/notifications_comments_item.tpl delete mode 100644 view/tpl/smarty3/notifications_dislikes_item.tpl delete mode 100644 view/tpl/smarty3/notifications_friends_item.tpl delete mode 100644 view/tpl/smarty3/notifications_likes_item.tpl delete mode 100644 view/tpl/smarty3/notifications_posts_item.tpl delete mode 100644 view/tpl/smarty3/notify.tpl delete mode 100644 view/tpl/smarty3/oauth_authorize.tpl delete mode 100644 view/tpl/smarty3/oauth_authorize_done.tpl delete mode 100644 view/tpl/smarty3/oembed_video.tpl delete mode 100644 view/tpl/smarty3/oexchange_xrd.tpl delete mode 100644 view/tpl/smarty3/opensearch.tpl delete mode 100644 view/tpl/smarty3/page_display.tpl delete mode 100644 view/tpl/smarty3/peoplefind.tpl delete mode 100644 view/tpl/smarty3/photo_album.tpl delete mode 100644 view/tpl/smarty3/photo_albums.tpl delete mode 100644 view/tpl/smarty3/photo_drop.tpl delete mode 100644 view/tpl/smarty3/photo_edit.tpl delete mode 100644 view/tpl/smarty3/photo_item.tpl delete mode 100644 view/tpl/smarty3/photo_top.tpl delete mode 100644 view/tpl/smarty3/photo_view.tpl delete mode 100644 view/tpl/smarty3/photos_recent.tpl delete mode 100644 view/tpl/smarty3/photos_upload.tpl delete mode 100644 view/tpl/smarty3/poco_entry_xml.tpl delete mode 100644 view/tpl/smarty3/poco_xml.tpl delete mode 100644 view/tpl/smarty3/poke_content.tpl delete mode 100644 view/tpl/smarty3/posted_date_widget.tpl delete mode 100644 view/tpl/smarty3/profed_head.tpl delete mode 100644 view/tpl/smarty3/profile_advanced.tpl delete mode 100644 view/tpl/smarty3/profile_edit.tpl delete mode 100644 view/tpl/smarty3/profile_edlink.tpl delete mode 100644 view/tpl/smarty3/profile_entry.tpl delete mode 100644 view/tpl/smarty3/profile_listing_header.tpl delete mode 100644 view/tpl/smarty3/profile_photo.tpl delete mode 100644 view/tpl/smarty3/profile_vcard.tpl delete mode 100644 view/tpl/smarty3/prv_message.tpl delete mode 100644 view/tpl/smarty3/pwdreset.tpl delete mode 100644 view/tpl/smarty3/register.tpl delete mode 100644 view/tpl/smarty3/remote_friends_common.tpl delete mode 100644 view/tpl/smarty3/removeme.tpl delete mode 100644 view/tpl/smarty3/rmagic.tpl delete mode 100644 view/tpl/smarty3/saved_searches_aside.tpl delete mode 100644 view/tpl/smarty3/search_item.tpl delete mode 100644 view/tpl/smarty3/settings.tpl delete mode 100644 view/tpl/smarty3/settings_account.tpl delete mode 100644 view/tpl/smarty3/settings_addons.tpl delete mode 100644 view/tpl/smarty3/settings_connectors.tpl delete mode 100644 view/tpl/smarty3/settings_display.tpl delete mode 100644 view/tpl/smarty3/settings_features.tpl delete mode 100644 view/tpl/smarty3/settings_nick_set.tpl delete mode 100644 view/tpl/smarty3/settings_oauth.tpl delete mode 100644 view/tpl/smarty3/settings_oauth_edit.tpl delete mode 100644 view/tpl/smarty3/siteinfo.tpl delete mode 100644 view/tpl/smarty3/suggest_friends.tpl delete mode 100644 view/tpl/smarty3/suggest_page.tpl delete mode 100644 view/tpl/smarty3/suggestions.tpl delete mode 100644 view/tpl/smarty3/threaded_conversation.tpl delete mode 100644 view/tpl/smarty3/toggle_mobile_footer.tpl delete mode 100644 view/tpl/smarty3/viewcontact_template.tpl delete mode 100644 view/tpl/smarty3/xchan_vcard.tpl delete mode 100644 view/tpl/smarty3/xrd_host.tpl delete mode 100644 view/tpl/smarty3/xrd_person.tpl mode change 100644 => 100755 view/tpl/suggest_friends.tpl mode change 100644 => 100755 view/tpl/suggest_page.tpl mode change 100644 => 100755 view/tpl/suggestions.tpl mode change 100644 => 100755 view/tpl/threaded_conversation.tpl mode change 100644 => 100755 view/tpl/toggle_mobile_footer.tpl mode change 100644 => 100755 view/tpl/viewcontact_template.tpl mode change 100644 => 100755 view/tpl/xchan_vcard.tpl mode change 100644 => 100755 view/tpl/xrd_host.tpl mode change 100644 => 100755 view/tpl/xrd_person.tpl diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php index 5f247a528..a4675acd4 100755 --- a/include/friendica_smarty.php +++ b/include/friendica_smarty.php @@ -15,10 +15,10 @@ class FriendicaSmarty extends Smarty { // 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/tpl/smarty3/"); + $template_dirs = array('theme' => "view/theme/$theme/tpl/"); if( x($a->theme_info,"extends") ) - $template_dirs = $template_dirs + array('extends' => "view/theme/".$a->theme_info["extends"]."/tpl/smarty3/"); - $template_dirs = $template_dirs + array('base' => 'view/tpl/smarty3/'); + $template_dirs = $template_dirs + array('extends' => "view/theme/".$a->theme_info["extends"]."/tpl/"); + $template_dirs = $template_dirs + array('base' => 'view/tpl/'); $this->setTemplateDir($template_dirs); $this->setCompileDir('view/tpl/smarty3/compiled/'); @@ -68,7 +68,7 @@ class FriendicaSmartyEngine implements ITemplateEngine { } public function get_markup_template($file, $root=''){ - $template_file = theme_include('smarty3/'.$file, $root); + $template_file = theme_include($file, $root); if($template_file) { $template = new FriendicaSmarty(); $template->filename = $template_file; diff --git a/util/precompile_smarty3.php b/util/precompile_smarty3.php new file mode 100755 index 000000000..65cb760ef --- /dev/null +++ b/util/precompile_smarty3.php @@ -0,0 +1,27 @@ +setTemplateDir($folders); + +$s->setCompileDir('view/tpl/smarty3/compiled/'); +$s->setConfigDir('view/tpl/smarty3/config/'); +$s->setCacheDir('view/tpl/smarty3/cache/'); + +$s->left_delimiter = "{{"; +$s->right_delimiter = "}}"; + +$s->compileAllTemplates('.tpl',true); \ No newline at end of file diff --git a/view/theme/redbasic/tpl/basic_theme_settings.tpl b/view/theme/redbasic/tpl/basic_theme_settings.tpl old mode 100644 new mode 100755 index 6f71a6a1a..33a34b292 --- a/view/theme/redbasic/tpl/basic_theme_settings.tpl +++ b/view/theme/redbasic/tpl/basic_theme_settings.tpl @@ -1,9 +1,14 @@ -{{inc field_select.tpl with $field=$font_size}}{{endinc}} +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} +{{include file="field_select.tpl" field=$font_size}} -{{inc field_select.tpl with $field=$line_height}}{{endinc}} +{{include file="field_select.tpl" field=$line_height}} -{{inc field_select.tpl with $field=$colour_scheme}}{{endinc}} +{{include file="field_select.tpl" field=$colour_scheme}}
- +
diff --git a/view/theme/redbasic/tpl/smarty3/basic_theme_settings.tpl b/view/theme/redbasic/tpl/smarty3/basic_theme_settings.tpl deleted file mode 100644 index 33a34b292..000000000 --- a/view/theme/redbasic/tpl/smarty3/basic_theme_settings.tpl +++ /dev/null @@ -1,14 +0,0 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} -{{include file="field_select.tpl" field=$font_size}} - -{{include file="field_select.tpl" field=$line_height}} - -{{include file="field_select.tpl" field=$colour_scheme}} - -
- -
diff --git a/view/theme/redbasic/tpl/smarty3/theme_settings.tpl b/view/theme/redbasic/tpl/smarty3/theme_settings.tpl deleted file mode 100644 index f8d9f223c..000000000 --- a/view/theme/redbasic/tpl/smarty3/theme_settings.tpl +++ /dev/null @@ -1,26 +0,0 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} -{{include file="field_select.tpl" field=$colour}} - -{{include file="field_input.tpl" field=$font_size}} - -{{include file="field_input.tpl" field=$line_height}} - -{{include file="field_select.tpl" field=$shadow}} - -{{include file="field_select.tpl" field=$navcolour}} - -{{include file="field_select.tpl" field=$displaystyle}} - -{{include file="field_input.tpl" field=$linkcolour}} - -{{include file="field_select.tpl" field=$iconset}} - -{{include file="field_select.tpl" field=$shiny}} - -
- -
diff --git a/view/theme/redbasic/tpl/theme_settings.tpl b/view/theme/redbasic/tpl/theme_settings.tpl old mode 100644 new mode 100755 index 6e7e079e0..f8d9f223c --- a/view/theme/redbasic/tpl/theme_settings.tpl +++ b/view/theme/redbasic/tpl/theme_settings.tpl @@ -1,21 +1,26 @@ -{{inc field_select.tpl with $field=$colour}}{{endinc}} +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} +{{include file="field_select.tpl" field=$colour}} -{{inc field_input.tpl with $field=$font_size}}{{endinc}} +{{include file="field_input.tpl" field=$font_size}} -{{inc field_input.tpl with $field=$line_height}}{{endinc}} +{{include file="field_input.tpl" field=$line_height}} -{{inc field_select.tpl with $field=$shadow}}{{endinc}} +{{include file="field_select.tpl" field=$shadow}} -{{inc field_select.tpl with $field=$navcolour}}{{endinc}} +{{include file="field_select.tpl" field=$navcolour}} -{{inc field_select.tpl with $field=$displaystyle}}{{endinc}} +{{include file="field_select.tpl" field=$displaystyle}} -{{inc field_input.tpl with $field=$linkcolour}}{{endinc}} +{{include file="field_input.tpl" field=$linkcolour}} -{{inc field_select.tpl with $field=$iconset}}{{endinc}} +{{include file="field_select.tpl" field=$iconset}} -{{inc field_select.tpl with $field=$shiny}}{{endinc}} +{{include file="field_select.tpl" field=$shiny}}
- +
diff --git a/view/tpl/404.tpl b/view/tpl/404.tpl old mode 100644 new mode 100755 index bf4d4e949..2d581ab8d --- a/view/tpl/404.tpl +++ b/view/tpl/404.tpl @@ -1 +1,6 @@ -

$message

+{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} +

{{$message}}

diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl old mode 100644 new mode 100755 index 7f20f3398..9f6556842 --- a/view/tpl/abook_edit.tpl +++ b/view/tpl/abook_edit.tpl @@ -1,74 +1,79 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} -

$header

+

{{$header}}

-

$addr

+

{{$addr}}

-{{ if $notself }} +{{if $notself}}
-$tabs +{{$tabs}}
-{{ endif }} +{{/if}} -{{ if $self }} -
$autolbl
-{{ endif }} +{{if $self}} +
{{$autolbl}}
+{{/if}}
-{{ if $notself }} -{{ if $slide }} -

$lbl_slider

+{{if $notself}} +{{if $slide}} +

{{$lbl_slider}}

-$slide +{{$slide}} -{{ endif }} -{{ endif }} +{{/if}} +{{/if}} -

$permlbl

+

{{$permlbl}}

-
- - + + + -{{ if $noperms }} -
$noperms
-{{ endif }} +{{if $noperms}} +
{{$noperms}}
+{{/if}} -{{ if $is_pending }} -{{inc field_checkbox.tpl with $field=$unapproved }}{{endinc}} -{{ endif }} +{{if $is_pending}} +{{include file="field_checkbox.tpl" field=$unapproved}} +{{/if}}
-$quick +{{$quick}}
    -{{ if $self }} -
  • $forum
  • -
  • $soapbox
  • -{{ endif }} -
  • $full
  • -
  • $cautious
  • -
  • $follow
  • +{{if $self}} +
  • {{$forum}}
  • +
  • {{$soapbox}}
  • +{{/if}} +
  • {{$full}}
  • +
  • {{$cautious}}
  • +
  • {{$follow}}
- + - +
diff --git a/view/tpl/acl_selector.tpl b/view/tpl/acl_selector.tpl old mode 100644 new mode 100755 index e5231b0f8..aebef71ee --- a/view/tpl/acl_selector.tpl +++ b/view/tpl/acl_selector.tpl @@ -1,6 +1,11 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
- $showall + {{$showall}}
@@ -10,8 +15,8 @@ -

$admtxt

+

{{$admtxt}}

-{{ if $admin.update }} +{{if $admin.update}} -{{ endif }} +{{/if}} -{{ if $admin.plugins_admin }}

$plugadmtxt

{{ endif }} +{{if $admin.plugins_admin}}

{{$plugadmtxt}}

{{/if}} -

$logtxt

+

{{$logtxt}}

diff --git a/view/tpl/admin_logs.tpl b/view/tpl/admin_logs.tpl old mode 100644 new mode 100755 index b777cf420..6a2259500 --- a/view/tpl/admin_logs.tpl +++ b/view/tpl/admin_logs.tpl @@ -1,19 +1,24 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
-

$title - $page

+

{{$title}} - {{$page}}

-
- + + - {{ inc field_checkbox.tpl with $field=$debugging }}{{ endinc }} - {{ inc field_input.tpl with $field=$logfile }}{{ endinc }} - {{ inc field_select.tpl with $field=$loglevel }}{{ endinc }} + {{include file="field_checkbox.tpl" field=$debugging}} + {{include file="field_input.tpl" field=$logfile}} + {{include file="field_select.tpl" field=$loglevel}} -
+
-

$logname

-
$data
- - +

{{$logname}}

+
{{$data}}
+ +
diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl old mode 100644 new mode 100755 index 74b56bb4e..307814e87 --- a/view/tpl/admin_plugins.tpl +++ b/view/tpl/admin_plugins.tpl @@ -1,15 +1,20 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
-

$title - $page

+

{{$title}} - {{$page}}

    - {{ for $plugins as $p }} -
  • - - $p.2.name - $p.2.version - {{ if $p.2.experimental }} $experimental {{ endif }}{{ if $p.2.unsupported }} $unsupported {{ endif }} + {{foreach $plugins as $p}} +
  • + + {{$p.2.name}} - {{$p.2.version}} + {{if $p.2.experimental}} {{$experimental}} {{/if}}{{if $p.2.unsupported}} {{$unsupported}} {{/if}} -
    $p.2.description
    +
    {{$p.2.description}}
  • - {{ endfor }} + {{/foreach}}
diff --git a/view/tpl/admin_plugins_details.tpl b/view/tpl/admin_plugins_details.tpl old mode 100644 new mode 100755 index 931c7b83c..e81701732 --- a/view/tpl/admin_plugins_details.tpl +++ b/view/tpl/admin_plugins_details.tpl @@ -1,36 +1,41 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
-

$title - $page

+

{{$title}} - {{$page}}

-

$info.name - $info.version : $action

-

$info.description

+

{{$info.name}} - {{$info.version}} : {{$action}}

+

{{$info.description}}

-

$str_author - {{ for $info.author as $a }} - {{ if $a.link }}$a.name{{ else }}$a.name{{ endif }}, - {{ endfor }} +

{{$str_author}} + {{foreach $info.author as $a}} + {{if $a.link}}{{$a.name}}{{else}}{{$a.name}}{{/if}}, + {{/foreach}}

-

$str_maintainer - {{ for $info.maintainer as $a }} - {{ if $a.link }}$a.name{{ else }}$a.name{{ endif }}, - {{ endfor }} +

{{$str_maintainer}} + {{foreach $info.maintainer as $a}} + {{if $a.link}}{{$a.name}}{{else}}{{$a.name}}{{/if}}, + {{/foreach}}

- {{ if $screenshot }} - $screenshot.1 - {{ endif }} + {{if $screenshot}} + {{$screenshot.1}} + {{/if}} - {{ if $admin_form }} -

$settings

-
- $admin_form + {{if $admin_form}} +

{{$settings}}

+ + {{$admin_form}}
- {{ endif }} + {{/if}} - {{ if $readme }} + {{if $readme}}

Readme

- $readme + {{$readme}}
- {{ endif }} + {{/if}}
diff --git a/view/tpl/admin_site.tpl b/view/tpl/admin_site.tpl old mode 100644 new mode 100755 index 47e952164..eaf067c27 --- a/view/tpl/admin_site.tpl +++ b/view/tpl/admin_site.tpl @@ -1,3 +1,8 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
-

$title - $page

+

{{$title}} - {{$page}}

-
- + + - {{ 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=$theme_accessibility }}{{ endinc }} - {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }} + {{include file="field_input.tpl" field=$sitename}} + {{include file="field_textarea.tpl" field=$banner}} + {{include file="field_select.tpl" field=$language}} + {{include file="field_select.tpl" field=$theme}} + {{include file="field_select.tpl" field=$theme_mobile}} + {{include file="field_select.tpl" field=$theme_accessibility}} + {{include file="field_select.tpl" field=$ssl_policy}} -
+
-

$registration

- {{ inc field_input.tpl with $field=$register_text }}{{ endinc }} - {{ inc field_select.tpl with $field=$register_policy }}{{ endinc }} +

{{$registration}}

+ {{include file="field_input.tpl" field=$register_text}} + {{include file="field_select.tpl" field=$register_policy}} -
+
-

$upload

- {{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }} +

{{$upload}}

+ {{include file="field_input.tpl" field=$maximagesize}} -

$corporate

- {{ 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_input.tpl with $field=$global_directory }}{{ endinc }} +

{{$corporate}}

+ {{include file="field_input.tpl" field=$allowed_sites}} + {{include file="field_input.tpl" field=$allowed_email}} + {{include file="field_checkbox.tpl" field=$block_public}} + {{include file="field_checkbox.tpl" field=$force_publish}} + {{include file="field_checkbox.tpl" field=$no_community_page}} + {{include file="field_input.tpl" field=$global_directory}} -
+
-

$advanced

- {{ 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 }} +

{{$advanced}}

+ {{include file="field_input.tpl" field=$proxy}} + {{include file="field_input.tpl" field=$proxyuser}} + {{include file="field_input.tpl" field=$timeout}} + {{include file="field_input.tpl" field=$delivery_interval}} + {{include file="field_input.tpl" field=$poll_interval}} + {{include file="field_input.tpl" field=$maxloadavg}} + {{include file="field_input.tpl" field=$abandon_days}} -
+
diff --git a/view/tpl/admin_summary.tpl b/view/tpl/admin_summary.tpl old mode 100644 new mode 100755 index 99221c13e..76ac23d29 --- a/view/tpl/admin_summary.tpl +++ b/view/tpl/admin_summary.tpl @@ -1,39 +1,44 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
-

$title - $page

+

{{$title}} - {{$page}}

-
$queues.label
-
$queues.queue
+
{{$queues.label}}
+
{{$queues.queue}}
-
$pending.0
-
$pending.1 +
{{$pending.0}}
+
{{$pending.1}}
-
$users.0
-
$users.1
+
{{$users.0}}
+
{{$users.1}}
- {{ for $accounts as $p }} + {{foreach $accounts as $p}}
-
$p.0
-
{{ if $p.1 }}$p.1{{ else }}0{{ endif }}
+
{{$p.0}}
+
{{if $p.1}}{{$p.1}}{{else}}0{{/if}}
- {{ endfor }} + {{/foreach}}
-
$plugins.0
+
{{$plugins.0}}
- {{ for $plugins.1 as $p }} -
$p
- {{ endfor }} + {{foreach $plugins.1 as $p}} +
{{$p}}
+ {{/foreach}}
-
$version.0
-
$version.1 - $build +
{{$version.0}}
+
{{$version.1}} - {{$build}}
diff --git a/view/tpl/admin_users.tpl b/view/tpl/admin_users.tpl old mode 100644 new mode 100755 index 6de504e2a..136ce3c3e --- a/view/tpl/admin_users.tpl +++ b/view/tpl/admin_users.tpl @@ -1,9 +1,14 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
-

$title - $page

+

{{$title}} - {{$page}}

-
- + + -

$h_pending

- {{ if $pending }} +

{{$h_pending}}

+ {{if $pending}} - {{ for $th_pending as $th }}{{ endfor }} + {{foreach $th_pending as $th}}{{/foreach}} - {{ for $pending as $u }} + {{foreach $pending as $u}} - - - - + + + + - {{ endfor }} + {{/foreach}}
$th{{$th}}
$u.created$u.name{{$u.created}}{{$u.name}} - - + +
- -
- {{ else }} -

$no_pending

- {{ endif }} + +
+ {{else}} +

{{$no_pending}}

+ {{/if}} -

$h_users

- {{ if $users }} +

{{$h_users}}

+ {{if $users}} - {{ for $th_users as $th }}{{ endfor }} + {{foreach $th_users as $th}}{{/foreach}} - {{ for $users as $u }} + {{foreach $users as $u}} - - - - - - + + + + + + - {{ endfor }} + {{/foreach}}
$th{{$th}}
$u.nickname$u.account_created$u.account_service_class{{$u.nickname}}{{$u.account_created}}{{$u.account_service_class}} - - + +
- -
- {{ else }} + +
+ {{else}} NO USERS?!? - {{ endif }} + {{/if}}
diff --git a/view/tpl/album_edit.tpl b/view/tpl/album_edit.tpl old mode 100644 new mode 100755 index 56a7b73fc..36c07a9f0 --- a/view/tpl/album_edit.tpl +++ b/view/tpl/album_edit.tpl @@ -1,14 +1,19 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}}
-
+ - - + +
- - + +
diff --git a/view/tpl/api_config_xml.tpl b/view/tpl/api_config_xml.tpl old mode 100644 new mode 100755 index 3281e59dd..09aa00ac4 --- a/view/tpl/api_config_xml.tpl +++ b/view/tpl/api_config_xml.tpl @@ -1,24 +1,29 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} - $config.site.name - $config.site.server + {{$config.site.name}} + {{$config.site.server}} default - $config.site.logo + {{$config.site.logo}} true en - $config.site.email + {{$config.site.email}} UTC - $config.site.closed + {{$config.site.closed}} false - $config.site.private - $config.site.textlimit - $config.site.ssl - $config.site.sslserver + {{$config.site.private}} + {{$config.site.textlimit}} + {{$config.site.ssl}} + {{$config.site.sslserver}} 30 diff --git a/view/tpl/api_friends_xml.tpl b/view/tpl/api_friends_xml.tpl old mode 100644 new mode 100755 index 0ea7eb13b..e9c40293b --- a/view/tpl/api_friends_xml.tpl +++ b/view/tpl/api_friends_xml.tpl @@ -1,5 +1,10 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} - {{for $users as $user }} - {{inc api_user_xml.tpl }}{{endinc}} - {{endfor}} + {{foreach $users as $user}} + {{include file="api_user_xml.tpl"}} + {{/foreach}} diff --git a/view/tpl/api_ratelimit_xml.tpl b/view/tpl/api_ratelimit_xml.tpl old mode 100644 new mode 100755 index 36ec1993d..a34eb6723 --- a/view/tpl/api_ratelimit_xml.tpl +++ b/view/tpl/api_ratelimit_xml.tpl @@ -1,6 +1,11 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} - $hash.remaining_hits - $hash.hourly_limit - $hash.reset_time - $hash.resettime_in_seconds + {{$hash.remaining_hits}} + {{$hash.hourly_limit}} + {{$hash.reset_time}} + {{$hash.resettime_in_seconds}} diff --git a/view/tpl/api_status_xml.tpl b/view/tpl/api_status_xml.tpl old mode 100644 new mode 100755 index f6cd9c2c0..e3e80d2b1 --- a/view/tpl/api_status_xml.tpl +++ b/view/tpl/api_status_xml.tpl @@ -1,46 +1,51 @@ -{{ if $status }} - $status.created_at - $status.id - $status.text - $status.source - $status.truncated - $status.in_reply_to_status_id - $status.in_reply_to_user_id - $status.favorited - $status.in_reply_to_screen_name - $status.geo - $status.coordinates - $status.place - $status.contributors +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} +{{if $status}} + {{$status.created_at}} + {{$status.id}} + {{$status.text}} + {{$status.source}} + {{$status.truncated}} + {{$status.in_reply_to_status_id}} + {{$status.in_reply_to_user_id}} + {{$status.favorited}} + {{$status.in_reply_to_screen_name}} + {{$status.geo}} + {{$status.coordinates}} + {{$status.place}} + {{$status.contributors}} - $status.user.id - $status.user.name - $status.user.screen_name - $status.user.location - $status.user.description - $status.user.profile_image_url - $status.user.url - $status.user.protected - $status.user.followers - $status.user.profile_background_color - $status.user.profile_text_color - $status.user.profile_link_color - $status.user.profile_sidebar_fill_color - $status.user.profile_sidebar_border_color - $status.user.friends_count - $status.user.created_at - $status.user.favourites_count - $status.user.utc_offset - $status.user.time_zone - $status.user.profile_background_image_url - $status.user.profile_background_tile - $status.user.profile_use_background_image + {{$status.user.id}} + {{$status.user.name}} + {{$status.user.screen_name}} + {{$status.user.location}} + {{$status.user.description}} + {{$status.user.profile_image_url}} + {{$status.user.url}} + {{$status.user.protected}} + {{$status.user.followers}} + {{$status.user.profile_background_color}} + {{$status.user.profile_text_color}} + {{$status.user.profile_link_color}} + {{$status.user.profile_sidebar_fill_color}} + {{$status.user.profile_sidebar_border_color}} + {{$status.user.friends_count}} + {{$status.user.created_at}} + {{$status.user.favourites_count}} + {{$status.user.utc_offset}} + {{$status.user.time_zone}} + {{$status.user.profile_background_image_url}} + {{$status.user.profile_background_tile}} + {{$status.user.profile_use_background_image}} - $status.user.geo_enabled - $status.user.verified + {{$status.user.geo_enabled}} + {{$status.user.verified}} - $status.user.statuses_count - $status.user.lang - $status.user.contributors_enabled + {{$status.user.statuses_count}} + {{$status.user.lang}} + {{$status.user.contributors_enabled}} -{{ endif }} +{{/if}} diff --git a/view/tpl/api_test_xml.tpl b/view/tpl/api_test_xml.tpl old mode 100644 new mode 100755 index 7509a2dc1..df5009af5 --- a/view/tpl/api_test_xml.tpl +++ b/view/tpl/api_test_xml.tpl @@ -1 +1,6 @@ -$ok +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} +{{$ok}} diff --git a/view/tpl/api_timeline_atom.tpl b/view/tpl/api_timeline_atom.tpl old mode 100644 new mode 100755 index 9039220e7..00a28e390 --- a/view/tpl/api_timeline_atom.tpl +++ b/view/tpl/api_timeline_atom.tpl @@ -1,90 +1,95 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} StatusNet - $rss.self + {{$rss.self}} Friendika Friendika API feed - $rss.logo - $rss.atom_updated - - + {{$rss.logo}} + {{$rss.atom_updated}} + + http://activitystrea.ms/schema/1.0/person - $user.url - $user.name - - - - - + {{$user.url}} + {{$user.name}} + + + + + - $user.screen_name - $user.name + {{$user.screen_name}} + {{$user.name}} homepage - $user.url + {{$user.url}} true - + http://activitystrea.ms/schema/1.0/person - $user.contact_url - $user.name - - - - - - $user.screen_name - $user.name + {{$user.contact_url}} + {{$user.name}} + + + + + + {{$user.screen_name}} + {{$user.name}} homepage - $user.url + {{$user.url}} true - + - {{ for $statuses as $status }} + {{foreach $statuses as $status}} - $status.objecttype - $status.message_id - $status.text - $status.statusnet_html - - $status.verb - $status.published - $status.updated + {{$status.objecttype}} + {{$status.message_id}} + {{$status.text}} + {{$status.statusnet_html}} + + {{$status.verb}} + {{$status.published}} + {{$status.updated}} - - - + + + http://activitystrea.ms/schema/1.0/person - $status.user.url - $status.user.name - - + {{$status.user.url}} + {{$status.user.name}} + + - $status.user.screen_name - $status.user.name + {{$status.user.screen_name}} + {{$status.user.name}} homepage - $status.user.url + {{$status.user.url}} true - + - {{ endfor }} + {{/foreach}} diff --git a/view/tpl/api_timeline_rss.tpl b/view/tpl/api_timeline_rss.tpl old mode 100644 new mode 100755 index 40239273c..afad50aab --- a/view/tpl/api_timeline_rss.tpl +++ b/view/tpl/api_timeline_rss.tpl @@ -1,26 +1,31 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} Friendika - $rss.alternate - + {{$rss.alternate}} + Friendika timeline - $rss.language + {{$rss.language}} 40 - $user.link - $user.name's items - $user.profile_image_url + {{$user.link}} + {{$user.name}}'s items + {{$user.profile_image_url}} -{{ for $statuses as $status }} +{{foreach $statuses as $status}} - $status.user.name: $status.text - $status.text - $status.created_at - $status.url - $status.url - $status.source + {{$status.user.name}}: {{$status.text}} + {{$status.text}} + {{$status.created_at}} + {{$status.url}} + {{$status.url}} + {{$status.source}} -{{ endfor }} +{{/foreach}} diff --git a/view/tpl/api_timeline_xml.tpl b/view/tpl/api_timeline_xml.tpl old mode 100644 new mode 100755 index 4a32b411b..84148d17f --- a/view/tpl/api_timeline_xml.tpl +++ b/view/tpl/api_timeline_xml.tpl @@ -1,20 +1,25 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} -{{ for $statuses as $status }} - $status.text - $status.truncated - $status.created_at - $status.in_reply_to_status_id - $status.source - $status.id - $status.in_reply_to_user_id - $status.in_reply_to_screen_name - $status.geo - $status.favorited -{{ inc api_user_xml.tpl with $user=$status.user }}{{ endinc }} $status.statusnet_html - $status.statusnet_conversation_id - $status.url - $status.coordinates - $status.place - $status.contributors +{{foreach $statuses as $status}} + {{$status.text}} + {{$status.truncated}} + {{$status.created_at}} + {{$status.in_reply_to_status_id}} + {{$status.source}} + {{$status.id}} + {{$status.in_reply_to_user_id}} + {{$status.in_reply_to_screen_name}} + {{$status.geo}} + {{$status.favorited}} +{{include file="api_user_xml.tpl" user=$status.user}} {{$status.statusnet_html}} + {{$status.statusnet_conversation_id}} + {{$status.url}} + {{$status.coordinates}} + {{$status.place}} + {{$status.contributors}} -{{ endfor }} +{{/foreach}} diff --git a/view/tpl/api_user_xml.tpl b/view/tpl/api_user_xml.tpl old mode 100644 new mode 100755 index d286652c0..d7efcf3fb --- a/view/tpl/api_user_xml.tpl +++ b/view/tpl/api_user_xml.tpl @@ -1,46 +1,51 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} - $user.id - $user.name - $user.screen_name - $user.location - $user.description - $user.profile_image_url - $user.url - $user.protected - $user.followers_count - $user.friends_count - $user.created_at - $user.favourites_count - $user.utc_offset - $user.time_zone - $user.statuses_count - $user.following - $user.profile_background_color - $user.profile_text_color - $user.profile_link_color - $user.profile_sidebar_fill_color - $user.profile_sidebar_border_color - $user.profile_background_image_url - $user.profile_background_tile - $user.profile_use_background_image - $user.notifications - $user.geo_enabled - $user.verified - $user.lang - $user.contributors_enabled - {{ if $user.status }} - $user.status.created_at - $user.status.id - $user.status.text - $user.status.source - $user.status.truncated - $user.status.in_reply_to_status_id - $user.status.in_reply_to_user_id - $user.status.favorited - $user.status.in_reply_to_screen_name - $user.status.geo - $user.status.coordinates - $user.status.place - $user.status.contributors - {{ endif }} + {{$user.id}} + {{$user.name}} + {{$user.screen_name}} + {{$user.location}} + {{$user.description}} + {{$user.profile_image_url}} + {{$user.url}} + {{$user.protected}} + {{$user.followers_count}} + {{$user.friends_count}} + {{$user.created_at}} + {{$user.favourites_count}} + {{$user.utc_offset}} + {{$user.time_zone}} + {{$user.statuses_count}} + {{$user.following}} + {{$user.profile_background_color}} + {{$user.profile_text_color}} + {{$user.profile_link_color}} + {{$user.profile_sidebar_fill_color}} + {{$user.profile_sidebar_border_color}} + {{$user.profile_background_image_url}} + {{$user.profile_background_tile}} + {{$user.profile_use_background_image}} + {{$user.notifications}} + {{$user.geo_enabled}} + {{$user.verified}} + {{$user.lang}} + {{$user.contributors_enabled}} + {{if $user.status}} + {{$user.status.created_at}} + {{$user.status.id}} + {{$user.status.text}} + {{$user.status.source}} + {{$user.status.truncated}} + {{$user.status.in_reply_to_status_id}} + {{$user.status.in_reply_to_user_id}} + {{$user.status.favorited}} + {{$user.status.in_reply_to_screen_name}} + {{$user.status.geo}} + {{$user.status.coordinates}} + {{$user.status.place}} + {{$user.status.contributors}} + {{/if}} diff --git a/view/tpl/apps.tpl b/view/tpl/apps.tpl old mode 100644 new mode 100755 index 4c7f8c94c..01d9bb8c8 --- a/view/tpl/apps.tpl +++ b/view/tpl/apps.tpl @@ -1,7 +1,12 @@ -

$title

+{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} +

{{$title}}

    - {{ for $apps as $ap }} -
  • $ap
  • - {{ endfor }} + {{foreach $apps as $ap}} +
  • {{$ap}}
  • + {{/foreach}}
diff --git a/view/tpl/atom_feed.tpl b/view/tpl/atom_feed.tpl old mode 100644 new mode 100755 index 2feb547ee..db553d99f --- a/view/tpl/atom_feed.tpl +++ b/view/tpl/atom_feed.tpl @@ -1,3 +1,8 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} - $feed_id - $feed_title - Friendica + {{$feed_id}} + {{$feed_title}} + Friendica - $hub - $salmon - $community + {{$hub}} + {{$salmon}} + {{$community}} - $feed_updated + {{$feed_updated}} - $name - $profile_page - - - $birthday + {{$name}} + {{$profile_page}} + + + {{$birthday}} diff --git a/view/tpl/atom_feed_dfrn.tpl b/view/tpl/atom_feed_dfrn.tpl old mode 100644 new mode 100755 index 0bae62b52..87d78a518 --- a/view/tpl/atom_feed_dfrn.tpl +++ b/view/tpl/atom_feed_dfrn.tpl @@ -1,3 +1,8 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} - $feed_id - $feed_title - Friendica + {{$feed_id}} + {{$feed_title}} + Friendica - $hub - $salmon - $community + {{$hub}} + {{$salmon}} + {{$community}} - $feed_updated + {{$feed_updated}} - $name - $profile_page - - - $birthday + {{$name}} + {{$profile_page}} + + + {{$birthday}} diff --git a/view/tpl/birthdays_reminder.tpl b/view/tpl/birthdays_reminder.tpl old mode 100644 new mode 100755 index 8db7d22f4..56749cd12 --- a/view/tpl/birthdays_reminder.tpl +++ b/view/tpl/birthdays_reminder.tpl @@ -1,10 +1,15 @@ -{{ if $count }} - -