Пример #1
0
 function display($tpl = null)
 {
     // Get data from the model
     $data = $this->get('Data');
     $this->assignRef('data', $data);
     parent::display($tpl);
 }
Пример #2
0
 function display($tpl = null)
 {
     echo '
     <style type="text/css">
     .icon-48-logo_left { background-image: url(../administrator/components/com_contentbuilder/views/logo_left.png); }
     </style>
     ';
     jimport('joomla.version');
     $version = new JVersion();
     if (version_compare($version->getShortVersion(), '1.6', '>=')) {
         echo '<link rel="stylesheet" href="' . JURI::root(true) . '/administrator/components/com_contentbuilder/views/bluestork.fix.css" type="text/css" />';
     }
     JToolBarHelper::title('<img src="components/com_contentbuilder/views/logo_right.png" alt="" align="top" /> <span style="display:inline-block; vertical-align:middle"> :: ' . JText::_('COM_CONTENTBUILDER_FORMS') . '</span>', 'logo_left.png');
     JToolBarHelper::editList();
     // Get data from the model
     $items = $this->get('Data');
     $pagination = $this->get('Pagination');
     $state = $this->get('state');
     $lists['users_search'] = $state->get('users_search');
     $lists['order_Dir'] = $state->get('users_filter_order_Dir');
     $lists['order'] = $state->get('users_filter_order');
     $lists['state'] = JHTML::_('grid.state', $state->get('users_filter_state'));
     $lists['limitstart'] = $state->get('limitstart');
     $ordering = $lists['order'] == 'ordering';
     $this->assignRef('ordering', $ordering);
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Пример #3
0
 function display($tpl = null)
 {
     JHTML::_('behavior.tooltip');
     $document = JFactory::getDocument();
     $document->addScript(JURI::root(true) . '/administrator/components/com_contentbuilder/assets/js/jscolor/jscolor.js');
     echo '
     <style type="text/css">
     .icon-48-logo_left { background-image: url(../administrator/components/com_contentbuilder/views/logo_left.png); }
     </style>
     ';
     jimport('joomla.version');
     $version = new JVersion();
     if (version_compare($version->getShortVersion(), '1.6', '>=')) {
         echo '<link rel="stylesheet" href="' . JURI::root(true) . '/administrator/components/com_contentbuilder/views/bluestork.fix.css" type="text/css" />';
     }
     $tables = $this->get('DbTables');
     $form = $this->get('Storage');
     $elements = $this->get('Data');
     $pagination = $this->get('Pagination');
     $isNew = $form->id < 1;
     $text = $isNew ? JText::_('COM_CONTENTBUILDER_NEW') : JText::_('COM_CONTENTBUILDER_EDIT');
     if (version_compare(CBJOOMLAVERSION, '3.0', '<')) {
         JToolBarHelper::title('<img src="components/com_contentbuilder/views/logo_right.png" alt="" align="top" /> <span style="display:inline-block; vertical-align:middle"> :: ' . ($isNew ? JText::_('COM_CONTENTBUILDER_STORAGES') : $form->title) . ' : <small><small>[ ' . $text . ' ]</small></small></span>', 'logo_left.png');
     } else {
         JToolBarHelper::title('ContentBuilder :: ' . ($isNew ? JText::_('COM_CONTENTBUILDER_STORAGES') : $form->title) . ' : <small><small>[ ' . $text . ' ]</small></small></span>', 'logo_left.png');
     }
     JToolBarHelper::apply();
     JToolBarHelper::save();
     if (version_compare(CBJOOMLAVERSION, '3.0', '<')) {
         JToolBarHelper::customX('saveNew', 'save', '', JText::_('COM_CONTENTBUILDER_SAVENEW'), false);
         JToolBarHelper::customX('listpublish', 'publish', '', JText::_('COM_CONTENTBUILDER_PUBLISH'), false);
         JToolBarHelper::customX('listunpublish', 'unpublish', '', JText::_('COM_CONTENTBUILDER_UNPUBLISH'), false);
         JToolBarHelper::customX('listdelete', 'delete', '', JText::_('COM_CONTENTBUILDER_DELETE_FIELDS'), false);
     } else {
         JToolBarHelper::custom('saveNew', 'save', '', JText::_('COM_CONTENTBUILDER_SAVENEW'), false);
         JToolBarHelper::custom('listpublish', 'publish', '', JText::_('COM_CONTENTBUILDER_PUBLISH'), false);
         JToolBarHelper::custom('listunpublish', 'unpublish', '', JText::_('COM_CONTENTBUILDER_UNPUBLISH'), false);
         JToolBarHelper::custom('listdelete', 'delete', '', JText::_('COM_CONTENTBUILDER_DELETE_FIELDS'), false);
     }
     //JToolBarHelper::deleteList();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         // for existing items the button is renamed `close`
         JToolBarHelper::cancel('cancel', 'Close');
     }
     $state = $this->get('state');
     $lists['order_Dir'] = $state->get('fields_filter_order_Dir');
     $lists['order'] = $state->get('fields_filter_order');
     $lists['limitstart'] = $state->get('limitstart');
     $ordering = $lists['order'] == 'ordering';
     $this->assignRef('ordering', $ordering);
     $this->assignRef('form', $form);
     $this->assignRef('elements', $elements);
     $this->assignRef('tables', $tables);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Пример #4
0
 function display($tpl = null)
 {
     echo '
     <style type="text/css">
     .icon-48-logo_left { background-image: url(../administrator/components/com_contentbuilder/views/logo_left.png); }
     </style>
     ';
     JToolBarHelper::title('<img src="components/com_contentbuilder/views/logo_right.png" alt="" align="top" /> <span style="display:inline-block; vertical-align:middle"> :: ' . JText::_('COM_CONTENTBUILDER_ABOUT') . '</span>', 'logo_left.png');
     parent::display($tpl);
 }
Пример #5
0
 function display($tpl = null)
 {
     jimport('joomla.version');
     $version = new JVersion();
     if (version_compare($version->getShortVersion(), '1.6', '>=')) {
         echo '<link rel="stylesheet" href="' . JURI::root(true) . '/administrator/components/com_contentbuilder/views/bluestork.fix.css" type="text/css" />';
     }
     // Get data from the model
     $subject = $this->get('Data');
     $this->assignRef('subject', $subject);
     parent::display($tpl);
 }
Пример #6
0
 function display($tpl = null)
 {
     // Get data from the model
     $items = $this->get('Data');
     $perms = $this->get('Permissions');
     $page_heading = $this->get('ShowPageHeading');
     $introtext = $this->get('ShowIntrotext');
     $show_tags = $this->get('ShowTags');
     $show_id = $this->get('ShowId');
     $show_permissions = $this->get('ShowPermissions');
     $show_permissions_new = $this->get('ShowPermissionsNew');
     $show_permissions_edit = $this->get('ShowPermissionsEdit');
     $pagination = $this->get('Pagination');
     $tags = $this->get('Tags');
     $state = $this->get('state');
     $lists['order_Dir'] = $state->get('forms_filter_order_Dir');
     $lists['order'] = $state->get('forms_filter_order');
     $lists['state'] = JHTML::_('grid.state', $state->get('forms_filter_state'));
     $lists['limitstart'] = $state->get('limitstart');
     $lists['filter_tag'] = $state->get('forms_filter_tag');
     $ordering = $lists['order'] == 'ordering';
     $this->assignRef('show_permissions', $show_permissions);
     $this->assignRef('show_permissions_new', $show_permissions_new);
     $this->assignRef('show_permissions_edit', $show_permissions_edit);
     $this->assignRef('page_heading', $page_heading);
     $this->assignRef('show_tags', $show_tags);
     $this->assignRef('show_id', $show_id);
     $this->assignRef('introtext', $introtext);
     $this->assignRef('perms', $perms);
     $this->assignRef('ordering', $ordering);
     $this->assignRef('tags', $tags);
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Пример #7
0
 function display($tpl = null)
 {
     parent::display($tpl);
 }
Пример #8
0
 function display($tpl = null)
 {
     // Get data from the model
     $subject = $this->get('Data');
     if (!class_exists('cbFeMarker')) {
         echo '
         <style type="text/css">
         .icon-48-logo_left { background-image: url(../administrator/components/com_contentbuilder/views/logo_left.png); }
         </style>
         ';
         jimport('joomla.version');
         $version = new JVersion();
         if (version_compare($version->getShortVersion(), '3.0', '<')) {
             JToolBarHelper::title('<img src="components/com_contentbuilder/views/logo_right.png" alt="" align="top" /> <span style="display:inline-block; vertical-align:middle"> :: ' . $subject->page_title . '</span>', 'logo_left.png');
         } else {
             JToolBarHelper::title($subject->page_title . '</span>', 'logo_left.png');
         }
     }
     $event = new stdClass();
     JFactory::getDBO()->setQuery("Select articles.`article_id` From #__contentbuilder_articles As articles, #__content As content Where content.id = articles.article_id And (content.state = 1 Or content.state = 0) And articles.form_id = " . intval($subject->form_id) . " And articles.record_id = " . JFactory::getDBO()->Quote($subject->record_id));
     $article = JFactory::getDBO()->loadResult();
     $table = JTable::getInstance('content');
     jimport('joomla.version');
     $version = new JVersion();
     // required for pagebreak plugin
     JRequest::setVar('view', 'article');
     if (version_compare($version->getShortVersion(), '1.6', '>=')) {
         require_once JPATH_SITE . DS . 'components' . DS . 'com_content' . DS . 'helpers' . DS . 'route.php';
         $isNew = true;
         if ($article > 0) {
             $table->load($article);
             $isNew = false;
         }
         $table->cbrecord = $subject;
         $table->text = $table->cbrecord->template;
         $alias = $table->alias ? contentbuilder::stringURLUnicodeSlug($table->alias) : contentbuilder::stringURLUnicodeSlug($subject->page_title);
         if (trim(str_replace('-', '', $alias)) == '') {
             $datenow = JFactory::getDate();
             $alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
         }
         // we pass the slug with a flag in the end, and see in the end if the slug has been used in the output
         $table->slug = ($article > 0 ? $article : 0) . ':' . $alias . ':contentbuilder_slug_used';
         $registry = new JRegistry();
         if (version_compare($version->getShortVersion(), '3.0', '>=')) {
             $registry->loadString($table->attribs);
         } else {
             $registry->loadJSON($table->attribs);
         }
         JPluginHelper::importPlugin('content');
         $dispatcher = JDispatcher::getInstance();
         // seems to be a joomla bug. if sef urls is enabled, "start" is used for paging in articles, else "limitstart" will be used
         $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
         $start = JRequest::getVar('start', 0, '', 'int');
         $dispatcher->trigger('onContentPrepare', array('com_content.article', &$table, &$registry, $limitstart ? $limitstart : $start));
         $subject->template = $table->text;
         $results = $dispatcher->trigger('onContentAfterTitle', array('com_content.article', &$table, &$registry, $limitstart ? $limitstart : $start));
         $event->afterDisplayTitle = trim(implode("\n", $results));
         $results = $dispatcher->trigger('onContentBeforeDisplay', array('com_content.article', &$table, &$registry, $limitstart ? $limitstart : $start));
         $event->beforeDisplayContent = trim(implode("\n", $results));
         $results = $dispatcher->trigger('onContentAfterDisplay', array('com_content.article', &$table, &$registry, $limitstart ? $limitstart : $start));
         $event->afterDisplayContent = trim(implode("\n", $results));
         // if the slug has been used, we would like to stay in com_contentbuilder, so we re-arrange the resulting url a little
         if (strstr($subject->template, 'contentbuilder_slug_used') !== false) {
             $matches = array(array(), array());
             preg_match_all("/\\\"([^\"]*contentbuilder_slug_used[^\"]*)\\\"/i", $subject->template, $matches);
             foreach ($matches[1] as $match) {
                 $sub = '';
                 $parameters = explode('?', $match);
                 if (count($parameters) == 2) {
                     $parameters[1] = str_replace('&amp;', '&', $parameters[1]);
                     $parameter = explode('&', $parameters[1]);
                     foreach ($parameter as $par) {
                         $keyval = explode('=', $par);
                         if ($keyval[0] != '' && $keyval[0] != 'option' && $keyval[0] != 'id' && $keyval[0] != 'record_id' && $keyval[0] != 'view' && $keyval[0] != 'catid' && $keyval[0] != 'Itemid' && $keyval[0] != 'lang') {
                             $sub .= '&' . $keyval[0] . '=' . (isset($keyval[1]) ? $keyval[1] : '');
                         }
                     }
                 }
                 $subject->template = str_replace($match, JRoute::_('index.php?option=com_contentbuilder&controller=details&id=' . JRequest::getInt('id') . '&record_id=' . JRequest::getCmd('record_id', '') . '&Itemid=' . JRequest::getInt('Itemid', 0) . $sub), $subject->template);
             }
         }
         // the same for the case a toc has been created
         if (isset($table->toc) && strstr($table->toc, 'contentbuilder_slug_used') !== false) {
             preg_match_all("/\\\"([^\"]*contentbuilder_slug_used[^\"]*)\\\"/i", $table->toc, $matches);
             foreach ($matches[1] as $match) {
                 $sub = '';
                 $parameters = explode('?', $match);
                 if (count($parameters) == 2) {
                     $parameters[1] = str_replace('&amp;', '&', $parameters[1]);
                     $parameter = explode('&', $parameters[1]);
                     foreach ($parameter as $par) {
                         $keyval = explode('=', $par);
                         if ($keyval[0] != '' && $keyval[0] != 'option' && $keyval[0] != 'id' && $keyval[0] != 'record_id' && $keyval[0] != 'view' && $keyval[0] != 'catid' && $keyval[0] != 'Itemid' && $keyval[0] != 'lang') {
                             $sub .= '&' . $keyval[0] . '=' . (isset($keyval[1]) ? $keyval[1] : '');
                         }
                     }
                 }
                 $table->toc = str_replace($match, JRoute::_('index.php?option=com_contentbuilder&controller=details&id=' . JRequest::getInt('id') . '&record_id=' . JRequest::getCmd('record_id', '') . '&Itemid=' . JRequest::getInt('Itemid', 0) . $sub), $table->toc);
             }
         }
     } else {
         $params =& JComponentHelper::getParams('com_content');
         $isNew = true;
         if ($article > 0) {
             $table->load($article);
             $isNew = false;
         }
         $params->merge($table->attribs);
         $table->cbrecord = $subject;
         $table->text = $table->cbrecord->template;
         JPluginHelper::importPlugin('content');
         $dispatcher = JDispatcher::getInstance();
         $dispatcher->trigger('onPrepareContent', array(&$table, &$params, JRequest::getVar('limitstart', 0, '', 'int')));
         $subject->template = $table->text;
         $results = $dispatcher->trigger('onAfterDisplayTitle', array(&$table, &$params, JRequest::getVar('limitstart', 0, '', 'int')));
         $event->afterDisplayTitle = trim(implode("\n", $results));
         $results = $dispatcher->trigger('onBeforeDisplayContent', array(&$table, &$params, JRequest::getVar('limitstart', 0, '', 'int')));
         $event->beforeDisplayContent = trim(implode("\n", $results));
         $results = $dispatcher->trigger('onAfterDisplayContent', array(&$table, &$params, JRequest::getVar('limitstart', 0, '', 'int')));
         $event->afterDisplayContent = trim(implode("\n", $results));
     }
     if (!isset($table->toc)) {
         $table->toc = '';
     }
     $pattern = '#<hr\\s+id=("|\')system-readmore("|\')\\s*\\/*>#i';
     $subject->template = preg_replace($pattern, '', $subject->template);
     JPluginHelper::importPlugin('contentbuilder_themes', $subject->theme_plugin);
     $dispatcher = JDispatcher::getInstance();
     $results = $dispatcher->trigger('getContentTemplateCss', array());
     $this->assignRef('theme_css', implode('', $results));
     JPluginHelper::importPlugin('contentbuilder_themes', $subject->theme_plugin);
     $dispatcher = JDispatcher::getInstance();
     $results = $dispatcher->trigger('getContentTemplateJavascript', array());
     $this->assignRef('theme_js', implode('', $results));
     $this->assignRef('toc', $table->toc);
     $this->assignRef('event', $event);
     $this->assignRef('show_page_heading', $subject->show_page_heading);
     $this->assignRef('tpl', $subject->template);
     $this->assignRef('page_title', $subject->page_title);
     $this->assignRef('created', $subject->created);
     $this->assignRef('created_by', $subject->created_by);
     $this->assignRef('modified', $subject->modified);
     $this->assignRef('modified_by', $subject->modified_by);
     $this->assignRef('metadesc', $subject->metadesc);
     $this->assignRef('metakey', $subject->metakey);
     $this->assignRef('author', $subject->author);
     $this->assignRef('rights', $subject->rights);
     $this->assignRef('robots', $subject->robots);
     $this->assignRef('xreference', $subject->xreference);
     $this->assignRef('print_button', $subject->print_button);
     $this->assignRef('show_back_button', $subject->show_back_button);
     parent::display($tpl);
 }
Пример #9
0
 function display($tpl = null)
 {
     JHTML::_('behavior.tooltip');
     $document = JFactory::getDocument();
     $document->addScript(JURI::root(true) . '/administrator/components/com_contentbuilder/assets/js/jscolor/jscolor.js');
     echo '
     <style type="text/css">
     .icon-48-logo_left { background-image: url(../administrator/components/com_contentbuilder/views/logo_left.png); }
     </style>
     ';
     jimport('joomla.version');
     $version = new JVersion();
     if (version_compare($version->getShortVersion(), '1.6', '>=')) {
         echo '<link rel="stylesheet" href="' . JURI::root(true) . '/administrator/components/com_contentbuilder/views/bluestork.fix.css" type="text/css" />';
     }
     $form = $this->get('Form');
     $elements = $this->get('Data');
     $all_elements = $this->get('AllElements');
     $pagination = $this->get('Pagination');
     $isNew = $form->id < 1;
     $text = $isNew ? JText::_('COM_CONTENTBUILDER_NEW') : JText::_('COM_CONTENTBUILDER_EDIT');
     if (version_compare($version->getShortVersion(), '3.0', '<')) {
         JToolBarHelper::title('<img src="components/com_contentbuilder/views/logo_right.png" alt="" align="top" /> <span style="display:inline-block; vertical-align:middle"> :: ' . ($isNew ? JText::_('COM_CONTENTBUILDER_FORM') : $form->name) . ' : <small><small>[ ' . $text . ' ]</small></small></span>', 'logo_left.png');
     } else {
         JToolBarHelper::title('ContentBuilder :: ' . ($isNew ? JText::_('COM_CONTENTBUILDER_FORM') : $form->name) . ' : <small><small>[ ' . $text . ' ]</small></small></span>', 'logo_left.png');
     }
     //JToolBarHelper::customX('linkable', 'default', '', JText::_('COM_CONTENTBUILDER_LINKABLE'), false);
     //JToolBarHelper::customX('not_linkable', 'default', '', JText::_('COM_CONTENTBUILDER_NOT_LINKABLE'), false);
     JToolBarHelper::apply();
     JToolBarHelper::save();
     if (version_compare($version->getShortVersion(), '3.0', '<')) {
         JToolBarHelper::customX('list_include', 'default', '', JText::_('COM_CONTENTBUILDER_LIST_INCLUDE'), false);
         JToolBarHelper::customX('no_list_include', 'default', '', JText::_('COM_CONTENTBUILDER_NO_LIST_INCLUDE'), false);
         JToolBarHelper::customX('editable', 'edit', '', JText::_('COM_CONTENTBUILDER_EDITABLE'), false);
         JToolBarHelper::customX('not_editable', 'edit', '', JText::_('COM_CONTENTBUILDER_NOT_EDITABLE'), false);
         JToolBarHelper::customX('listpublish', 'publish', '', JText::_('COM_CONTENTBUILDER_PUBLISH'), false);
         JToolBarHelper::customX('listunpublish', 'unpublish', '', JText::_('COM_CONTENTBUILDER_UNPUBLISH'), false);
         JToolBarHelper::customX('saveNew', 'save', '', JText::_('COM_CONTENTBUILDER_SAVENEW'), false);
     } else {
         JToolBarHelper::custom('saveNew', 'save', '', JText::_('COM_CONTENTBUILDER_SAVENEW'), false);
         JToolBarHelper::custom('list_include', 'menu', '', JText::_('COM_CONTENTBUILDER_LIST_INCLUDE'), false);
         JToolBarHelper::custom('no_list_include', 'menu', '', JText::_('COM_CONTENTBUILDER_NO_LIST_INCLUDE'), false);
         JToolBarHelper::custom('editable', 'edit', '', JText::_('COM_CONTENTBUILDER_EDITABLE'), false);
         JToolBarHelper::custom('not_editable', 'edit', '', JText::_('COM_CONTENTBUILDER_NOT_EDITABLE'), false);
         JToolBarHelper::custom('listpublish', 'publish', '', JText::_('COM_CONTENTBUILDER_PUBLISH'), false);
         JToolBarHelper::custom('listunpublish', 'unpublish', '', JText::_('COM_CONTENTBUILDER_UNPUBLISH'), false);
     }
     //JToolBarHelper::deleteList();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         // for existing items the button is renamed `close`
         JToolBarHelper::cancel('cancel', 'Close');
     }
     $state = $this->get('state');
     $lists['order_Dir'] = $state->get('elements_filter_order_Dir');
     $lists['order'] = $state->get('elements_filter_order');
     $lists['limitstart'] = $state->get('limitstart');
     $ordering = $lists['order'] == 'ordering';
     jimport('joomla.version');
     $version = new JVersion();
     $gmap = array();
     if (version_compare($version->getShortVersion(), '1.6', '<')) {
         $acl = JFactory::getACL();
         $gmap = $acl->get_group_children_tree(null, 'USERS', false);
     } else {
         $db = JFactory::getDbo();
         $query = 'SELECT CONCAT( REPEAT(\'..\', COUNT(parent.id) - 1), node.title) as text, node.id as value' . ' FROM #__usergroups AS node, #__usergroups AS parent' . ' WHERE node.lft BETWEEN parent.lft AND parent.rgt' . ' GROUP BY node.id' . ' ORDER BY node.lft';
         $db->setQuery($query);
         $gmap = $db->loadObjectList();
     }
     $form->config = unserialize(base64_decode($form->config));
     $actionPlugins = $this->get('ListStatesActionPlugins');
     $verificationPlugins = $this->get('VerificationPlugins');
     $themePlugins = $this->get('ThemePlugins');
     $this->assignRef('list_states_action_plugins', $actionPlugins);
     $this->assignRef('verification_plugins', $verificationPlugins);
     $this->assignRef('theme_plugins', $themePlugins);
     $this->assignRef('gmap', $gmap);
     $this->assignRef('ordering', $ordering);
     $this->assignRef('form', $form);
     $this->assignRef('elements', $elements);
     $this->assignRef('all_elements', $all_elements);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Пример #10
0
 function display($tpl = null)
 {
     // Get data from the model
     $subject = $this->get('Data');
     if (!class_exists('cbFeMarker')) {
         echo '
         <style type="text/css">
         .icon-48-logo_left { background-image: url(../administrator/components/com_contentbuilder/views/logo_left.png); }
         </style>
         ';
         jimport('joomla.version');
         $version = new JVersion();
         if (version_compare($version->getShortVersion(), '3.0', '<')) {
             JToolBarHelper::title('<img src="components/com_contentbuilder/views/logo_right.png" alt="" align="top" /> <span style="display:inline-block; vertical-align:middle"> :: ' . $subject->page_title . '</span>', 'logo_left.png');
         } else {
             JToolBarHelper::title($subject->page_title . '</span>', 'logo_left.png');
         }
     }
     $pagination = $this->get('Pagination');
     $total = $this->get('Total');
     $state = $this->get('state');
     $lists['order_Dir'] = $state->get('formsd_filter_order_Dir');
     $lists['order'] = $state->get('formsd_filter_order');
     $lists['filter'] = $state->get('formsd_filter');
     $lists['filter_state'] = $state->get('formsd_filter_state');
     $lists['filter_publish'] = $state->get('formsd_filter_publish');
     $lists['filter_language'] = $state->get('formsd_filter_language');
     $lists['limitstart'] = $state->get('limitstart');
     JPluginHelper::importPlugin('contentbuilder_themes', $subject->theme_plugin);
     $dispatcher = JDispatcher::getInstance();
     $results = $dispatcher->trigger('getListViewCss', array());
     $this->assignRef('theme_css', implode('', $results));
     JPluginHelper::importPlugin('contentbuilder_themes', $subject->theme_plugin);
     $dispatcher = JDispatcher::getInstance();
     $results = $dispatcher->trigger('getListViewJavascript', array());
     $this->assignRef('theme_js', implode('', $results));
     $this->assignRef('show_filter', $subject->show_filter);
     $this->assignRef('show_records_per_page', $subject->show_records_per_page);
     $this->assignRef('page_class', $subject->page_class);
     $this->assignRef('show_page_heading', $subject->show_page_heading);
     $this->assignRef('slug', $subject->slug);
     $this->assignRef('slug2', $subject->slug2);
     $this->assignRef('form_id', $subject->form_id);
     $this->assignRef('labels', $subject->labels);
     $this->assignRef('visible_cols', $subject->visible_cols);
     $this->assignRef('linkable_elements', $subject->linkable_elements);
     $this->assignRef('show_id_column', $subject->show_id_column);
     $this->assignRef('page_title', $subject->page_title);
     $this->assignRef('intro_text', $subject->intro_text);
     $this->assignRef('export_xls', $subject->export_xls);
     $this->assignRef('display_filter', $subject->display_filter);
     $this->assignRef('edit_button', $subject->edit_button);
     $this->assignRef('select_column', $subject->select_column);
     $this->assignRef('states', $subject->states);
     $this->assignRef('list_state', $subject->list_state);
     $this->assignRef('list_publish', $subject->list_publish);
     $this->assignRef('list_language', $subject->list_language);
     $this->assignRef('list_article', $subject->list_article);
     $this->assignRef('list_author', $subject->list_author);
     $this->assignRef('list_rating', $subject->list_rating);
     $this->assignRef('rating_slots', $subject->rating_slots);
     $this->assignRef('state_colors', $subject->state_colors);
     $this->assignRef('state_titles', $subject->state_titles);
     $this->assignRef('published_items', $subject->published_items);
     $this->assignRef('languages', $subject->languages);
     $this->assignRef('lang_codes', $subject->lang_codes);
     $this->assignRef('title_field', $subject->title_field);
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $subject->items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('total', $total);
     $this->assignRef('own_only', $own_only = JFactory::getApplication()->isSite() ? $subject->own_only_fe : $subject->own_only);
     parent::display($tpl);
 }