From a0d19ffb7241a1c7a4b85e6d0fd58fbb2f718468 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sun, 6 Jan 2013 14:42:51 -0700 Subject: implement Smarty3 --- view/theme/fancyred/php/config.php | 2 +- view/theme/fancyred/php/theme.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'view/theme/fancyred') diff --git a/view/theme/fancyred/php/config.php b/view/theme/fancyred/php/config.php index 48035f507..833d09050 100644 --- a/view/theme/fancyred/php/config.php +++ b/view/theme/fancyred/php/config.php @@ -65,7 +65,7 @@ function fancyred_form(&$a, $font_size, $line_height, $colour) { 'dark' => 'dark', ); - $t = file_get_contents( dirname(__file__). "/../tpl/theme_settings.tpl" ); + $t = get_markup_template('theme_settings.tpl'); $o .= replace_macros($t, array( '$submit' => t('Submit'), '$baseurl' => $a->get_baseurl(), diff --git a/view/theme/fancyred/php/theme.php b/view/theme/fancyred/php/theme.php index b77664567..1ac6d4d21 100644 --- a/view/theme/fancyred/php/theme.php +++ b/view/theme/fancyred/php/theme.php @@ -1,5 +1,6 @@ set_template_engine('smarty3'); // head_add_js('redbasic.js'); } -- cgit v1.2.3 From 4281a95cbcc6a6bc2eae9ec0b393af9b0ec7b739 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sun, 6 Jan 2013 16:08:56 -0700 Subject: rebase and update themes --- view/theme/fancyred/tpl/smarty3/conv_item.tpl | 117 +++++++++++++++++++++ view/theme/fancyred/tpl/smarty3/theme_settings.tpl | 7 ++ 2 files changed, 124 insertions(+) create mode 100644 view/theme/fancyred/tpl/smarty3/conv_item.tpl create mode 100644 view/theme/fancyred/tpl/smarty3/theme_settings.tpl (limited to 'view/theme/fancyred') diff --git a/view/theme/fancyred/tpl/smarty3/conv_item.tpl b/view/theme/fancyred/tpl/smarty3/conv_item.tpl new file mode 100644 index 000000000..cf0f02f03 --- /dev/null +++ b/view/theme/fancyred/tpl/smarty3/conv_item.tpl @@ -0,0 +1,117 @@ +{{if $item.comment_firstcollapsed}} +
+ {{$item.num_comments}} {{$item.hide_text}} +
+ {{/if}} diff --git a/view/theme/fancyred/tpl/smarty3/theme_settings.tpl b/view/theme/fancyred/tpl/smarty3/theme_settings.tpl new file mode 100644 index 000000000..72749d9ce --- /dev/null +++ b/view/theme/fancyred/tpl/smarty3/theme_settings.tpl @@ -0,0 +1,7 @@ +{{include file="field_select.tpl" field=$font_size}} + +{{include file="field_select.tpl" field=$line_height}} + +
+ +
-- cgit v1.2.3