/** * Attach css, js and create toolbar for default view * * @param midxed $params */ private function _makeViewDefault($params = null) { $mainframe =& JFactory::getApplication(); // prepare database stats, etc $this->_prepareControlPanelData(); // add behaviors and styles as needed $modalSelector = 'a.modalediturl'; $js = '\\function(){window.parent.shAlreadySqueezed = false;if(window.parent.shReloadModal) {parent.window.location=\'index.php?option=com_sh404sef\';window.parent.shReloadModal=true}}'; $params = array('overlayOpacity' => 0, 'classWindow' => 'sh404sef-popup', 'classOverlay' => 'sh404sef-popup', 'onClose' => $js); Sh404sefHelperHtml::modal($modalSelector, $params); // add our javascript JHTML::script('cp.js', Sh404sefHelperGeneral::getComponentUrl() . '/assets/js/'); // add analytics and other ajax calls loader $sefConfig =& Sh404sefFactory::getConfig(); $analyticsBootstrap = $sefConfig->analyticsReportsEnabled ? 'shSetupAnalytics({report:"dashboard",showFilters:"no"});' : ''; $js = 'window.addEvent(\'domready\', function(){ ' . $analyticsBootstrap . ' shSetupQuickControl(); shSetupSecStats(); shSetupUpdates();});'; $document =& JFactory::getDocument(); $document->addScriptDeclaration($js); // add our own css JHtml::styleSheet('cp.css', Sh404sefHelperGeneral::getComponentUrl() . '/assets/css/'); // import tabs jimport('joomla.html.pane'); // add tooltips handler JHTML::_('behavior.tooltip'); // add title $title = Sh404sefHelperGeneral::makeToolbarTitle(JText::_('COM_SH404SEF_CONTROL_PANEL'), $icon = 'sh404sef', $class = 'sh404sef-toolbar-title'); $mainframe->set('JComponentTitle', $title); // add space for our ajax progress indicator // Get the JComponent instance of JToolBar $bar =& JToolBar::getInstance('toolbar'); // add a div to display our ajax-call-in-progress indicator $bar->addButtonPath(JPATH_COMPONENT . DS . 'classes'); $html = '<div id="sh-progress-cpprogress"></div>'; $bar->appendButton('custom', $html, 'sh-progress-button-cpprogress'); }
function fetchButton($type = 'Popup', $name = '', $text = '', $url = '', $popupOptions = array()) { // merge with default options $defaultOptions = array('class' => 'modal', 'size' => array('x' => 640, 'y' => 500)); $options = array_merge($defaultOptions, $popupOptions); $text = JText::_($text); $class = $this->fetchIconClass($name); $doTask = $this->_getCommand($name, $url); $modalOptionsString = Sh404sefHelperHtml::makeSqueezeboxOptions($options); $rel = ' {handler: \'iframe\'' . (empty($modalOptionsString) ? '' : ', ' . $modalOptionsString) . '}'; $html = "<a class=\"{$options['class']}\" href=\"{$doTask}\" rel=\"{$rel}\">\n"; $html .= "<span class=\"{$class}\" title=\"{$text}\">\n"; $html .= "</span>\n"; $html .= "{$text}\n"; $html .= "</a>\n"; return $html; }
/** * Method to create a select list of possible Open Graph object types * * @access public * @param int ID of current item * @param string name of select list * @param boolean if true, changing selected item will submit the form (assume is an "adminForm") * @param boolean, if true, a line 'Select all' is inserted at the start of the list * @param string the "Select all" to be displayed, if $addSelectAll is true * @return string HTML output */ public static function buildOpenGraphTypesList($current, $name, $autoSubmit = false, $addSelectDefault = false, $selectDefaultTitle = '', $customSubmit = '') { // build html options $data = array(); foreach (self::getDefinitions() as $typeDef) { $data[] = array('id' => $typeDef['name'], 'title' => JText::_($typeDef['title'])); } // add select all option if ($addSelectDefault) { $selectDefault = array('id' => SH404SEF_OPTION_VALUE_USE_DEFAULT, 'title' => $selectDefaultTitle); array_unshift($data, $selectDefault); } // use helper to build html $list = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit, $addSelectAll = false, $selectAllTitle = '', $customSubmit); // return list return $list; }
// sometimes users disable our plugin if (!defined('SH404SEF_AUTOLOADER_LOADED')) { echo 'sh404SEF system plugin has been disabled or has failed initializing. Please enable it again to use sh404SEF, with Joomla! <a href="index.php?option=com_plugins">plugin manager</a>'; return; } // Access check. if (!JFactory::getUser()->authorise('core.manage', 'com_sh404sef')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } // load base class file (functions, not autolaoded if (!defined('SH404SEF_BASE_CLASS_LOADED')) { $baseClassFile = JPATH_ADMINISTRATOR . '/components/com_sh404sef/sh404sef.class.php'; if (is_readable($baseClassFile)) { require_once $baseClassFile; } else { JError::RaiseError(500, JText::_('COM_SH404SEF_NOREAD') . "( {$baseClassFile} )<br />" . JText::_('COM_SH404SEF_CHK_PERMS')); } } // Ensure the behavior is loaded JHtml::_('behavior.framework'); if (version_compare(JVERSION, '3.0', 'ge')) { JHtml::_('bootstrap.framework'); } // find about specific controller requested $cName = JFactory::getApplication()->input->getCmd('c'); // get controller from factory $controller = Sh404sefFactory::getController($cName); Sh404sefHelperHtml::addSubmenu(JFactory::getApplication()->input); // read and execute task $controller->execute(JFactory::getApplication()->input->getCmd('task')); $controller->redirect();
/** * Get the JavaScript command for the button * * @access private * @param object $definition Button definition * @return string JavaScript command string * @since 1.5 */ public function _getCommand($name, $url, $userOptions) { if (substr($url, 0, 4) !== 'http') { $url = JURI::base() . $url; } $commands = array(); // calculate the various parts of the ajax call params, encoded as JSon if (!empty($userOptions['update'])) { $commands['update'] = $userOptions['update']; } // make that a json object $params = Sh404sefHelperHtml::JGetJSObject($commands); // calculate the full command $command = 'javascript: onclick=shAjaxHandler(\'' . $name . '\',' . $params . ',' . $userOptions['closewindow'] . ')'; return $command; }
/** * Attach css, js and create toolbar for default view * * @param midxed $params */ private function _makeViewDefault($params = null) { // prepare database stats, etc $this->_prepareControlPanelData(); // Get the JComponent instance of JToolBar $bar = JToolBar::getInstance('toolbar'); if (version_compare(JVERSION, '3.0', 'ge')) { $document = JFactory::getDocument(); // render submenu sidebar $this->sidebar = JHtmlSidebar::render(); // add modal css and js ShlHtmlBs_helper::addBootstrapCss(JFactory::getDocument()); ShlHtmlBs_helper::addBootstrapJs(JFactory::getDocument()); // add title JToolbarHelper::title('sh404SEF: ' . JText::_('COM_SH404SEF_CONTROL_PANEL'), 'sh404sef-toolbar-title'); // prepare configuration button $bar->addButtonPath(SHLIB_ROOT_PATH . 'toolbarbutton'); $params = array(); $params['class'] = 'modaltoolbar btn-success'; $params['size'] = Sh404sefFactory::getPConfig()->windowSizes['configuration']; $params['buttonClass'] = 'btn-success btn btn-small modal'; $params['iconClass'] = 'icon-options'; $url = 'index.php?option=com_sh404sef&tmpl=component&c=configuration&view=configuration&component=com_sh404sef&hidemainmenu=1'; $bar->appendButton('J3popuptoolbarbutton', 'configj3', JText::_('COM_SH404SEF_CONFIGURATION'), $url, $params['size']['x'], $params['size']['y'], $top = 0, $left = 0, $onClose = '', $title = '', $params); $html = '<div id="sh-progress-cpprogress"></div>'; $bar->appendButton('custom', $html, 'sh-progress-button-cpprogress'); // add analytics and other ajax calls loader $sefConfig = Sh404sefFactory::getConfig(); $analyticsBootstrap = $sefConfig->analyticsReportsEnabled ? 'shSetupAnalytics({report:"dashboard",showFilters:"no"});' : ''; $js = 'jQuery(document).ready(function(){ ' . $analyticsBootstrap . ' shSetupQuickControl(); shSetupSecStats(); shSetupUpdates();});'; $document = JFactory::getDocument(); $document->addScriptDeclaration($js); } else { // add behaviors and styles as needed $modalSelector = 'a.modalediturl'; $js = '\\function(){window.parent.shAlreadySqueezed = false;if(window.parent.shReloadModal) {parent.window.location=\'index.php?option=com_sh404sef\';window.parent.shReloadModal=true}}'; $params = array('overlayOpacity' => 0, 'classWindow' => 'sh404sef-popup', 'classOverlay' => 'sh404sef-popup', 'onClose' => $js); Sh404sefHelperHtml::modal($modalSelector, $params); // import tabs jimport('joomla.html.pane'); // add tooltips handler JHTML::_('behavior.tooltip'); // add title $title = Sh404sefHelperGeneral::makeToolbarTitle(JText::_('COM_SH404SEF_CONTROL_PANEL'), $icon = 'sh404sef', $class = 'sh404sef-toolbar-title'); JFactory::getApplication()->JComponentTitle = $title; // add a div to display our ajax-call-in-progress indicator $bar->addButtonPath(JPATH_COMPONENT . '/' . 'classes'); $html = '<div id="sh-progress-cpprogress"></div>'; $bar->appendButton('custom', $html, 'sh-progress-button-cpprogress'); // add modal handler for configuration JHTML::_('behavior.modal'); $configbtn = '<a class="modal" href="index.php?option=com_sh404sef&tmpl=component&c=configuration&view=configuration&component=com_sh404sef&hidemainmenu=1" rel="{handler: \'iframe\', size: {x: window.getSize().x*0.90, y: window.getSize().y*0.90}, onClose: function() {}}"><span class="icon-32-options"></span>' . JText::_('COM_SH404SEF_CONFIGURATION') . '</a>'; $bar->appendButton('custom', $configbtn, 'sh-configbutton-button'); // add analytics and other ajax calls loader $sefConfig = Sh404sefFactory::getConfig(); $analyticsBootstrap = $sefConfig->analyticsReportsEnabled ? 'shSetupAnalytics({report:"dashboard",showFilters:"no"});' : ''; $js = 'window.addEvent(\'domready\', function(){ ' . $analyticsBootstrap . ' shSetupQuickControl(); shSetupSecStats(); shSetupUpdates();});'; $document = JFactory::getDocument(); $document->addScriptDeclaration($js); } // add our javascript JHTML::script(Sh404sefHelperGeneral::getComponentUrl() . '/assets/js/' . $this->joomlaVersionPrefix . '_cp.js'); // add our own css JHtml::styleSheet(Sh404sefHelperGeneral::getComponentUrl() . '/assets/css/' . $this->joomlaVersionPrefix . '_cp.css'); }
> <div class="span12 shl-center"> <?php echo JText::_('COM_SH404SEF_ANALYTICS_AVG_MEMORY_USED'); ?> </div> <div class="span12 shl-center"> <?php echo ShlHtmlBs_Helper::badge($this->escape(sprintf('%0.1f', $this->analytics->analyticsData->perf->avgMemoryUsed)) . ' Mb', 'info'); ?> </div> </div> <div class="span4" rel="tooltip" <?php echo Sh404sefHelperHtml::wrapBootstrapTipTitle(JText::_('COM_SH404SEF_ANALYTICS_USER_STATUS'), JText::_('COM_SH404SEF_ANALYTICS_TT_USER_STATUS')); ?> > <div class="span12 shl-center"> <?php echo JText::_('COM_SH404SEF_ANALYTICS_USER_STATUS'); ?> </div> <div class="span12 shl-center"> <?php echo ShlHtmlBs_Helper::badge($this->escape(sprintf('%0.1f', $this->analytics->analyticsData->perf->loggedInUserRate * 100)) . ' %', 'info'); ?> </div> </div> </div>
/** * prepare html filters to allow user to select the way she likes * to view reports */ protected function _prepareFilters() { // array to hold various filters $filters = array(); // find if we must display all filters. On dashboard, only a reduced set $allFilters = $this->_options['showFilters'] == 'yes'; // select account to retrieve data for (or rather, profile $customSubmit = ' onchange="shSetupAnalytics({' . ($allFilters ? '' : 'showFilters:\'no\'') . '});"'; $select = Sh404sefHelperHtml::buildSelectList($this->_accounts, $this->_options['accountId'], 'accountId', $autoSubmit = false, $addSelectAll = false, $selectAllTitle = '', $customSubmit); $filters[] = JText::_('COM_SH404SEF_ANALYTICS_ACCOUNT') . ': ' . $select; // dashboard only has account selection, no room for anything else // only shows main selection drop downs on analytics view if ($allFilters) { // select start date $select = JHTML::_('calendar', $this->_options['startDate'], 'startDate', 'startDate', '%Y-%m-%d', 'class="textinput"'); $filters[] = ' ' . JText::_('COM_SH404SEF_ANALYTICS_START_DATE') . ': ' . $select; // select end date $select = JHTML::_('calendar', $this->_options['endDate'], 'endDate', 'endDate', '%Y-%m-%d', 'class="textinput"'); $filters[] = ' ' . JText::_('COM_SH404SEF_ANALYTICS_END_DATE') . ': ' . $select; // select groupBy (day, week, month) $select = Sh404sefHelperAnalytics::buildAnalyticsGroupBySelectList($this->_options['groupBy'], 'groupBy', $autoSubmit = false, $addSelectAll = false, $selectAllTitle = '', $customSubmit); $filters[] = ' ' . JText::_('COM_SH404SEF_ANALYTICS_GROUP_BY') . ': ' . $select; // add a click to update link $filters[] = ' <a href="javascript: void(0);" onclick="javascript: shSetupAnalytics({forced:1' . ($allFilters ? '' : ',showFilters:\'no\'') . '});" > [' . JText::_('COM_SH404SEF_CHECK_ANALYTICS') . ']</a>'; } else { // on dashboard, there is no date select, so we must display the date range $filters[] = ' ' . JText::_('COM_SH404SEF_ANALYTICS_DATE_RANGE') . ' <div class="largertext">' . $this->_options['startDate'] . ' >> ' . $this->_options['endDate'] . '</div>'; } return $filters; }
/** * Returns html to display a main control panel icon * * @param string $function name of function performed by icon */ public static function getCPImage($function) { switch ($function) { case 'config_base': $img = ' <img src=\'components/com_sh404sef/assets/images/icon-48-cpanel.png\'/>'; $linkData = array('c' => 'config', 'tmpl' => 'component'); $urlData = array('title' => JText::_('COM_SH404SEF_CONFIG_DESC'), 'class' => 'modalediturl', 'anchor' => $img . '<span>' . JText::_('COM_SH404SEF_CONFIG') . '</span>'); $modalOptions = array('size' => array('x' => '\\window.getScrollSize().x*.9', 'y' => '\\window.getSize().y*.9')); $link = Sh404sefHelperHtml::makeLink(null, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); break; case 'config_ext': $img = ' <img src=\'components/com_sh404sef/assets/images/icon-48-ext.png\'/>'; $linkData = array('c' => 'config', 'layout' => 'ext', 'tmpl' => 'component'); $urlData = array('title' => JText::_('COM_SH404SEF_CONFIG_EXT_DESC'), 'class' => 'modalediturl', 'anchor' => $img . '<span>' . JText::_('COM_SH404SEF_CONFIG_EXT') . '</span>'); $modalOptions = array('size' => array('x' => '\\window.getScrollSize().x*.9', 'y' => '\\window.getSize().y*.9')); $link = Sh404sefHelperHtml::makeLink(null, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); break; case 'config_error_page': $img = ' <img src=\'components/com_sh404sef/assets/images/icon-48-errorpage.png\'/>'; $linkData = array('c' => 'config', 'layout' => 'errordocs', 'tmpl' => 'component'); $urlData = array('title' => JText::_('COM_SH404SEF_CONFIG_ERROR_PAGE_DESC'), 'class' => 'modalediturl', 'anchor' => $img . '<span>' . JText::_('COM_SH404SEF_CONFIG_ERROR_PAGE') . '</span>'); $modalOptions = array('size' => array('x' => '\\window.getScrollSize().x*.9', 'y' => '\\window.getSize().y*.9')); $link = Sh404sefHelperHtml::makeLink(null, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); break; case 'config_seo': $img = ' <img src=\'components/com_sh404sef/assets/images/icon-48-seo.png\'/>'; $linkData = array('c' => 'config', 'layout' => 'seo', 'tmpl' => 'component'); $urlData = array('title' => JText::_('COM_SH404SEF_CONFIG_SEO_DESC'), 'class' => 'modalediturl', 'anchor' => $img . '<span>' . JText::_('COM_SH404SEF_CONFIG_SEO') . '</span>'); $modalOptions = array('size' => array('x' => 700, 'y' => '\\window.getSize().y*.7')); $link = Sh404sefHelperHtml::makeLink(null, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); break; case 'config_social_seo': $img = ' <img src=\'components/com_sh404sef/assets/images/icon-48-facebook.png\'/>'; $linkData = array('c' => 'config', 'layout' => 'social_seo', 'tmpl' => 'component'); $urlData = array('title' => JText::_('COM_SH404SEF_CONFIG_SOCIAL_SEO_DESC'), 'class' => 'modalediturl', 'anchor' => $img . '<span>' . JText::_('COM_SH404SEF_CONFIG_SOCIAL_SEO') . '</span>'); $modalOptions = array('size' => array('x' => 700, 'y' => '\\window.getSize().y*.7')); $link = Sh404sefHelperHtml::makeLink(null, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); break; case 'config_sec': $img = ' <img src=\'components/com_sh404sef/assets/images/icon-48-sec.png\'/>'; $linkData = array('c' => 'config', 'layout' => 'sec', 'tmpl' => 'component'); $urlData = array('title' => JText::_('COM_SH404SEF_CONFIG_SEC_DESC'), 'class' => 'modalediturl', 'anchor' => $img . '<span>' . JText::_('COM_SH404SEF_CONFIG_SEC') . '</span>'); $modalOptions = array('size' => array('x' => 700, 'y' => '\\window.getSize().y*.9')); $link = Sh404sefHelperHtml::makeLink(null, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); break; case 'config_analytics': $img = ' <img src=\'components/com_sh404sef/assets/images/icon-48-analytics.png\'/>'; $linkData = array('c' => 'config', 'layout' => 'analytics', 'tmpl' => 'component'); $urlData = array('title' => JText::_('COM_SH404SEF_CONFIG_ANALYTICS_DESC'), 'class' => 'modalediturl', 'anchor' => $img . '<span>' . JText::_('COM_SH404SEF_CONFIG_ANALYTICS') . '</span>'); $modalOptions = array('size' => array('x' => 700, 'y' => '\\window.getSize().y*.9')); $link = Sh404sefHelperHtml::makeLink(null, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); break; case 'urlmanager': $img = 'icon-48-sefmanager.png'; $title = JText::_('COM_SH404SEF_VIEWURLDESC'); $anchor = JText::_('COM_SH404SEF_VIEWURL'); $link = 'index.php?option=com_sh404sef&c=urls&layout=default&view=urls'; $link = Sh404sefHelperHtml::_doLinkCPImage($img, $title, $anchor, $link); break; case '404manager': $img = 'icon-48-404log.png'; $title = JText::_('COM_SH404SEF_VIEW404DESC'); $anchor = JText::_('COM_SH404SEF_404_MANAGER'); $link = 'index.php?option=com_sh404sef&c=urls&layout=view404&view=urls'; $link = Sh404sefHelperHtml::_doLinkCPImage($img, $title, $anchor, $link); break; case 'aliasesmanager': $img = 'icon-48-aliases.png'; $title = JText::_('COM_SH404SEF_ALIASES_HELP'); $anchor = JText::_('COM_SH404SEF_ALIASES_MANAGER'); $link = 'index.php?option=com_sh404sef&c=aliases&layout=default&view=aliases'; $link = Sh404sefHelperHtml::_doLinkCPImage($img, $title, $anchor, $link); break; case 'pageidmanager': $img = 'icon-48-pageid.png'; $title = JText::_('COM_SH404SEF_CP_PAGEID_HELP'); $anchor = JText::_('COM_SH404SEF_PAGEID_MANAGER'); $link = 'index.php?option=com_sh404sef&c=pageids&layout=default&view=pageids'; $link = Sh404sefHelperHtml::_doLinkCPImage($img, $title, $anchor, $link); break; case 'metamanager': $img = 'icon-48-metas.png'; $title = JText::_('COM_SH404SEF_META_TAGS_DESC'); $anchor = JText::_('COM_SH404SEF_META_TAGS'); $link = 'index.php?option=com_sh404sef&c=metas&layout=default&view=metas'; $link = Sh404sefHelperHtml::_doLinkCPImage($img, $title, $anchor, $link); break; case 'analytics': $img = 'icon-48-analytics.png'; $title = JText::_('COM_SH404SEF_ANALYTICSDESC'); $anchor = JText::_('COM_SH404SEF_ANALYTICS_MANAGER'); $link = 'index.php?option=com_sh404sef&c=analytics&layout=default&view=analytics'; $link = Sh404sefHelperHtml::_doLinkCPImage($img, $title, $anchor, $link); break; case 'doc': $img = 'icon-48-doc.png'; $title = JText::_('COM_SH404SEF_INFODESC'); $anchor = JText::_('COM_SH404SEF_INFO'); $link = 'index.php?option=com_sh404sef&layout=info&view=default&task=info'; $link = Sh404sefHelperHtml::_doLinkCPImage($img, $title, $anchor, $link); break; } return $link; }
die('Direct Access to this location is not allowed.'); } switch ($this->sefConfig->analyticsDashboardDataType) { case 'ga:visits': $title = JText::_('COM_SH404SEF_ANALYTICS_DATA_VISITS_DESC_RAW'); break; case 'ga:visitors': $title = JText::_('COM_SH404SEF_ANALYTICS_DATA_VISITORS_DESC_RAW'); break; case 'ga:pageviews': $title = JText::_('COM_SH404SEF_ANALYTICS_GLOBAL_PAGEVIEWS_DESC_RAW'); break; default: $title = ''; break; } ?> <h2><?php echo Sh404sefHelperAnalytics::getDataTypeTitle(); ?> </h2> <div class="analytics-report-image"> <img rel="tooltip" <?php echo Sh404sefHelperHtml::wrapBootstrapTipTitle(Sh404sefHelperAnalytics::getDataTypeTitle(), $title); ?> src="<?php echo $this->analytics->analyticsData->images['visits']; ?> " /> </div>
echo Sh404sefHelperHtml::getCPImage('config_seo'); ?> </div> <div class="iconconfig"> <?php echo Sh404sefHelperHtml::getCPImage('config_analytics'); ?> </div> <div class="iconconfig"> <?php echo Sh404sefHelperHtml::getCPImage('config_sec'); ?> </div> <div class="iconconfig"> <?php echo Sh404sefHelperHtml::getCPImage('config_error_page'); ?> </div> </fieldset> <?php echo $pane->endPanel(); // if analytics data is not available, or not properly setup // the tab is still created, but at last position // if reports are set to not being displayed however // we don't display at all if (!$analyticsAvailable && $sefConfig->analyticsReportsEnabled) { echo $analyticsOutput; } echo $pane->endPane(); //</div>
} // sometimes users disable our plugin if (!defined('sh404SEF_AUTOLOADER_LOADED')) { echo 'sh404SEF system plugin has been disabled. Please enable it again to use sh404SEF, with Joomla! <a href="index.php?option=com_plugins">plugin manager</a>'; return; } // Access check. if (!JFactory::getUser()->authorise('core.manage', 'com_sh404sef')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } // Setup paths. $sef_config_class = JPATH_ADMINISTRATOR . '/components/com_sh404sef/sh404sef.class.php'; // Make sure class was loaded. if (!class_exists('shSEFConfig')) { if (is_readable($sef_config_class)) { require_once $sef_config_class; } else { JError::RaiseError(500, JText::_('COM_SH404SEF_NOREAD') . "( {$sef_config_class} )<br />" . JText::_('COM_SH404SEF_CHK_PERMS')); } } JHtml::_('behavior.framework'); // include sh404sef default language file shIncludeLanguageFile(); // find about specific controller requested $cName = JRequest::getCmd('c'); // get controller from factory $controller = Sh404sefFactory::getController($cName); Sh404sefHelperHtml::addSubmenu(JRequest::get()); // read and execute task $controller->execute(JRequest::getCmd('task')); $controller->redirect();
echo Sh404sefHelperHtml::getCPImage('pageidmanager'); ?> </div> <div class="iconothers"> <?php echo Sh404sefHelperHtml::getCPImage('404manager'); ?> </div> <div class="iconothers"> <?php echo Sh404sefHelperHtml::getCPImage('metamanager'); ?> </div> <div class="iconothers"> <?php echo Sh404sefHelperHtml::getCPImage('doc'); ?> </div> </fieldset> </div> </div> <div id="right" class="cp-block"> <div id="right-bottom" class="cp-inner-block"> <?php $pane =& JPane::getInstance('Tabs', array('allowAllClose' => true)); echo $pane->startPane("content-pane"); echo $pane->startPanel(JText16::_('Quick start'), 'qcontrol'); ?>
/** * sh404SEF - SEO extension for Joomla! * * @author Yannick Gaultier * @copyright (c) Yannick Gaultier 2012 * @package sh404sef * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.1.0.1559 * @date 2013-04-25 */ // Security check to ensure this file is being included by a parent file. if (!defined('_JEXEC')) { die('Direct Access to this location is not allowed.'); } $title = Sh404sefHelperHtml::wrapBootstrapTipTitle(JText::_('COM_SH404SEF_ANALYTICS_REPORT_SOURCES'), JText::_('COM_SH404SEF_ANALYTICS_DATA_SOURCES_DESC_RAW')); ?> <h2 rel="tooltip" <?php echo $title; ?> > <?php echo JText::_('COM_SH404SEF_ANALYTICS_REPORT_SOURCES') . JText::_('COM_SH404SEF_ANALYTICS_REPORT_BY_LABEL') . Sh404sefHelperAnalytics::getDataTypeTitle(); ?> </h2> <div class="analytics-report-image"><img src="<?php echo $this->analytics->analyticsData->images['sources']; ?> " /></div>
echo Sh404sefHelperHtml::wrapBootstrapTipTitle(JText::_('COM_SH404SEF_ANALYTICS_TOTAL_TWEETER_ENGAGEMENT'), JText::_('COM_SH404SEF_ANALYTICS_TOTAL_TWEETER_ENGAGEMENT_DESC')); ?> > <?php echo JText::_('COM_SH404SEF_ANALYTICS_TOTAL_TWEETER_ENGAGEMENT'); ?> </th> <th> <?php echo '%'; ?> </th> <th rel="tooltip" <?php echo Sh404sefHelperHtml::wrapBootstrapTipTitle(JText::_('COM_SH404SEF_ANALYTICS_TOP5_AVG_TIME_ON_PAGE'), JText::_('COM_SH404SEF_ANALYTICS_TT_AVG_TIME_ON_PAGE_DESC')); ?> > <?php echo JText::_('COM_SH404SEF_ANALYTICS_TOP5_AVG_TIME_ON_PAGE'); ?> </th> </tr> </thead> <tbody> <?php $k = 0; $i = 1; foreach ($this->analytics->analyticsData->topSocialTweeter as $entry) {
private function _pushConfigDataSocial_seo() { // get configuration object $sefConfig =& Sh404sefFactory::getConfig(); // push it into to the view $this->assignRef('sefConfig', $sefConfig); $std_opt = 'class="inputbox" size="2"'; // Open graph data params $lists['og_enable'] = JHTML::_('select.booleanlist', 'enableOpenGraphData', $std_opt, $sefConfig->enableOpenGraphData); $lists['og_type_select'] = Sh404sefHelperHtml::buildOpenGraphTypesList($sefConfig->ogType, 'ogType'); $lists['og_image'] = $sefConfig->ogImage; $lists['og_insert_description'] = JHTML::_('select.booleanlist', 'ogEnableDescription', $std_opt, $sefConfig->ogEnableDescription); $lists['og_insert_site_name'] = JHTML::_('select.booleanlist', 'ogEnableSiteName', $std_opt, $sefConfig->ogEnableSiteName); $lists['og_site_name'] = $sefConfig->ogSiteName; $lists['fb_admin_ids'] = $sefConfig->fbAdminIds; $lists['og_insert_location'] = JHTML::_('select.booleanlist', 'ogEnableLocation', $std_opt, $sefConfig->ogEnableLocation); $lists['og_latitude'] = $sefConfig->ogLatitude; $lists['og_longitude'] = $sefConfig->ogLongitude; $lists['og_street_address'] = $sefConfig->ogStreetAddress; $lists['og_locality'] = $sefConfig->ogLocality; $lists['og_postal_code'] = $sefConfig->ogPostalCode; $lists['og_region'] = $sefConfig->ogRegion; $lists['og_country_name'] = $sefConfig->ogCountryName; $lists['og_insert_contact'] = JHTML::_('select.booleanlist', 'ogEnableContact', $std_opt, $sefConfig->ogEnableContact); $lists['og_email'] = $sefConfig->ogEmail; $lists['og_phone_number'] = $sefConfig->ogPhoneNumber; $lists['og_fax_number'] = $sefConfig->ogFaxNumber; //push params in to view $this->assign('lists', $lists); }
<td colspan="7"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php $k = 0; if ($this->itemCount > 0) { for ($i = 0; $i < $this->itemCount; $i++) { $url =& $this->items[$i]; $checked = JHtml::_('grid.id', $i, $url->id); $custom = !empty($url->newurl) && $url->dateadd != '0000-00-00' ? '<img src="components/com_sh404sef/assets/images/icon-16-user.png" border="0" alt="Custom" />' : ' '; $mainUrl = Sh404sefHelperHtml::gridMainUrl($url, $i); ?> <tr class="<?php echo "row{$k}"; ?> "> <td align="center" width="3%"> <?php echo $this->pagination->getRowOffset($i); ?> </td> <td align="center" width="2%"> <?php echo $checked; ?> </td>
echo Sh404sefHelperHtml::wrapBootstrapTipTitle(JText::_('COM_SH404SEF_ANALYTICS_TOP5_URL'), JText::_('COM_SH404SEF_ANALYTICS_TT_URL_DESC')); ?> > <?php echo JText::_('COM_SH404SEF_ANALYTICS_TOP5_URL'); ?> </th> <th> <?php echo JText::_('COM_SH404SEF_ANALYTICS_SOCIAL_TYPE'); ?> </th> <th rel="tooltip" <?php echo Sh404sefHelperHtml::wrapBootstrapTipTitle(JText::_('COM_SH404SEF_ANALYTICS_TOTAL_PLUSONE_ENGAGEMENT'), JText::_('COM_SH404SEF_ANALYTICS_TOTAL_PLUSONE_ENGAGEMENT_DESC')); ?> > <?php echo JText::_('COM_SH404SEF_ANALYTICS_TOTAL_PLUSONE_ENGAGEMENT'); ?> </th> <th> <?php echo '%'; ?> </th> </tr> </thead>
<?php echo $checked; ?> </td> <td class="shl-list-hits"> <?php echo empty($url->cpt) ? ' ' : ShlHtmlBs_Helper::badge($url->cpt, 'info'); ?> </td> <td class="shl-list-sef"> <?php $params = array(); $linkData = array('c' => 'editurl', 'task' => 'edit', 'cid[]' => $url->id, 'tmpl' => 'component', 'view' => 'editurl'); $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData); $params['linkTitle'] = Sh404sefHelperHtml::abridge(JText::_('COM_SH404SEF_MODIFY_LINK_TITLE') . ' ' . $this->escape($url->oldurl), 'editurl'); $modalTitle = ''; $params['linkClass'] = 'shl-list-sef'; $params['linkType'] = 'a'; $name = '-editurl-' . $url->id; echo ShlHtmlModal_helper::modalLink($name, $this->escape($url->oldurl), $targetUrl, $sizes['editurl']['x'], $sizes['editurl']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params); ?> </td> <td class="center"> <?php $params = array(); $linkData = array('c' => 'notfound', 'notfound_url_id' => $url->id, 'tmpl' => 'component'); $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData); $modalTitle = ''; $params['linkTitle'] = JText::_('COM_SH404SEF_NOT_FOUND_SHOW_URLS_TITLE') . ' ' . $this->escape($url->oldurl); $params['linkClass'] = 'btn';
private function _pushDataSocial_seo() { // Open graph data params $ogData['og_enable'] = Sh404sefHelperHtml::buildBooleanAndDefaultSelectList( $this->meta->og_enable, 'og_enable'); $ogData['og_type'] = Sh404sefHelperHtml::buildOpenGraphTypesList($this->meta->og_type, 'og_type', $autoSubmit = false, $addSelectDefault = true, $selectDefaultTitle = JText::_('JOPTION_USE_DEFAULT'), $customSubmit = ''); $ogData['og_image'] = $this->meta->og_image; $ogData['og_enable_description'] = Sh404sefHelperHtml::buildBooleanAndDefaultSelectList( $this->meta->og_enable_description, 'og_enable_description'); $ogData['og_enable_site_name'] = Sh404sefHelperHtml::buildBooleanAndDefaultSelectList( $this->meta->og_enable_site_name, 'og_enable_site_name'); $ogData['og_enable_fb_admin_ids'] = Sh404sefHelperHtml::buildBooleanAndDefaultSelectList( $this->meta->og_enable_fb_admin_ids, 'og_enable_fb_admin_ids'); $ogData['og_site_name'] = $this->meta->og_site_name; $ogData['fb_admin_ids'] = $this->meta->fb_admin_ids; $ogData['og_enable_location'] = Sh404sefHelperHtml::buildBooleanAndDefaultSelectList( $this->meta->og_enable_location, 'og_enable_location'); $ogData['og_latitude'] = $this->meta->og_latitude; $ogData['og_longitude'] = $this->meta->og_longitude; $ogData['og_street_address'] = $this->meta->og_street_address; $ogData['og_locality'] = $this->meta->og_locality; $ogData['og_postal_code'] = $this->meta->og_postal_code; $ogData['og_region'] = $this->meta->og_region; $ogData['og_country_name'] = $this->meta->og_country_name; $ogData['og_enable_contact'] = Sh404sefHelperHtml::buildBooleanAndDefaultSelectList( $this->meta->og_enable_contact, 'og_enable_contact'); $ogData['og_email'] = $this->meta->og_email; $ogData['og_phone_number'] = $this->meta->og_phone_number; $ogData['og_fax_number'] = $this->meta->og_fax_number; //push params in to view $this->assign( 'ogData', $ogData); }
/** * Method to create a select list of possible ways to group data on analytics reports * * @access public * @param int ID of current item * @param string name of select list * @param boolean if true, changing selected item will submit the form (assume is an "adminForm") * @param boolean, if true, a line 'Select all' is inserted at the start of the list * @param string the "Select all" to be displayed, if $addSelectAll is true * @return string HTML output */ public static function buildAnalyticsGroupBySelectList($current, $name, $autoSubmit = false, $addSelectAll = false, $selectAllTitle = '', $customSubmit = '') { // available reports, should not be hardcoded though ! $data = array(array('id' => 'ga:year,ga:month,ga:week,ga:day', 'title' => JText::_('Day')), array('id' => 'ga:year,ga:month,ga:week', 'title' => JText::_('Week')), array('id' => 'ga:year,ga:month', 'title' => JText::_('Month'))); // use helper to build html $list = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit, $addSelectAll, $selectAllTitle, $customSubmit); // return list return $list; }
*/ // Security check to ensure this file is being included by a parent file. if (!defined('_JEXEC')) { die('Direct Access to this location is not allowed.'); } jimport('joomla.html.html.bootstrap'); JHtml::_('formbehavior.chosen', 'select'); ?> <div class="sh404sef-popup" id="sh404sef-popup"> <div class="shmodal-toolbar row-fluid" id="shmodal-toolbar"> <div class="alert alert-success shmodal-toolbar-wrapper"> <div class="shmodal-toolbar-text"> <?php echo JText::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT_FOR') . ' ' . ShlHtmlBs_Helper::label(Sh404sefHelperHtml::abridge($this->escape($this->url->oldurl), 'editurl'), 'info', $dismiss = false, 'label-large'); ?> </div> <div class="shmodal-toolbar-buttons" id="shmodal-toolbar-buttons"> <?php $message = JText::_('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'); $message = addslashes($message); $onclick = "javascript:\r\n \t if(document.adminForm.boxchecked.value==0)\r\n \t {alert('{$message}');\r\n}else{\r\n \t Joomla.submitform('selectnfredirect', document.adminForm);\r\n}"; ?> <button class="btn btn-primary" type="button" onclick="<?php echo $onclick; ?> "> <i class="icon-publish icon-white"> </i> <?php echo JText::_('COM_SH404SEF_NOT_FOUND_SELECT_REDIRECT');
* @version 4.1.0.1559 * @date 2013-04-25 */ // No direct access defined('_JEXEC') or die; jimport('joomla.html.html.bootstrap'); JHtml::_('formbehavior.chosen', 'select'); // insert custom stylesheet JFactory::getDocument()->addStyleSheet(JURI::base() . 'components/com_sh404sef/assets/css/configuration.css'); ?> <div class="shmodal-toolbar row-fluid" id="shmodal-toolbar"> <div class="alert alert-success shmodal-toolbar-wrapper"> <div class="shmodal-toolbar-text"> <?php echo ShlHtmlBs_Helper::label(Sh404sefHelperHtml::abridge(JText::_('COM_SH404SEF_TITLE_CONFIG'), 'configuration'), 'info', $dismiss = false, 'label-large'); ?> </div> <div class="shmodal-toolbar-buttons" id="shmodal-toolbar-buttons"> <button class="btn btn-primary" type="button" onclick="Joomla.submitform('saveconfiguration', document.adminForm);"> <i class="icon-apply icon-white"> </i> <?php echo JText::_('JSAVE'); ?> </button> <button class="btn" type="button" onclick="<?php echo JRequest::getBool('refresh', 0) ? 'window.parent.location.href=window.parent.location.href;' : ''; ?> window.parent.shlBootstrap.closeModal();"> <?php
private function _makeOptionsSelect($options) { $selects = new StdClass(); // component list $current = $options->filter_component; $name = 'filter_component'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_COMPONENTS'); $selects->components = Sh404sefHelperHtml::buildComponentsSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // language list $current = $options->filter_language; $name = 'filter_language'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_LANGUAGES'); $selects->languages = Sh404sefHelperHtml::buildLanguagesSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // select custom $current = $options->filter_url_type; $name = 'filter_url_type'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_URL_TYPES'); $data = array(array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_CUSTOM, 'title' => JText::_('COM_SH404SEF_ONLY_CUSTOM')), array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_AUTO, 'title' => JText::_('COM_SH404SEF_ONLY_AUTO'))); $selects->filter_url_type = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); return $selects; }
private function _makeOptionsSelect($options) { $selects = new StdClass(); // component list $current = $options->filter_component; $name = 'filter_component'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_COMPONENTS'); $selects->components = Sh404sefHelperHtml::buildComponentsSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // language list $current = $options->filter_language; $name = 'filter_language'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_LANGUAGES'); $selects->languages = Sh404sefHelperHtml::buildLanguagesSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // return set of select lists return $selects; }
private function _makeOptionsSelect($options) { $selects = new StdClass(); // component list $current = $options->filter_component; $name = 'filter_component'; $selectAllTitle = JText16::_('COM_SH404SEF_ALL_COMPONENTS'); $selects->components = Sh404sefHelperHtml::buildComponentsSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // language list $current = $options->filter_language; $name = 'filter_language'; $selectAllTitle = JText16::_('COM_SH404SEF_ALL_LANGUAGES'); $selects->languages = Sh404sefHelperHtml::buildLanguagesSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // select aliases $current = $options->filter_alias; $name = 'filter_alias'; $selectAllTitle = JText16::_('COM_SH404SEF_ALL_ALIASES'); $data = array(array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_ALIASES, 'title' => JText16::_('COM_SH404SEF_ONLY_ALIASES')), array('id' => Sh404sefHelperGeneral::COM_SH404SEF_NO_ALIASES, 'title' => JText16::_('COM_SH404SEF_ONLY_NO_ALIASES'))); $selects->filter_alias = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // select custom $current = $options->filter_url_type; $name = 'filter_url_type'; $selectAllTitle = JText16::_('COM_SH404SEF_ALL_URL_TYPES'); $data = array(array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_CUSTOM, 'title' => JText16::_('COM_SH404SEF_ONLY_CUSTOM')), array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_AUTO, 'title' => JText16::_('COM_SH404SEF_ONLY_AUTO'))); $selects->filter_url_type = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // select similar urls or all $current = $options->filter_similar_urls; $name = 'filter_similar_urls'; $data = array(array('id' => 1, 'title' => JText16::_('COM_SH404SEF_NOT_FOUND_SHOW_SIMILAR_URLS')), array('id' => 0, 'title' => JText16::_('COM_SH404SEF_NOT_FOUND_SHOW_ALL_URLS'))); $selects->filter_similar_urls = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit = true, $addSelectAll = false); // if similar urls, disable other selectors if ($current == 1) { $selects->components = str_replace('<select name="filter_component"', '<select disabled="disabled" name="filter_component"', $selects->components); $selects->languages = str_replace('<select name="filter_language"', '<select disabled="disabled" name="filter_language"', $selects->languages); $selects->filter_alias = str_replace('<select name="filter_alias"', '<select disabled="disabled" name="filter_alias"', $selects->filter_alias); $selects->filter_url_type = str_replace('<select name="filter_url_type"', '<select disabled="disabled" name="filter_url_type"', $selects->filter_url_type); $this->assign('disable_search_all', 'disabled="disabled"'); } else { $this->assign('disable_search_all', ''); } // return set of select lists return $selects; }
?> </td> <td align="center"> <?php $linkData = array('c' => 'notfound', 'notfound_url_id' => $url->id, 'tmpl' => 'component'); $urlData = array('title' => JText16::_('COM_SH404SEF_NOT_FOUND_SHOW_URLS_TITLE'), 'class' => 'modalediturl', 'anchor' => JText16::_('COM_SH404SEF_NOT_FOUND_SHOW_URLS')); $modalOptions = array('size' => array('x' => '\\window.getSize().scrollSize.x*.9', 'y' => '\\window.getSize().size.y*.9')); echo Sh404sefHelperHtml::makeLink($this, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); ?> </td> <td align="center"> <?php $linkData = array('c' => 'editnotfound', 'notfound_url_id' => $url->id, 'task' => 'newredirect', 'tmpl' => 'component'); $urlData = array('title' => JText16::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT_TITLE'), 'class' => 'modalediturl', 'anchor' => JText16::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT')); $modalOptions = array('size' => array('x' => '\\window.getSize().scrollSize.x*.7', 'y' => '\\window.getSize().size.y*.5')); echo Sh404sefHelperHtml::makeLink($this, $linkData, $urlData, $modal = true, $modalOptions, $hasTip = false, $extra = ''); ?> </td> </tr> <?php $k = 1 - $k; } } else { ?> <tr> <td align="center" colspan="6"> <?php echo JText16::_('COM_SH404SEF_NO_URL'); ?> </td> </tr>
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.1.0.1559 * @date 2013-04-25 */ // Security check to ensure this file is being included by a parent file. if (!defined('_JEXEC')) { die('Direct Access to this location is not allowed.'); } ?> <div id="sh404sef-popup" class="sh404sef-popup"> <div class="shmodal-toolbar row-fluid" id="shmodal-toolbar"> <div class="alert alert-success shmodal-toolbar-wrapper"> <div class="shmodal-toolbar-text"> <?php $title = ShlHtmlBs_Helper::label($this->escape(Sh404sefHelperHtml::abridge($this->url->oldurl, 'editurl')), 'info', $dismiss = false, 'label-large'); echo JText::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT_FOR') . ' ' . $title; ?> </div> <div class="shmodal-toolbar-buttons" id="shmodal-toolbar-buttons"> <button class="btn btn-primary" type="button" onclick="Joomla.submitform('save', document.adminForm);"> <i class="icon-apply icon-white"> </i> <?php echo JText::_('JSAVE'); ?> </button> <button class="btn" type="button" onclick="<?php echo JRequest::getBool('refresh', 0) ? 'window.parent.location.href=window.parent.location.href;' : ''; ?> window.parent.shlBootstrap.closeModal();"> <?php
* sh404SEF - SEO extension for Joomla! * * @author Yannick Gaultier * @copyright (c) Yannick Gaultier 2012 * @package sh404sef * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.1.0.1559 * @date 2013-04-25 */ // Security check to ensure this file is being included by a parent file. if (!defined('_JEXEC')) { die('Direct Access to this location is not allowed.'); } jimport('joomla.html.html.bootstrap'); JHtml::_('formbehavior.chosen', 'select'); $sticky = Sh404sefHelperHtml::setFixedTemplate(); if ($sticky) { ?> <div class="shl-fixed-top-hidden"> </div> <?php } ?> <div class="shl-main-content"> <form method="post" name="adminForm" id="adminForm" class="shl-no-margin"> <?php if ($sticky) { ?> <div class="shl-fixed span12 shl-main-searchbar-wrapper"> <div class="span2 shl-left-separator shl-hidden-low-width"> </div>
private function _makeOptionsSelect($options) { $selects = new StdClass(); // component list $current = $options->filter_component; $name = 'filter_component'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_COMPONENTS'); $selects->components = Sh404sefHelperHtml::buildComponentsSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // language list $current = $options->filter_language; $name = 'filter_language'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_LANGUAGES'); $selects->languages = Sh404sefHelperHtml::buildLanguagesSelectList($current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // select aliases $current = $options->filter_alias; $name = 'filter_alias'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_ALIASES'); $data = array(array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_ALIASES, 'title' => JText::_('COM_SH404SEF_ONLY_ALIASES')), array('id' => Sh404sefHelperGeneral::COM_SH404SEF_NO_ALIASES, 'title' => JText::_('COM_SH404SEF_ONLY_NO_ALIASES'))); $selects->filter_alias = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // select custom $current = $options->filter_url_type; $name = 'filter_url_type'; $selectAllTitle = JText::_('COM_SH404SEF_ALL_URL_TYPES'); $data = array(array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_CUSTOM, 'title' => JText::_('COM_SH404SEF_ONLY_CUSTOM')), array('id' => Sh404sefHelperGeneral::COM_SH404SEF_ONLY_AUTO, 'title' => JText::_('COM_SH404SEF_ONLY_AUTO'))); $selects->filter_url_type = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit = true, $addSelectAll = true, $selectAllTitle); // select similar urls or all $current = $options->filter_similar_urls; $name = 'filter_similar_urls'; $data = array(array('id' => 1, 'title' => JText::_('COM_SH404SEF_NOT_FOUND_SHOW_SIMILAR_URLS')), array('id' => 0, 'title' => JText::_('COM_SH404SEF_NOT_FOUND_SHOW_ALL_URLS'))); $selects->filter_similar_urls = Sh404sefHelperHtml::buildSelectList($data, $current, $name, $autoSubmit = true, $addSelectAll = false); // return set of select lists return $selects; }