function display($tpl = null) { //get the data $sef =& $this->get('Data'); $lists = $this->get('Lists'); if (JRequest::getInt('viewmode') != 6) { $isNew = $sef->id < 1; } else { $isNew = strlen($sef->sefurl) ? false : true; } $text = $isNew ? JText::_('COM_SEF_NEW') : JText::_('COM_SEF_EDIT'); JToolBarHelper::title('JoomSEF - ' . JText::_('COM_SEF_SEF_URL') . ' [ ' . $text . ' ]', 'url-edit.png'); if (JRequest::getInt('viewmode') == 6) { JToolBarHelper::save('save_cache'); } else { JToolBarHelper::save(); } if ($isNew) { JToolBarHelper::cancel(); } else { // for existing items the button is renamed `close` JToolBarHelper::cancel('cancel', 'Close'); } $this->assignRef('sef', $sef); $this->assignRef('lists', $lists); JHTML::_('behavior.tooltip'); // Load JS $document =& JFactory::getDocument(); $document->addScript('components/com_sef/assets/js/words.js'); $document->addStyleSheet('components/com_sef/assets/css/words.css'); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_JOOMSEF'), 'artio.png'); $user = JFactory::getUser(); if ($user->authorise('core.admin', 'com_sef')) { JToolBarHelper::preferences('com_sef'); } // Get number of URLs for purge warning $model = SEFModel::getInstance('URLs', 'SEFModel'); $this->assign('purgeCount', $model->getCount(0)); // Get newest version available $sefConfig = SEFConfig::getConfig(); if ($sefConfig->versionChecker) { $model2 = SEFModel::getInstance('Upgrade', 'SEFModel'); $newVer = $model2->getNewSEFVersion(); $sefinfo = SEFTools::getSEFInfo(); if (strnatcasecmp($newVer, $sefinfo['version']) > 0 || strnatcasecmp($newVer, substr($sefinfo['version'], 0, strpos($sefinfo['version'], '-'))) == 0) { $newVer = '<span style="font-weight: bold; color: red;">' . $newVer . '</span> <input type="button" class="btn btn-small" onclick="showUpgrade();" value="' . JText::_('COM_SEF_GO_TO_UPGRADE_PAGE') . '" />'; } $newVer .= ' <input type="button" class="btn btn-danger btn-small" onclick="disableStatus(\'versioncheck\');" value="' . JText::_('COM_SEF_DISABLE_VERSION_CHECKER') . '" />'; $this->assign('newestVersion', $newVer); } else { $newestVersion = JText::_('COM_SEF_VERSION_CHECKER_DISABLED') . ' <input type="button" class="btn btn-success btn-small" onclick="enableStatus(\'versioncheck\');" value="' . JText::_('COM_SEF_ENABLE') . '" />'; $this->assign('newestVersion', $newestVersion); } // Get statistics $stats = $model->getStatistics(); $this->assignRef('stats', $stats); // Get feed $feed = $this->get('Feed'); $this->assignRef('feed', $feed); // Check language filter plugin $this->getModel('sef')->checkLanguagePlugins(); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_JOOMSEF_URL_MANAGER'), 'url-edit.png'); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef&controller=sefurls'); $this->assign('aceSefPresent', $this->get('AceSefTablePresent')); $this->assign('shSefPresent', $this->get('ShTablePresent')); parent::display($tpl); }
function display($tpl = null) { $icon = 'manage-words.png'; JToolBarHelper::title(JText::_('COM_SEF_JOOMSEF_WORDS_MANAGER'), $icon); JToolBarHelper::back('Back', 'index.php?option=com_sef'); JHTML::_('behavior.tooltip'); parent::display($tpl); }
function display($tpl = null) { $icon = 'manage-sitemap.png'; JToolBarHelper::title(JText::_('COM_SEF_JOOMSEF_SITEMAP_MANAGER'), $icon); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); JHTML::_('behavior.tooltip'); parent::display($tpl); }
function display($tpl = null) { $this->setLayout(JRequest::getCmd('layout', 'default')); $icon = 'statistics.png'; JToolbarHelper::title(JText::_('COM_SEF_STATISTICS'), $icon); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); parent::display($tpl); }
function showEditId() { $ext = $this->get('extension'); /*print_r($ext); exit;*/ $this->assignRef('ext', $ext); $this->setLayout('editid'); parent::display(null); }
function showMessage() { JToolBarHelper::title(JText::_('JoomSEF') . ' ' . JText::_('COM_SEF_UPGRADE_MANAGER'), 'update.png'); $url = 'index.php?option=com_sef&task=showupgrade'; $redir = JRequest::getVar('redirto', null, 'post'); if (!is_null($redir)) { $url = 'index.php?option=com_sef&' . $redir; } JToolBarHelper::back('Continue', $url); $this->assign('url', $url); $this->setLayout('message'); parent::display(); }
function showMessage() { JToolBarHelper::title(JText::_('Install') . ' ' . JText::_('COM_SEF_SEF_EXTENSION'), 'plugin.png'); $url = 'index.php?option=com_sef&task=installext'; $redir = JRequest::getVar('redirto', null, 'post'); if (!is_null($redir)) { $url = 'index.php?option=com_sef&' . $redir; } JToolBarHelper::back('Continue', $url); $this->assign('url', $url); $this->setLayout('message'); parent::display(); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_JOOMSEF_CONFIGURATION'), 'config.png'); JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::spacer(); JToolBarHelper::cancel(); // Get data from the model $lists =& $this->get('Lists'); $this->assignRef('lists', $lists); $this->langs = $this->get('langs'); $this->subdomains = $this->get('subdomains'); // Which tabs to show? $sefConfig =& SEFConfig::getConfig(); $tabs = array('basic'); if ($sefConfig->professionalMode) { $tabs[] = 'advanced'; } $tabs[] = 'cache'; $tabs[] = 'metatags'; $tabs[] = 'seo'; $tabs[] = 'sitemap'; $tabs[] = 'language'; $tabs[] = 'analytics'; $tabs[] = 'subdomains'; $tabs[] = '404'; $tabs[] = 'registration'; $tab = JRequest::getVar('tab', 'basic'); $tabIdx = array_search($tab, $tabs); if ($tabIdx === false) { $tabIdx = 0; } $this->assignRef('tabs', $tabs); $this->assign('tab', $tabIdx); // Root domain for subdomains configuration $rootDomain = JFactory::getURI()->getHost(); if (substr($rootDomain, 0, 4) == 'www.') { $rootDomain = substr($rootDomain, 4); } $this->assign('rootDomain', $rootDomain); JHTML::_('behavior.tooltip'); JHTML::_('behavior.framework'); $doc =& JFactory::getDocument(); $doc->addStyleDeclaration('form#adminForm div.current { width: auto; }'); $sefConfig =& SEFConfig::getConfig(); if (!$sefConfig->professionalMode) { $mainframe =& JFactory::getApplication(); $mainframe->enqueueMessage(JText::_('COM_SEF_BEGINNER_MODE_INFO')); } parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_JOOMSEF'), 'url-delete.png'); JToolBarHelper::back('Back', 'index.php?option=com_sef'); // Get data from the model $count =& $this->get('Count'); if ($count == 0) { $msg = JText::_('COM_SEF_NO_RECORDS_FOUND'); } elseif ($count == 1) { $msg = JText::_('COM_SEF_WARNING_DELETE') . ' ' . $count . ' ' . JText::_('COM_SEF_RECORD'); } else { $msg = JText::_('COM_SEF_WARNING_DELETE') . ' ' . $count . ' ' . JText::_('COM_SEF_RECORDS'); } $this->assignRef('count', $count); $this->assignRef('msg', $msg); parent::display($tpl); }
function display($tpl = null) { $icon = 'manage-tags.png'; JToolBarHelper::title(JText::_('COM_SEF_JOOMSEF_META_TAGS_MANAGER'), $icon); $this->assign($this->getModel()); JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::spacer(); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); // Get data from the model $this->assignRef('items', $this->get('Data')); $this->assignRef('total', $this->get('Total')); $this->assignRef('lists', $this->get('Lists')); $this->assignRef('pagination', $this->get('Pagination')); JHTML::_('behavior.tooltip'); parent::display($tpl); }
function display($tpl = null) { //get the data $url =& $this->get('Data'); $isNew = $url->id < 1; $text = $isNew ? JText::_('COM_SEF_NEW') : JText::_('COM_SEF_EDIT'); JToolBarHelper::title(JText::_('COM_SEF_301_REDIRECT') . ': <small>[ ' . $text . ' ]</small>', '301-redirects.png'); JToolBarHelper::save(); if ($isNew) { JToolBarHelper::cancel(); } else { // for existing items the button is renamed `close` JToolBarHelper::cancel('cancel', 'Close'); } $this->assignRef('url', $url); JHTML::_('behavior.tooltip'); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title('JoomSEF - ' . JText::_('COM_SEF_EXTENSIONS_MANAGEMENT'), 'plugin.png'); $bar =& JToolBar::getInstance(); JToolBarHelper::custom('installext', 'install', '', 'COM_SEF_INSTALL', false); //$bar->appendButton('Confirm', 'COM_SEF_CONFIRM_UNINSTALL_EXTENSION', 'uninstall', 'COM_SEF_UNINSTALL', 'uninstallext', true, false); JToolBarHelper::editList('editext'); JToolBarHelper::spacer(); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); $exts = $this->get('extensions', 'extensions'); $this->assignRef('extensions', $exts); $noExts = $this->get('ComponentsWithoutExtension', 'extensions'); $this->assignRef('components', $noExts); JHTML::_('behavior.tooltip'); JHTML::_('behavior.modal'); JHTML::_('behavior.framework'); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_LOGS_TITLE'), '404-logs.png'); JToolBarHelper::custom('clear', 'clear', '', 'COM_SEF_LOGS_CLEAR', false); JToolBarHelper::spacer(); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); // Get data from the model $this->assignRef('items', $this->get('Data')); $this->assignRef('total', $this->get('Total')); $this->assignRef('lists', $this->get('Lists')); $this->assignRef('pagination', $this->get('Pagination')); $enabled = $this->get('Enabled'); if (!$enabled) { $app =& JFactory::getApplication(); $app->enqueueMessage(JText::_('COM_SEF_LOGS_DISABLED_NOTICE')); } JHTML::_('behavior.tooltip'); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_301_REDIRECTS_MANAGER'), '301-redirects.png'); $bar =& JToolBar::getInstance(); JToolBarHelper::addNew(); JToolBarHelper::editList(); JToolBarHelper::deleteList('COM_SEF_ARE_YOU_SURE_YOU_WANT_TO_DELETE_SELECTED_URLS'); JToolBarHelper::spacer(); $bar->appendButton('Confirm', 'COM_SEF_CONFIRM_DEL_FILTER', 'delete_f2', 'COM_SEF_DELETE_ALL_FILTERED', 'deletefiltered', false, false); JToolBarHelper::spacer(); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); // Get data from the model $this->assignRef('items', $this->get('Data')); $this->assign($this->getModel()); $this->assignRef('total', $this->get('Total')); $this->assignRef('lists', $this->get('Lists')); $this->assignRef('pagination', $this->get('Pagination')); parent::display($tpl); }
function display($tpl = null) { $task = JRequest::getVar('task'); if ($task == 'help') { $title = JText::_('COM_SEF_JOOMSEF_SUPPORT'); $icon = 'help.png'; } elseif ($task == 'doc') { $title = JText::_('COM_SEF_JOOMSEF_DOCUMENTATION'); $icon = 'docs.png'; } elseif ($task == 'changelog') { $title = JText::_('COM_SEF_JOOMSEF_CHANGELOG'); $icon = 'info.png'; } else { $title = JText::_('COM_SEF_JOOMSEF'); $icon = 'artio.png'; } JToolBarHelper::title($title, $icon); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_WEBSITE_CRAWLER'), 'web-crawl.png'); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); // Prepare vars for JS $document =& JFactory::getDocument(); $js = "var jsCrawlerTextRunning = '" . JText::_('COM_SEF_CRAWLER_RUNNING', true) . "';\n"; $js .= "var jsCrawlerTextCancel = '" . JText::_('COM_SEF_CRAWLER_CANCEL', true) . "';\n"; $js .= "var jsCrawlerTextFinish = '" . JText::_('COM_SEF_CRAWLER_FINISH', true) . "';\n"; $js .= "var jsCrawlerTextSuccess = '" . JText::_('COM_SEF_CRAWLER_SUCCESS', true) . "';\n"; $js .= "var jsCrawlerTextCancelled = '" . JText::_('COM_SEF_CRAWLER_CANCELLED', true) . "';\n"; $js .= "var jsCrawlerTextError = '" . JText::_('COM_SEF_CRAWLER_ERROR', true) . "';\n"; $js .= "var jsCrawlerTextErrorMsg = '" . JText::_('COM_SEF_CRAWLER_ERROR_MSG', true) . "';\n"; $js .= "var jsCrawlerTextResponseTime = '" . JText::_('COM_SEF_CRAWLER_RESPONSE_TIME', true) . "';\n"; $js .= "var jsCrawlerScriptUrl = '" . JURI::root() . "administrator/index.php?option=com_sef&controller=crawler&task=crawl';\n"; $js .= "var jsCrawlerRootUrl = '" . JURI::root() . "';\n"; $document->addScriptDeclaration($js); // Load JS JHTML::script('administrator/components/com_sef/assets/js/crawler.js', true); JHTML::_('behavior.tooltip'); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title('JoomSEF - ' . JText::_('COM_SEF_HTACCESS_EDITOR'), 'edit.png'); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); parent::display(); }
function display($tpl = null) { parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('COM_SEF_CRON'), 'cron.png'); JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef'); parent::display($tpl); }
function showChangeMeta() { JToolbarHelper::title(JText::_('COM_SEF_JOOMSEF_META_TAGS_CHANGE')); JToolbarHelper::save('save_changed_metas'); JToolbarHelper::cancel('cancel_changed_metas'); $this->setLayout('changemeta'); $this->cid = $this->get('ids'); JHTML::_('behavior.framework'); parent::display(); }