diff --git a/config.xml b/config.xml index 7787d23..73fb4b4 100644 --- a/config.xml +++ b/config.xml @@ -21,6 +21,16 @@ + + + + oksocialname; $twittersocialname = $params->twittersocialname; $youtubesocialname = $params->youtubesocialname; +$fastboot = $params->fastboot; $httpClientj = JHttpFactory::getHttp(); diff --git a/myjbzoostat.xml b/myjbzoostat.xml index 8a52229..189861c 100644 --- a/myjbzoostat.xml +++ b/myjbzoostat.xml @@ -6,7 +6,7 @@ http://cb9t.ru - 2.7.0 + 2.7.1
]]>
28 June 2016 diff --git a/views/index/tmpl/default.php b/views/index/tmpl/default.php index ec18f89..ad7431b 100644 --- a/views/index/tmpl/default.php +++ b/views/index/tmpl/default.php @@ -494,7 +494,8 @@ function nice_num($n) { data) > 1) : + +if(count($DataResponceApiYandexexternalReferer->data) > 1 && $fastboot != 'yes') : echo "

Переходы по ссылкам на сайтах

"; echo ""; echo ""; @@ -525,7 +526,7 @@ function nice_num($n) {
data) > 1) : +if(count($DataResponceApiYandexSearchPhrase->data) > 1 && $fastboot != 'yes') : echo "

Переходы по фразам

"; echo "
"; echo ""; diff --git a/views/nodubles/tmpl/default.php b/views/nodubles/tmpl/default.php index 06321d6..2aa71e3 100644 --- a/views/nodubles/tmpl/default.php +++ b/views/nodubles/tmpl/default.php @@ -138,7 +138,7 @@ if (!empty($dublesd)) { foreach ($dublesd as $keyg) { $urll = urlencode($keyg); - echo '
  • '.$keyg.'
  • '; + echo '
  • '.$keyg.'
  • '; } } diff --git a/views/tags/autors/index.html b/views/tags/autors/index.html new file mode 100644 index 0000000..e69de29 diff --git a/views/tags/autors/tmpl/default.php b/views/tags/autors/tmpl/default.php new file mode 100644 index 0000000..0160e9b --- /dev/null +++ b/views/tags/autors/tmpl/default.php @@ -0,0 +1,42 @@ + +app ----> $app + ?> + +
    + + +
    +
      +getQuery(true); + +$querycounttagalltags = "SELECT name FROM " . ZOO_TABLE_TAG ." ORDER BY name"; + +$tagsArraytagalltags = array_unique($app->table->tag->database->queryResultArray($querycounttagalltags)); + +foreach ($tagsArraytagalltags as $tag) { + + $querycounttagalltagss = "SELECT COUNT(name) FROM " . ZOO_TABLE_TAG ." WHERE name = '$tag'"; + + $tagsArraytagalltagss = array_unique($app->table->tag->database->queryResultArray($querycounttagalltagss)); + + echo '
    • ' . $tag . '' .' - '. $tagsArraytagalltagss[0].'
    • ';} +?> +
    +
    +
    diff --git a/views/tags/autors/tmpl/index.html b/views/tags/autors/tmpl/index.html new file mode 100644 index 0000000..e69de29 diff --git a/views/tags/autors/view.html.php b/views/tags/autors/view.html.php new file mode 100644 index 0000000..faf7996 --- /dev/null +++ b/views/tags/autors/view.html.php @@ -0,0 +1,42 @@ +_setToolBar(); + parent::display( $tpl ); + } + /** + * Method to display the toolbar + */ + protected function _setToolBar() + { + JToolBarHelper::title( JText::_( 'Статистика тегов' ) ); + JToolbarHelper::divider(); + +$bar = JToolBar::getInstance('toolbar'); //ссылка на объект JToolBar +$title = JText::_('Статьи'); //Надпись на кнопке +$dhtml = "$title"; //HTML нашей кнопки +$bar->appendButton('Custom', $dhtml, 'list');//давляем ее на тулбар + +JToolBarHelper::divider(); + +$bar = JToolBar::getInstance('toolbar'); //ссылка на объект JToolBar +$title = JText::_('Авторы'); //Надпись на кнопке +$dhtml = "$title"; //HTML нашей кнопки +$bar->appendButton('Custom', $dhtml, 'list');//давляем ее на тулбар + + + } + +}