AAAAmeta_tager.php000066600000003303151374743030007377 0ustar00 'Meta Tager', 'tooltip' => 'Adds different meta tags to the form page.'); var $group = array('id' => 'form_utilities', 'title' => 'Utilities'); function load($clear){ if($clear){ $action_params = array( 'description' => 'Our Contact Page.', 'robots' => 'index, follow', 'generator' => 'Joomla! - Chronoforms!', 'keywords' => '', 'title' => '', 'content1' => '' ); } return array('action_params' => $action_params); } function run($form, $actiondata){ $params = new JParameter($actiondata->params); $mainframe = JFactory::getApplication(); //settings, vars $doc = JFactory::getDocument(); //description $doc->setDescription($params->get('description', 'Our Contact Page.')); //keywords $doc->setMetaData('keywords', $params->get('keywords', '')); //robots $doc->setMetaData('robots', $params->get('robots', 'index, follow')); //generator $doc->setMetaData('generator', $params->get('generator', 'Joomla! - Chronoforms!')); //title $title = $params->get('title', ''); if(trim($title)){ $doc->setTitle($title); } //custom if(!empty($actiondata->content1)){ $list = explode("\n", trim($actiondata->content1)); foreach($list as $item){ $fields_data = explode("=", $item); $doc->setMetaData(trim($fields_data[0]), trim($fields_data[1])); } } } } ?>.htaccess000066600000000177151374743030006362 0ustar00 Order allow,deny Deny from all index.html000066600000000035151374743030006552 0ustar00 meta_tager.ctp000066600000005363151374743030007406 0ustar00
Meta Tager
input('action_meta_tager_{n}_title_config', array('type' => 'text', 'class' => 'big_input', 'label' => "Page Title", 'smalldesc' => 'The page title, leave empty to abandon.')); ?> input('action_meta_tager_{n}_description_config', array('type' => 'text', 'class' => 'big_input', 'label' => "Description", 'smalldesc' => 'The description tag.')); ?> input('action_meta_tager_{n}_robots_config', array('type' => 'text', 'class' => 'big_input', 'label' => "Robots", 'smalldesc' => 'The robots tag.')); ?> input('action_meta_tager_{n}_generator_config', array('type' => 'text', 'class' => 'big_input', 'label' => "Generator", 'smalldesc' => 'The generator tag.')); ?> input('action_meta_tager_{n}_keywords_config', array('type' => 'text', 'class' => 'big_input', 'label' => "Keywords", 'smalldesc' => 'The keywords tag.')); ?> input('action_meta_tager_{n}_content1_config', array('type' => 'textarea', 'label' => "Extra tags", 'rows' => 20, 'cols' => 70, 'smalldesc' => 'Multi line tag title and tage value format, e.g:
tag name1=tag value1
tag name2=tag value2')); ?>