diff --git a/e107_plugins/newsletter/newsletter_menu.php b/e107_plugins/newsletter/newsletter_menu.php
index b387068c7..4aeb98501 100644
--- a/e107_plugins/newsletter/newsletter_menu.php
+++ b/e107_plugins/newsletter/newsletter_menu.php
@@ -26,7 +26,7 @@ if(!empty($pref['signup_option_class']))
$text .= "
";
$text .= $frm->text('email','', null, array('placeholder'=> NLLAN_73));
$text .= "";
- $text .= $frm->button('subscribe', 1, 'submit', NLLAN_52, array('class'=>'btn-default'));
+ $text .= $frm->button('subscribe', 1, 'submit', NLLAN_52, array('class'=>'btn-primary'));
$text .= "";
$text .= "
";
$text .= $frm->close();
diff --git a/e107_plugins/poll/poll_class.php b/e107_plugins/poll/poll_class.php
index 075ac4634..88f014c6e 100644
--- a/e107_plugins/poll/poll_class.php
+++ b/e107_plugins/poll/poll_class.php
@@ -603,7 +603,7 @@ class poll
return '
';
@@ -1006,7 +1006,7 @@ class poll_shortcodes extends e_shortcode
return '
';
diff --git a/e107_plugins/poll/templates/poll_template.php b/e107_plugins/poll/templates/poll_template.php
index 3546bcb1f..b18eedc82 100644
--- a/e107_plugins/poll/templates/poll_template.php
+++ b/e107_plugins/poll/templates/poll_template.php
@@ -103,8 +103,8 @@ $POLL_DISALLOWED_END = "
";
-/* ################################# */
-/* template for forum polls when user HASN'T voted*/
+
+// template for forum polls when user HASN'T voted
$POLL_FORUM_NOTVOTED_START = "
@@ -216,7 +216,7 @@ $POLL_TEMPLATE['results']['start'] = "
";
$POLL_TEMPLATE['results']['item'] = "
-
{OPTION}{PERCENTAGE}
+
{OPTION}{PERCENTAGE}
{BAR}
";
diff --git a/e107_plugins/rss_menu/rss.php b/e107_plugins/rss_menu/rss.php
index 9d5a2be6f..50f9f770c 100644
--- a/e107_plugins/rss_menu/rss.php
+++ b/e107_plugins/rss_menu/rss.php
@@ -34,7 +34,7 @@ if (!e107::isInstalled('rss_menu'))
$tp = e107::getParser();
-require_once(e_PLUGIN.'rss_menu/rss_shortcodes.php');
+//require_once(e_PLUGIN.'rss_menu/rss_shortcodes.php');
require_once(e_HANDLER.'userclass_class.php');
/*
@@ -49,15 +49,7 @@ if (!is_object($tp->e_bb))
// Get language file
e107::includeLan(e_PLUGIN.'rss_menu/languages/'.e_LANGUAGE.'_admin_rss_menu.php');
-// Get template
-if (is_readable(THEME.'rss_template.php'))
-{
- require_once(THEME.'rss_template.php');
-}
-else
-{
- require_once(e_PLUGIN.'rss_menu/rss_template.php');
-}
+
// Query handler
if(!empty($_GET['type']))
@@ -87,7 +79,9 @@ if (empty($rss_type))
// Display list of all feeds
require_once(HEADERF);
- // require_once(e_PLUGIN.'rss_menu/rss_template.php'); Already loaded
+ require_once(e_PLUGIN.'rss_menu/rss_shortcodes.php');
+ $sc = e107::getScBatch('rss_menu', true);
+ $sc->wrapper('rss/page');
if(!$sql->select('rss', '*', "`rss_class` = 0 AND `rss_limit` > 0 AND `rss_topicid` NOT REGEXP ('\\\*') ORDER BY `rss_name`"))
{
@@ -95,12 +89,34 @@ if (empty($rss_type))
}
else
{
- $text = $RSS_LIST_HEADER;
+ if($template = e107::getTemplate('rss_menu', 'rss', 'page'))
+ {
+ $RSS_LIST_HEADER = $template['start'];
+ $RSS_LIST_TABLE = $template['item'];
+ $RSS_LIST_FOOTER = $template['end'];
+ }
+ else
+ {
+ // Get Legacy template
+ if (is_readable(THEME.'rss_template.php'))
+ {
+ require_once(THEME.'rss_template.php');
+ }
+ else
+ {
+ require_once(e_PLUGIN.'rss_menu/rss_template.php');
+ }
+ }
+
+ $text = $tp->parseTemplate($RSS_LIST_HEADER);
+
while($row = $sql->fetch())
{
- $text .= $tp->parseTemplate($RSS_LIST_TABLE, FALSE, $rss_shortcodes);
+ $text .= $tp->parseTemplate($RSS_LIST_TABLE, false, $sc);
}
- $text .= $RSS_LIST_FOOTER;
+
+ $text .= $tp->parseTemplate($RSS_LIST_FOOTER);
+
$ns->tablerender(RSS_MENU_L2, $text);
}
diff --git a/e107_plugins/rss_menu/rss_shortcodes.php b/e107_plugins/rss_menu/rss_shortcodes.php
index a6186beb9..cde44e60d 100644
--- a/e107_plugins/rss_menu/rss_shortcodes.php
+++ b/e107_plugins/rss_menu/rss_shortcodes.php
@@ -288,4 +288,4 @@ class rss_menu_shortcodes extends e_shortcode
}
- $rss_shortcodes = new rss_menu_shortcodes;
+// $rss_shortcodes = new rss_menu_shortcodes;
diff --git a/e107_plugins/rss_menu/rss_template.php b/e107_plugins/rss_menu/rss_template.php
deleted file mode 100644
index 31eba8131..000000000
--- a/e107_plugins/rss_menu/rss_template.php
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
- |
- ".RSS_PLUGIN_LAN_6." |
-
";
-}
-if(!isset($RSS_LIST_TABLE))
-{
- $RSS_LIST_TABLE = "
-
-
-
-
";
-}
-if(!isset($RSS_LIST_FOOTER))
-{
- $RSS_LIST_FOOTER = "";
-}
-
-
diff --git a/e107_plugins/rss_menu/templates/rss_template.php b/e107_plugins/rss_menu/templates/rss_template.php
new file mode 100644
index 000000000..bd918f521
--- /dev/null
+++ b/e107_plugins/rss_menu/templates/rss_template.php
@@ -0,0 +1,32 @@
+
+
+
+ |
+ {LAN=RSS_PLUGIN_LAN_6} |
+
";
+
+$RSS_TEMPLATE['page']['item'] = "
+
+
+
+
";
+
+
+$RSS_TEMPLATE['page']['end'] = "
";
+
+
+
+