From 1f35b57b6a209bc2b3138c9677e8534da6c986c1 Mon Sep 17 00:00:00 2001 From: CB9TOIIIA Date: Wed, 20 Jun 2018 14:15:49 +0300 Subject: [PATCH] =?UTF-8?q?add=20=D0=91=D1=8B=D1=81=D1=82=D1=80=D1=8B?= =?UTF-8?q?=D0=B9=20=D1=81=D1=82=D0=B0=D1=80=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add Быстрый старт --- config.xml | 10 +++++++ elements/paramsetc.php | 1 + myjbzoostat.xml | 2 +- views/index/tmpl/default.php | 5 ++-- views/nodubles/tmpl/default.php | 2 +- views/tags/autors/index.html | 0 views/tags/autors/tmpl/default.php | 42 ++++++++++++++++++++++++++++++ views/tags/autors/tmpl/index.html | 0 views/tags/autors/view.html.php | 42 ++++++++++++++++++++++++++++++ 9 files changed, 100 insertions(+), 4 deletions(-) create mode 100644 views/tags/autors/index.html create mode 100644 views/tags/autors/tmpl/default.php create mode 100644 views/tags/autors/tmpl/index.html create mode 100644 views/tags/autors/view.html.php 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');//давляем ее на тулбар + + + } + +}