Перейти к содержимому


Фотография
* * * * * 2 Голосов

Обновление JBZoo до 2.1.4 (JBZooItem + JBColor + JBZooSEF)

обновление jbzoo 2.1.4 новости jbzooitem jbcolor jbzoosef

  • Закрытая тема Тема закрыта
Сообщений в теме: 122

Опрос: Нам это реально очень ВАЖНО знать. Спасибо! (29 пользователей проголосовало)

Понравилось ли вам обновление?

Вы не можете видеть результаты проса пока не проголосуете.
Голосовать

#111 isay777

isay777

Отправлено 08 July 2014 - 11:47

SmetDenis сказал(а) 06 Июл 2014 - 17:39:

Нужен текст ошибки
http://joomla-book.r...error-reporting

 

вот такая вылезла 

h0e2o5agfpzp.png


  • 0
ХОСТИНГ для сайтов jbzoo (все попугаи)

#112 SmetDenis

SmetDenis

Отправлено 08 July 2014 - 11:57

isay777 сказал(а) 08 Июл 2014 - 10:47:

вот такая вылезла 

h0e2o5agfpzp.png

 

Покажите пожалуйста содержимое файла - media\zoo\applications\jbuniversal\framework\helpers\jbassets.php


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#113 isay777

isay777

Отправлено 09 July 2014 - 10:46

SmetDenis сказал(а) 08 Июл 2014 - 10:57:

Покажите пожалуйста содержимое файла - media\zoo\applications\jbuniversal\framework\helpers\jbassets.php

  1. <?php
  2.  
  3. /**
  4.  
  5. * JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
  6.  
  7. *
  8.  
  9. * @package jbzoo
  10.  
  11. * @version 2.x Pro
  12.  
  13. * @author JBZoo App http://jbzoo.com
  14.  
  15. * @copyright Copyright (C) JBZoo.com, All rights reserved.
  16.  
  17. * @license http://jbzoo.com/license-pro.php JBZoo Licence
  18.  
  19. * @coder Denis Smetannikov <denis@jbzoo.com>
  20.  
  21. */
  22.  
  23.  
  24.  
  25. // no direct access
  26.  
  27. defined('_JEXEC') or die('Restricted access');
  28.  
  29.  
  30.  
  31.  
  32.  
  33. /**
  34.  
  35. * Class JBAssetsHelper
  36.  
  37. */
  38.  
  39. class JBAssetsHelper extends AppHelper
  40.  
  41. {
  42.  
  43. /**
  44.  
  45. * @var JDocumentHTML
  46.  
  47. */
  48.  
  49. protected $_document = null;
  50.  
  51.  
  52.  
  53. /**
  54.  
  55. * @var int
  56.  
  57. */
  58.  
  59. protected $_isCaching = null;
  60.  
  61.  
  62.  
  63. /**
  64.  
  65. * Constructor
  66.  
  67. * @param $app
  68.  
  69. */
  70.  
  71. public function __construct($app)
  72.  
  73. {
  74.  
  75. parent::__construct($app);
  76.  
  77. $this->_document = JFactory::getDocument();
  78.  
  79. $this->_isCaching = $this->app->jbcache->isEnabled();
  80.  
  81. }
  82.  
  83.  
  84.  
  85. /**
  86.  
  87. * Set application styles files
  88.  
  89. * @param string $alias
  90.  
  91. */
  92.  
  93. public function setAppCss($alias = null)
  94.  
  95. {
  96.  
  97. $this->_include(array(
  98.  
  99. 'jbassets:css/jbzoo.css',
  100.  
  101. 'jbassets:css/jbzoo.' . $alias . '.css'
  102.  
  103. ), 'css');
  104.  
  105. }
  106.  
  107.  
  108.  
  109. /**
  110.  
  111. * Add script and styles for back-end
  112.  
  113. */
  114.  
  115. public function admin()
  116.  
  117. {
  118.  
  119. $this->jQuery();
  120.  
  121. $this->_include(array('jbassets:css/admin.css',), 'css');
  122.  
  123. $this->_include(array('jbassets:js/admin.js'), 'js');
  124.  
  125. }
  126.  
  127.  
  128.  
  129. /**
  130.  
  131. * Set application JavaScript files
  132.  
  133. * @param string $alias
  134.  
  135. */
  136.  
  137. public function setAppJS($alias = null)
  138.  
  139. {
  140.  
  141. $this->tools();
  142.  
  143. $this->_include(array(
  144.  
  145. 'jbassets:js/jbzoo.' . $alias . '.js'
  146.  
  147. ), 'js');
  148.  
  149. }
  150.  
  151.  
  152.  
  153. /**
  154.  
  155. * Include JBZoo Tools script
  156.  
  157. */
  158.  
  159. public function tools()
  160.  
  161. {
  162.  
  163. $this->jQuery();
  164.  
  165.  
  166.  
  167. if (defined('JDEBUG') && JDEBUG) {
  168.  
  169. $this->_include(array('jbassets:js/jquery.jbzootools.orig.js'), 'js');
  170.  
  171. } else {
  172.  
  173. $this->_include(array('jbassets:js/jquery.jbzootools.min.js'), 'js');
  174.  
  175. }
  176.  
  177. }
  178.  
  179.  
  180.  
  181. /**
  182.  
  183. * Init filter assets
  184.  
  185. * @param $alias
  186.  
  187. */
  188.  
  189. public function filter($alias = 'default')
  190.  
  191. {
  192.  
  193. $this->tools();
  194.  
  195. $this->_include(array(
  196.  
  197. 'jbassets:js/jbzoo.filter.js',
  198.  
  199. 'jbassets:js/jbzoo.filter.' . $alias . '.js'
  200.  
  201. ), 'js');
  202.  
  203.  
  204.  
  205. $this->_include(array(
  206.  
  207. 'jbassets:css/jbzoo.css',
  208.  
  209. 'jbassets:css/jbzoo.filter.css',
  210.  
  211. 'jbassets:css/jbzoo.filter.' . $alias . '.css'
  212.  
  213. ), 'css');
  214.  
  215. }
  216.  
  217.  
  218.  
  219. /**
  220.  
  221. * Init filter assets
  222.  
  223. * @param $alias
  224.  
  225. */
  226.  
  227. public function filterProps($alias = 'default')
  228.  
  229. {
  230.  
  231. $this->tools();
  232.  
  233. $this->_include(array(
  234.  
  235. 'jbassets:js/jbzoo.filter.js',
  236.  
  237. 'jbassets:js/jbzoo.filter.' . $alias . '.js'
  238.  
  239. ), 'js');
  240.  
  241.  
  242.  
  243. $this->_include(array(
  244.  
  245. 'jbassets:css/jbzoo.css',
  246.  
  247. 'jbassets:css/jbzoo.filter.css',
  248.  
  249. 'jbassets:css/jbzoo.filter.' . $alias . '.css'
  250.  
  251. ), 'css');
  252.  
  253. }
  254.  
  255.  
  256.  
  257. /**
  258.  
  259. * Include
  260.  
  261. * @param $type
  262.  
  263. */
  264.  
  265. public function itemStyle($type)
  266.  
  267. {
  268.  
  269. static $isAdded;
  270.  
  271.  
  272.  
  273. if (!isset($isAdded[$type]) && $type) {
  274.  
  275. $this->_include(array('jbassets:js/jbzoo.' . $type . '.js'), 'js');
  276.  
  277. $this->_include(array('jbassets:css/jbzoo.' . $type . '.css'), 'css');
  278.  
  279.  
  280.  
  281. if (!isset($isAdded)) {
  282.  
  283. $isAdded = array();
  284.  
  285. }
  286.  
  287.  
  288.  
  289. $isAdded[$type] = true;
  290.  
  291. }
  292.  
  293. }
  294.  
  295.  
  296.  
  297. /**
  298.  
  299. * Include jQuery UI lib
  300.  
  301. */
  302.  
  303. public function jQueryUI()
  304.  
  305. {
  306.  
  307. $this->jQuery();
  308.  
  309. $this->_include(array('libraries:jquery/jquery-ui.custom.css',), 'css');
  310.  
  311. $this->_include(array('libraries:jquery/jquery-ui.custom.min.js'), 'js');
  312.  
  313. }
  314.  
  315.  
  316.  
  317. /**
  318.  
  319. * Include fancybox lib
  320.  
  321. */
  322.  
  323. public function fancybox()
  324.  
  325. {
  326.  
  327. $this->jQuery();
  328.  
  329. $this->_include(array('jbassets:css/libraries.css'), 'css');
  330.  
  331. $this->_include(array('jbassets:js/jquery.libraries.min.js',), 'js');
  332.  
  333. }
  334.  
  335.  
  336.  
  337. /**
  338.  
  339. * Include Uikit framework
  340.  
  341. */
  342.  
  343. public function uikit(){
  344.  
  345. $this->jQuery();
  346.  
  347. $this->_include(array('jbassets:js/uikit.min.js'), 'js');
  348.  
  349. $this->_include(array('jbassets:css/uikit.css'), 'css');
  350.  
  351. }
  352.  
  353.  
  354.  
  355. /**
  356.  
  357. * Include table sorter lib
  358.  
  359. */
  360.  
  361. public function tablesorter()
  362.  
  363. {
  364.  
  365. $this->jQuery();
  366.  
  367. $this->_include(array('jbassets:css/libraries.css'), 'css');
  368.  
  369. $this->_include(array('jbassets:js/jquery.libraries.min.js',), 'js');
  370.  
  371. }
  372.  
  373.  
  374.  
  375. /**
  376.  
  377. * Include chosen lib
  378.  
  379. */
  380.  
  381. public function chosen()
  382.  
  383. {
  384.  
  385. $this->jQuery();
  386.  
  387. $this->_include(array('jbassets:css/libraries.css'), 'css');
  388.  
  389. $this->_include(array('jbassets:js/jquery.libraries.min.js',), 'js');
  390.  
  391. }
  392.  
  393.  
  394.  
  395. /**
  396.  
  397. * Include datepicker lib
  398.  
  399. */
  400.  
  401. public function datepicker()
  402.  
  403. {
  404.  
  405. $this->jQueryUI();
  406.  
  407. $this->_include(array('libraries:jquery/plugins/timepicker/timepicker.css',), 'css');
  408.  
  409. $this->_include(array('libraries:jquery/plugins/timepicker/timepicker.js'), 'js');
  410.  
  411. }
  412.  
  413.  
  414.  
  415. /**
  416.  
  417. * Include datepicker lib
  418.  
  419. */
  420.  
  421. public function nivoslider()
  422.  
  423. {
  424.  
  425. $this->jQuery();
  426.  
  427. $this->_include(array('jbassets:css/libraries.css'), 'css');
  428.  
  429. $this->_include(array('jbassets:js/jquery.libraries.min.js',), 'js');
  430.  
  431. }
  432.  
  433.  
  434.  
  435. /**
  436.  
  437. * Include jQuery framework
  438.  
  439. */
  440.  
  441. public function jQuery()
  442.  
  443. {
  444.  
  445. static $isAdded;
  446.  
  447.  
  448.  
  449. if (!isset($isAdded)) {
  450.  
  451. $isAdded = true;
  452.  
  453. $this->_include(array('libraries:jquery/jquery.js'), 'js');
  454.  
  455. }
  456.  
  457. }
  458.  
  459.  
  460.  
  461. /**
  462.  
  463. * Include basket script
  464.  
  465. */
  466.  
  467. public function basket()
  468.  
  469. {
  470.  
  471. $this->tools();
  472.  
  473. }
  474.  
  475.  
  476.  
  477. /**
  478.  
  479. * Include jQuery compare
  480.  
  481. */
  482.  
  483. public function jQueryCompare()
  484.  
  485. {
  486.  
  487. $this->tools();
  488.  
  489. }
  490.  
  491.  
  492.  
  493. /**
  494.  
  495. * Include progress bar in document
  496.  
  497. */
  498.  
  499. public function progressBar()
  500.  
  501. {
  502.  
  503. $this->jQueryUI();
  504.  
  505. $this->tools();
  506.  
  507. }
  508.  
  509.  
  510.  
  511. /**
  512.  
  513. * Include tabs widget in document
  514.  
  515. */
  516.  
  517. public function tabs()
  518.  
  519. {
  520.  
  521. $this->tools();
  522.  
  523. $this->_include(array('jbassets:css/jbzoo.css'), 'css');
  524.  
  525. }
  526.  
  527.  
  528.  
  529. /**
  530.  
  531. * Include tabs widget in document
  532.  
  533. */
  534.  
  535. public function accordion()
  536.  
  537. {
  538.  
  539. $this->tools();
  540.  
  541. $this->_include(array('jbassets:css/jbzoo.css'), 'css');
  542.  
  543. }
  544.  
  545.  
  546.  
  547. /**
  548.  
  549. * Init jbzoo compare
  550.  
  551. */
  552.  
  553. public function initJBCompare()
  554.  
  555. {
  556.  
  557. static $isAdded;
  558.  
  559.  
  560.  
  561. $this->jQuery();
  562.  
  563. $this->jQueryCompare();
  564.  
  565.  
  566.  
  567. if (!isset($isAdded)) {
  568.  
  569. $isAdded = true;
  570.  
  571. $this->addScript('jQuery(function($){ $(".jbzoo .jsJBZooCompare").JBCompareButtons(); });');
  572.  
  573. }
  574.  
  575. }
  576.  
  577.  
  578.  
  579. /**
  580.  
  581. * Include jQuery favorite
  582.  
  583. */
  584.  
  585. public function jQueryFavorite()
  586.  
  587. {
  588.  
  589. $this->tools();
  590.  
  591. }
  592.  
  593.  
  594.  
  595. /**
  596.  
  597. * Init JBprice Advance plugin
  598.  
  599. */
  600.  
  601. public function initJBpriceAdvance()
  602.  
  603. {
  604.  
  605. $this->tools();
  606.  
  607. }
  608.  
  609.  
  610.  
  611. /**
  612.  
  613. * Init JBZoo favorite
  614.  
  615. */
  616.  
  617. public function initJBFavorite()
  618.  
  619. {
  620.  
  621. static $isAdded;
  622.  
  623.  
  624.  
  625. $this->jQueryFavorite();
  626.  
  627.  
  628.  
  629. if (!isset($isAdded)) {
  630.  
  631. $isAdded = true;
  632.  
  633. $this->addScript('jQuery(function($){ $(".jbzoo .jsJBZooFavorite").JBFavoriteButtons(); });');
  634.  
  635. }
  636.  
  637. }
  638.  
  639.  
  640.  
  641. /**
  642.  
  643. * Assets for payment page
  644.  
  645. */
  646.  
  647. public function payment()
  648.  
  649. {
  650.  
  651.  
  652.  
  653. }
  654.  
  655.  
  656.  
  657. /**
  658.  
  659. * Init jqueryui autocomplete
  660.  
  661. */
  662.  
  663. public function jbimagePopup()
  664.  
  665. {
  666.  
  667. static $isAdded;
  668.  
  669.  
  670.  
  671. $this->jQuery();
  672.  
  673. $this->fancybox();
  674.  
  675.  
  676.  
  677. if (!isset($isAdded)) {
  678.  
  679. $isAdded = true;
  680.  
  681. $this->addScript('jQuery(function($){
  682.  
  683. $("a.jbimage-link[rel=jbimage-popup], a.jbimage-gallery").fancybox({
  684.  
  685. "helpers" : {
  686.  
  687. "title" : { type : "outside" },
  688.  
  689. "buttons": { position:"top" },
  690.  
  691. "thumbs" : { width :80, height:80 }
  692.  
  693. }
  694.  
  695. });
  696.  
  697. });');
  698.  
  699. }
  700.  
  701. }
  702.  
  703.  
  704.  
  705. /**
  706.  
  707. * Height fix for items columns
  708.  
  709. */
  710.  
  711. public function heightFix()
  712.  
  713. {
  714.  
  715. static $isAdded;
  716.  
  717.  
  718.  
  719. $this->jQuery();
  720.  
  721.  
  722.  
  723. if (!isset($isAdded)) {
  724.  
  725. $isAdded = true;
  726.  
  727. $this->addScript('jQuery(function($){
  728.  
  729. setTimeout(function(){
  730.  
  731. var maxHeight = tmpHeight = 0;
  732.  
  733. $(".jbzoo .items .column, .jbzoo .items .uk-column .jbzoo-item-teaser").each(function(n, obj){
  734.  
  735. var tmpHeight = parseInt($(obj).height(), 10);
  736.  
  737. if (maxHeight < tmpHeight) {
  738.  
  739. maxHeight = tmpHeight;
  740.  
  741. }
  742.  
  743. }).css({height:maxHeight});
  744.  
  745.  
  746.  
  747. var maxHeight = tmpHeight = 0;
  748.  
  749. $(".jbzoo .subcategories .column, .jbzoo .subcategories .subcategory-container > .uk-panel").each(function(n, obj){
  750.  
  751. var tmpHeight = parseInt($(obj).height(), 10);
  752.  
  753. if (maxHeight < tmpHeight) {
  754.  
  755. maxHeight = tmpHeight;
  756.  
  757. }
  758.  
  759. }).css({height:maxHeight});
  760.  
  761.  
  762.  
  763. var maxHeight = tmpHeight = 0;
  764.  
  765. $(".jbzoo .related-items .column").each(function(n, obj){
  766.  
  767. var tmpHeight = parseInt($(obj).height(), 10);
  768.  
  769. if (maxHeight < tmpHeight) {
  770.  
  771. maxHeight = tmpHeight;
  772.  
  773. }
  774.  
  775. }).css({height:maxHeight});
  776.  
  777. }, 300);
  778.  
  779. });');
  780.  
  781. }
  782.  
  783. }
  784.  
  785.  
  786.  
  787. /**
  788.  
  789. * Add to script
  790.  
  791. */
  792.  
  793. public function addRootUrl()
  794.  
  795. {
  796.  
  797. static $isAdded;
  798.  
  799. if (!isset($isAdded)) {
  800.  
  801. $isAdded = true;
  802.  
  803. $this->addVar('JB_URL_ROOT', JURI::root());
  804.  
  805. }
  806.  
  807. }
  808.  
  809.  
  810.  
  811. /**
  812.  
  813. * Include basketitems element widget
  814.  
  815. */
  816.  
  817. public function basketItems()
  818.  
  819. {
  820.  
  821. $this->tools();
  822.  
  823. }
  824.  
  825.  
  826.  
  827. /**
  828.  
  829. * Add global variable to javascript
  830.  
  831. * @param $varName
  832.  
  833. * @param $value
  834.  
  835. */
  836.  
  837. public function addVar($varName, $value)
  838.  
  839. {
  840.  
  841. $this->addScript('var ' . $varName . ' = ' . json_encode($value) . ';');
  842.  
  843. }
  844.  
  845.  
  846.  
  847. /**
  848.  
  849. * Init select cascade
  850.  
  851. */
  852.  
  853. public function initSelectCascade()
  854.  
  855. {
  856.  
  857. $this->tools();
  858.  
  859. }
  860.  
  861.  
  862.  
  863. /**
  864.  
  865. * Init script for JBCascadeSelect
  866.  
  867. * @param string $uniqid
  868.  
  869. * @param string $itemList
  870.  
  871. */
  872.  
  873. public function initJBCascadeSelect($uniqid, $itemList)
  874.  
  875. {
  876.  
  877. static $isAdded;
  878.  
  879. $this->jQuery();
  880.  
  881.  
  882.  
  883. if (!isset($isAdded)) {
  884.  
  885. $isAdded = array();
  886.  
  887. }
  888.  
  889.  
  890.  
  891. if (!isset($isAdded[$uniqid])) {
  892.  
  893.  
  894.  
  895. $this->addScript('jQuery(function($){
  896.  
  897. $(".jbcascadeselect-wrapper.jbcascadeselect-' . $uniqid . '").JBCascadeSelect({
  898.  
  899. "items": ' . json_encode($itemList) . ',
  900.  
  901. "uniqid" : "' . $uniqid . '",
  902.  
  903. "text_all" : " - ' . JText::_('JBZOO_ALL') . ' - "
  904.  
  905. });
  906.  
  907. });');
  908.  
  909.  
  910.  
  911. $isAdded[$uniqid] = true;
  912.  
  913. }
  914.  
  915. }
  916.  
  917.  
  918.  
  919. /**
  920.  
  921. * Init jqueryui autocomplete
  922.  
  923. */
  924.  
  925. public function initAutocomplete()
  926.  
  927. {
  928.  
  929. static $isAdded;
  930.  
  931.  
  932.  
  933. $this->jQuery();
  934.  
  935. $this->jQueryUI();
  936.  
  937.  
  938.  
  939. if (!isset($isAdded)) {
  940.  
  941. $isAdded = true;
  942.  
  943. $this->addScript('jQuery(function($){
  944.  
  945. $(".jbzoo .jsAutocomplete").each(function (n, obj) {
  946.  
  947. var $input = $(obj),
  948.  
  949. $form = $input.closest("form");
  950.  
  951. $input.autocomplete({
  952.  
  953. minLength: 2,
  954.  
  955. source: function( request, response ) {
  956.  
  957. var term = request.term;
  958.  
  959. lastXhr = $.getJSON("' . $this->app->jbrouter->autocomplete() . '",
  960.  
  961. {
  962.  
  963. "name" : $input.attr("name"),
  964.  
  965. "value" : term,
  966.  
  967. "app_id": $(".jsApplicationId", $form).val(),
  968.  
  969. "type" : $(".jsItemType", $form).val()
  970.  
  971. },
  972.  
  973. function(data, status, xhr) {
  974.  
  975. $input.removeClass("ui-autocomplete-loading");
  976.  
  977. response(data);
  978.  
  979. }
  980.  
  981. );
  982.  
  983. }
  984.  
  985. });
  986.  
  987. });
  988.  
  989. })');
  990.  
  991. }
  992.  
  993. }
  994.  
  995.  
  996.  
  997. /**
  998.  
  999. * jQuery accordion lib init
  1000.  
  1001. */
  1002.  
  1003. public function jqueryAccordion()
  1004.  
  1005. {
  1006.  
  1007. static $isAdded;
  1008.  
  1009.  
  1010.  
  1011. $this->accordion();
  1012.  
  1013.  
  1014.  
  1015. if (!isset($isAdded)) {
  1016.  
  1017. $isAdded = true;
  1018.  
  1019. $this->addScript('jQuery(function($){
  1020.  
  1021. $(".jbzoo .jsAccordion").each(function(n, obj){
  1022.  
  1023. var $obj = $(obj),
  1024.  
  1025. id = "jbaccordion-" + n;
  1026.  
  1027. $obj.attr("id", id);
  1028.  
  1029. $("#" + id).JBZooAccordion();
  1030.  
  1031. });
  1032.  
  1033. })');
  1034.  
  1035. }
  1036.  
  1037. }
  1038.  
  1039.  
  1040.  
  1041. /**
  1042.  
  1043. * Init price widget
  1044.  
  1045. */
  1046.  
  1047. public function initJBPrice()
  1048.  
  1049. {
  1050.  
  1051. static $isAdded;
  1052.  
  1053.  
  1054.  
  1055. $this->tools();
  1056.  
  1057.  
  1058.  
  1059. if (!isset($isAdded)) {
  1060.  
  1061. $isAdded = true;
  1062.  
  1063. $this->addScript('jQuery(function($){ $(".jbzoo .jsPrice").JBZooPrice(); });');
  1064.  
  1065. }
  1066.  
  1067. }
  1068.  
  1069.  
  1070.  
  1071. /**
  1072.  
  1073. * Add script to document
  1074.  
  1075. * @param string $script
  1076.  
  1077. */
  1078.  
  1079. public function addScript($script)
  1080.  
  1081. {
  1082.  
  1083. if (!$this->app->jbrequest->isAjax()) {
  1084.  
  1085. $this->_document->addScriptDeclaration("\n" . $script);
  1086.  
  1087. }
  1088.  
  1089.  
  1090.  
  1091. }
  1092.  
  1093.  
  1094.  
  1095. /**
  1096.  
  1097. * Get site root URL
  1098.  
  1099. * @return string
  1100.  
  1101. */
  1102.  
  1103. public function _getRoot()
  1104.  
  1105. {
  1106.  
  1107. static $root;
  1108.  
  1109.  
  1110.  
  1111. if (!isset($root)) {
  1112.  
  1113. $jUri = JURI::getInstance();
  1114.  
  1115. $root = $jUri->getScheme() . '://' . $jUri->getHost() . '/';
  1116.  
  1117. $root = '/';
  1118.  
  1119. }
  1120.  
  1121.  
  1122.  
  1123. return $root;
  1124.  
  1125. }
  1126.  
  1127.  
  1128.  
  1129. /**
  1130.  
  1131. * Include JS in document
  1132.  
  1133. * @param $files
  1134.  
  1135. * @return bool
  1136.  
  1137. */
  1138.  
  1139. public function js($files)
  1140.  
  1141. {
  1142.  
  1143. return $this->_include((array)$files, 'js');
  1144.  
  1145. }
  1146.  
  1147.  
  1148.  
  1149. /**
  1150.  
  1151. * Include CSS in document
  1152.  
  1153. * @param $files
  1154.  
  1155. * @return bool
  1156.  
  1157. */
  1158.  
  1159. public function css($files)
  1160.  
  1161. {
  1162.  
  1163. return $this->_include((array)$files, 'css');
  1164.  
  1165. }
  1166.  
  1167.  
  1168.  
  1169. /**
  1170.  
  1171. * Include files to document
  1172.  
  1173. * @param array $files
  1174.  
  1175. * @param $type
  1176.  
  1177. * @return bool
  1178.  
  1179. */
  1180.  
  1181. protected function _include(array $files, $type)
  1182.  
  1183. {
  1184.  
  1185. static $includedFiles;
  1186.  
  1187.  
  1188.  
  1189. if (!isset($includedFiles)) {
  1190.  
  1191. $includedFiles = array();
  1192.  
  1193. }
  1194.  
  1195.  
  1196.  
  1197. if (count($files) && !$this->app->jbrequest->isAjax()) {
  1198.  
  1199. foreach ($files as $file) {
  1200.  
  1201.  
  1202.  
  1203. $isExternal = strpos($file, 'http') !== false;
  1204.  
  1205.  
  1206.  
  1207. $filePath = $file;
  1208.  
  1209. if (!$isExternal) {
  1210.  
  1211. $fullPath = $this->app->path->path($file);
  1212.  
  1213. $filePath = $this->app->path->url($file);
  1214.  
  1215. }
  1216.  
  1217.  
  1218.  
  1219. if ($filePath) {
  1220.  
  1221.  
  1222.  
  1223. if (!$isExternal) {
  1224.  
  1225. $filePath = $filePath . '?ver=' . date("Ymd", filemtime($fullPath));
  1226.  
  1227. $filePath = $this->_getRoot() . $this->app->path->relative($filePath);
  1228.  
  1229. }
  1230.  
  1231.  
  1232.  
  1233. if ($type == 'css') {
  1234.  
  1235. $this->_document->addStylesheet($filePath);
  1236.  
  1237.  
  1238.  
  1239. } elseif ($type == 'js') {
  1240.  
  1241. $this->_document->addScript($filePath);
  1242.  
  1243. }
  1244.  
  1245.  
  1246.  
  1247. }
  1248.  
  1249. }
  1250.  
  1251.  
  1252.  
  1253. return true;
  1254.  
  1255. }
  1256.  
  1257.  
  1258.  
  1259. return false;
  1260.  
  1261. }
  1262.  
  1263.  
  1264.  
  1265. /**
  1266.  
  1267. * Init modal window
  1268.  
  1269. * @param string $class
  1270.  
  1271. * @param array $opt
  1272.  
  1273. */
  1274.  
  1275. public function behaviorModal($class = 'modal', $opt = array())
  1276.  
  1277. {
  1278.  
  1279. JHTML::_('behavior.modal', 'a.' . $class, $opt);
  1280.  
  1281. }
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287. /**
  1288.  
  1289. * Add attr link target
  1290.  
  1291. */
  1292.  
  1293. public function jbzooLinks()
  1294.  
  1295. {
  1296.  
  1297. static $isAdded;
  1298.  
  1299.  
  1300.  
  1301. if (!isset($isAdded)) {
  1302.  
  1303. $isAdded = true;
  1304.  
  1305. $this->addScript('jQuery(function($){
  1306.  
  1307. $(".jbzoo a").attr("target", "_top");
  1308.  
  1309. });
  1310.  
  1311. ');
  1312.  
  1313. }
  1314.  
  1315. }
  1316.  
  1317. }
  1318.  

  • 0
ХОСТИНГ для сайтов jbzoo (все попугаи)

#114 SmetDenis

SmetDenis

Отправлено 09 July 2014 - 11:39

isay777,
Думаю у вас не верная (старая) версия файла.
Вы обновлялись частями? или используете модуль материалов в старой версии?

В файле явно не хватает
  1. public function initJBDelimiter($queryElement, $version = null)
  2. {
  3. $this->jQuery();
  4.  
  5. if (empty($version)) {
  6. $version = JString::substr($this->app->jbversion->joomla(), 0, 1);
  7. }
  8.  
  9. $this->addScript('jQuery(document).ready(function($){
  10. $("' . $queryElement . '").JBZooDelimiter({
  11. "version": "' . $version . '"
  12. });
  13. });'
  14. );
  15. }

  • 1
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#115 Alexan

Alexan

Отправлено 09 July 2014 - 17:57

при выборе категории заметил ошибку в браузере. посмотрите пожалуйста.

(это с вашего демо).

Прикрепленные изображения

  • Ск.PNG

  • 0

#116 SmetDenis

SmetDenis

Отправлено 14 July 2014 - 13:24

Alexan сказал(а) 09 Июл 2014 - 16:57:

при выборе категории заметил ошибку в браузере. посмотрите пожалуйста.

(это с вашего демо).

 

Это ошибка элемента категории Zoo. JBZoo на неё не может повлиять.

Ошибка не критическая. Ничего страшного не должно произойти.


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#117 Alexan

Alexan

Отправлено 14 July 2014 - 15:56

Спасибо. На всякий случай спросил.


  • 0

#118 pandaz

pandaz

Отправлено 18 July 2014 - 15:16

Подскажите, где посмотреть рабочий модуль просмотренных товаров??


У меня 404-я при нажатии "очистить историю", не могу понять из-за чего
EUBPzWY.png
 


  • 0

#119 SmetDenis

SmetDenis

Отправлено 18 July 2014 - 18:35

Можете показать страницу с модулем?
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#120 pandaz

pandaz

Отправлено 18 July 2014 - 19:09

http://dayx.com.ua/photographers
Надо просмотреть несколько страниц фотографов

Вверху будет модуль.

 

Скрин после нажатия:
hUuRPnP.png


Сообщение отредактировал pandaz: 18 July 2014 - 19:28

  • 0





Темы с аналогичным тегами обновление, jbzoo 2.1.4, новости, jbzooitem, jbcolor, jbzoosef

Click to return to top of page in style!