diff --git a/views/articles/tmpl/default.php b/views/articles/tmpl/default.php index de56616..92ebf27 100644 --- a/views/articles/tmpl/default.php +++ b/views/articles/tmpl/default.php @@ -4,6 +4,7 @@ ?> getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -17,6 +18,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} + require_once JPATH_ADMINISTRATOR . '/components/com_myjbzoostat/elements/paramsetc.php'; if (empty($threshold)) { diff --git a/views/auhorsprofile/tmpl/default.php b/views/auhorsprofile/tmpl/default.php index ee49939..195d3d2 100644 --- a/views/auhorsprofile/tmpl/default.php +++ b/views/auhorsprofile/tmpl/default.php @@ -3,6 +3,7 @@ defined( '_JEXEC' ) or die; // No direct access // dump($_POST,0,'post'); +if (JFolder::exists(JPATH_ROOT . '/components/com_zoo')) { $checkJBZooSEF = JBModelConfig::model()->getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -16,6 +17,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} + ?> diff --git a/views/autors/tmpl/default.php b/views/autors/tmpl/default.php index 580a04d..575b6cc 100644 --- a/views/autors/tmpl/default.php +++ b/views/autors/tmpl/default.php @@ -4,6 +4,7 @@ ?> getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -17,6 +18,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} + diff --git a/views/disqus/tmpl/default.php b/views/disqus/tmpl/default.php index 76100b2..032f6ac 100644 --- a/views/disqus/tmpl/default.php +++ b/views/disqus/tmpl/default.php @@ -4,6 +4,7 @@ /** @var $this MyjbzoostatViewAutors */ defined( '_JEXEC' ) or die; // No direct access +if (JFolder::exists(JPATH_ROOT . '/components/com_zoo')) { $checkJBZooSEF = JBModelConfig::model()->getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -17,6 +18,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); diff --git a/views/orders/tmpl/default.php b/views/orders/tmpl/default.php index d33d2ea..0d0b496 100644 --- a/views/orders/tmpl/default.php +++ b/views/orders/tmpl/default.php @@ -8,6 +8,7 @@ $threshold = '2'; } +if (JFolder::exists(JPATH_ROOT . '/components/com_zoo')) { $checkJBZooSEF = JBModelConfig::model()->getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -21,6 +22,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} + $document->addStyleSheet(JUri::root().'administrator/components/com_myjbzoostat/assets/css/sort.css'); diff --git a/views/report/tmpl/default.php b/views/report/tmpl/default.php index 8b8cd71..e3b4485 100644 --- a/views/report/tmpl/default.php +++ b/views/report/tmpl/default.php @@ -1,6 +1,7 @@ getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -14,6 +15,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} + diff --git a/views/reportauthors/tmpl/default.php b/views/reportauthors/tmpl/default.php index 75b0cd1..90ad557 100644 --- a/views/reportauthors/tmpl/default.php +++ b/views/reportauthors/tmpl/default.php @@ -4,6 +4,7 @@ ?> getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -17,6 +18,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} + require_once JPATH_ADMINISTRATOR . '/components/com_myjbzoostat/elements/paramsetc.php'; diff --git a/views/tags/tmpl/default.php b/views/tags/tmpl/default.php index 98d2463..8dacc43 100644 --- a/views/tags/tmpl/default.php +++ b/views/tags/tmpl/default.php @@ -4,6 +4,7 @@ ?> getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); @@ -17,6 +18,8 @@ $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); +} +