Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
PK[[eцwidgetkit_joomla.xmlnuW+A System - Widgetkit Joomla YOOtheme December 2011 Copyright (C) 2007 - 2011 YOOtheme GmbH http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only YOOtheme Proprietary Use License (http://www.yootheme.com/license) info@yootheme.com http://www.yootheme.com 1.0.0 Joomla Content plugin for Widgetkit developed by YOOtheme (http://www.yootheme.com) widgetkit_joomla.php assets layouts widgets helper.php PK[[^tassets/js/dashboard.jsnuW+A/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */ (function(b){var a=function(){};b.extend(a.prototype,{name:"JoomlaDashboard",options:{edit_ids:[]},initialize:function(a,c){this.options=b.extend({},this.options,c);var d=this;a.find(".actions a.action.edit").each(function(){-1 render('title', array('title' => ($widget->id ? 'Edit' : 'Add').' ' . ucfirst($type))); ?>
">

Joomla Articles

xpath('params/param')) { $settings = array_merge($settings, $setting); } foreach ($settings as $setting) { $name = (string) $setting->attributes()->name; $type = (string) $setting->attributes()->type; $label = (string) $setting->attributes()->label; $name = (string) $setting->attributes()->name; $default = (string) $setting->attributes()->default; $value = isset($widget->joomla[$name]) ? $widget->joomla[$name] : $default; echo '
'; echo '

'.$label.'

'; echo '
'; echo $this['field']->render($type, 'joomla['.$name.']', $value, $setting); echo '
'; echo '
'; } ?>

PK[[F8wwlayouts/fields/category.phpnuW+A', $this['field']->attributes(compact('name'))); foreach (JHtml::_('category.options', 'com_content') as $option) { // set attributes $attributes = array('value' => $option->value); // is checked ? if ($option->value == $value) { $attributes = array_merge($attributes, array('selected' => 'selected')); } printf('', $this['field']->attributes($attributes), $option->text); } printf('');PK[[sOKwidgetkit_joomla.phpnuW+Aenabled) { return; } // load widgetkit require_once(JPATH_ADMINISTRATOR.'/components/com_widgetkit/classes/widgetkit.php'); // get widgetkit instance $this->widgetkit = Widgetkit::getInstance(); // register plugin paths $path = JPATH_ROOT.'/plugins/system/widgetkit_joomla/'; $this->widgetkit['path']->register($path, 'widgetkit_joomla.root'); $this->widgetkit['path']->register($path.'widgets', 'widgetkit_joomla.widgets'); $this->widgetkit['path']->register($path.'assets', 'widgetkit_joomla.assets'); // load helper require_once($path.'helper.php'); // bind init event $this->widgetkit['event']->bind('admin', array($this, 'init')); $this->widgetkit['event']->bind('site', array($this, 'init')); $this->widgetkit['event']->bind('site', array($this, 'loadAssets')); $this->widgetkit['event']->bind('widgetoutput', array($this, '_applycontentplugins')); } /* Function: init Init Admin Widgets Returns: void */ public function init() { // require widget files foreach ($this->widgetkit['path']->dirs('widgetkit_joomla.widgets:') as $widget) { if ($file = $this->widgetkit['path']->path("widgetkit_joomla.widgets:{$widget}/{$widget}.php")) { // require widget file require_once($file); } } } /* Function: loadAssets Load widgets css/js assets. Returns: Void */ public function loadAssets() { $this->widgetkit['asset']->addFile('css', 'widgetkit_joomla.assets:css/style.css'); } /* Function: _applycontentplugins Apply content plugins Returns: Void */ public function _applycontentplugins(&$text) { // import joomla content plugins JPluginHelper::importPlugin('content'); $registry = new JRegistry(''); $dispatcher = JDispatcher::getInstance(); $article = JTable::getInstance('content'); $article->text = $text; $dispatcher->trigger('onPrepareContent', array(&$article, &$registry, 0)); $dispatcher->trigger('onContentPrepare', array('com_widgetkit', &$article, &$registry, 0)); $text = $article->text; } } /* Class: JoomlaWidget Joomla Widget base class */ class JoomlaWidget { /* widgetkit */ public $widgetkit; /* type */ public $type; /* options */ public $options; /* Function: Constructor Class Constructor. */ public function __construct() { // init vars $this->widgetkit = Widgetkit::getInstance(); $this->type = strtolower(str_replace('Joomla', '', get_class($this))); $this->options = $this->widgetkit['system']->options; // bind events $this->widgetkit['event']->bind('dashboard', array($this, 'dashboard')); $this->widgetkit['event']->bind("render", array($this, 'render')); $this->widgetkit['event']->bind("task:edit_{$this->type}_joomla", array($this, 'edit')); $this->widgetkit['event']->bind("task:save_{$this->type}_joomla", array($this, 'save')); // register path $this->widgetkit['path']->register($this->widgetkit['path']->path('widgetkit_joomla.widgets:'.$this->type), "joomla{$this->type}"); } /* Function: dashboard Render dashboard layout Returns: Void */ public function dashboard() { // add js $this->widgetkit['asset']->addFile('js', 'widgetkit_joomla.assets:js/dashboard.js'); $widget_ids = array(); foreach ($this->widgetkit['widget']->all($this->type) as $widget) { if (isset($widget->joomla)) { $widget_ids[] = $widget->id; } } $this->widgetkit['asset']->addString('js', 'jQuery(function($) { $(\'div.dashboard #'.$this->type.'\').JoomlaDashboard({edit_ids : '.json_encode($widget_ids).'}); });'); } /* Function: edit Edit action Returns: Void */ public function edit($id = null) { // get xml settings and widget $xml = simplexml_load_file($this->widgetkit['path']->path("{$this->type}:{$this->type}.xml")); $widget = $this->widgetkit[$this->type]->get($id ? $id : $this->widgetkit['request']->get('id', 'int')); // get style and xml $style = isset($widget->settings['style']) ? $widget->settings['style'] : 'default'; $style_xml = simplexml_load_file($this->widgetkit['path']->path("{$this->type}:styles/{$style}/config.xml")); // get params and xml $joomla_xml = simplexml_load_file($this->widgetkit['path']->path("joomla{$this->type}:{$this->type}.xml")); $type = $this->type; $this->widgetkit['path']->register($this->widgetkit['path']->path('widgetkit_joomla.root:layouts'), 'layouts'); echo $this->widgetkit['template']->render("edit", compact('widget', 'xml', 'style_xml', 'type', 'joomla_xml')); } /* Function: render Render widget on site Returns: String */ public function render($widget) { if (isset($widget->joomla) && $widget->type == $this->type) { $widget->items = array(); $params = $this->widgetkit['data']->create($widget->joomla); $items = $this->widgetkit['widgetkitjoomla']->getList($params); $i = 0; $widget_items = array(); foreach ($items as $item) { // add title $widget_items[$i]['title'] = $item->title; // add content $widget_items[$i]['content'] = $this->widgetkit['widgetkitjoomla']->renderItem($item, $params); $widget_items[$i]['navigation'] = ''; $widget_items[$i]['caption'] = ''; $i++; } $widget->items = $widget_items; } } /* Function: save Save action Returns: Void */ public function save() { // save data $data['type'] = $this->type; $data['id'] = $this->widgetkit['request']->get('id', 'int'); $data['name'] = $this->widgetkit['request']->get('name', 'string'); $data['settings'] = $this->widgetkit['request']->get('settings', 'array'); $data['style'] = $this->widgetkit['request']->get('settings.style', 'array'); $data['joomla'] = $this->widgetkit['request']->get('joomla', 'array'); // convert numeric strings to real integers if (isset($data["settings"]) && is_array($data["settings"])) { $data["settings"] = array_map(create_function('$item', 'return is_numeric($item) ? (float) $item : $item;'), $data["settings"]); } $this->edit($this->widgetkit['widget']->save($data)); } }PK[[K helper.phpnuW+Aintrotext; if ($params->get('readmore') && $item->readmore) { $link = JRoute::_(ContentHelperRoute::getArticleRoute($item->id, $item->catid)); $result .= '' . JText::_('COM_CONTENT_READ_MORE_TITLE') . ''; } return $result; } public function getList($params) { if (!$catid = (int) $params->get('catid', 0)) { return array(); } // Ordering $direction = null; switch ($params->get('order')) { case 'random': $ordering = 'RAND()'; break; case 'date': $ordering = 'created'; break; case 'rdate': $ordering = 'created'; $direction = 'DESC'; break; case 'alpha': $ordering = 'title'; break; case 'ralpha': $ordering = 'title'; $direction = 'DESC'; break; case 'hits': $ordering = 'hits'; break; case 'rhits': $ordering = 'hits'; $direction = 'DESC'; break; case 'ordering': default: $ordering = 'a.ordering'; break; } jimport('legacy.model.legacy'); JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models', 'ContentModel'); $model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' => true)); $model->setState('params', JFactory::getApplication()->getParams()); $model->setState('filter.category_id', $catid); $model->setState('filter.published', 1); $model->setState('filter.access', true); $model->setState('list.ordering', $ordering); $model->setState('list.direction', $direction); $model->setState('list.start', 0); $model->setState('list.limit', (int) $params->get('items', 0)); $model->setState('filter.subcategories', $params->get('subcategories')); $model->setState('filter.max_category_levels', 999); return $model->getItems(); } } PK[[z|PPwidgets/accordion/accordion.phpnuW+Awidgets/accordion/accordion.xmlnuW+A PK[[PPwidgets/slideshow/slideshow.phpnuW+A PK[[a޿+widgets/slideshow/styles/default/config.xmlnuW+A PK[[,widgets/slideshow/styles/tabs_bar/config.xmlnuW+A PK[[ktp(widgets/slideshow/styles/list/config.xmlnuW+A PK[[>widgets/slideshow/slideshow.xmlnuW+A PK[[eцwidgetkit_joomla.xmlnuW+APK[[^tassets/js/dashboard.jsnuW+APK[[Xx*uhhassets/css/style.cssnuW+APK[[98̋ { layouts/edit.phpnuW+APK[[F8wwlayouts/fields/category.phpnuW+APK[[sOK{widgetkit_joomla.phpnuW+APK[[K 4helper.phpnuW+APK[[z|PP=widgets/accordion/accordion.phpnuW+APK[[> ?widgets/accordion/accordion.xmlnuW+APK[[PP3Dwidgets/slideshow/slideshow.phpnuW+APK[[;k•(Ewidgets/slideshow/styles/tabs/config.xmlnuW+APK[[a޿+Hwidgets/slideshow/styles/default/config.xmlnuW+APK[[,Owidgets/slideshow/styles/tabs_bar/config.xmlnuW+APK[[ktp(Rwidgets/slideshow/styles/list/config.xmlnuW+APK[[>Uwidgets/slideshow/slideshow.xmlnuW+APKjZ