function ccf_make_form($m)
 {
     $form_id = (int) $m[2];
     //include helper class
     require_once JPATH_SITE . '/components/com_creativecontactform/helpers/helper.php';
     $ccf_class = new CreativecontactformHelper();
     $ccf_class->form_id = $form_id;
     $ccf_class->type = 'plugin';
     $ccf_class->class_suffix = 'ccf_plg';
     $ccf_class->module_id = $this->plg_order;
     $this->plg_order++;
     return $ccf_class->render_html();
 }
Example #2
0
 /**
  * Method to display a view.
  *
  * @param	boolean			If true, the view output will be cached
  * @param	array			An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  *
  * @return	JController		This object to support chaining.
  * @since	1.5
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Load the submenu.
     CreativecontactformHelper::addSubmenu('Overview', 'creativehomepage');
     CreativecontactformHelper::addSubmenu('Forms', 'creativeforms');
     CreativecontactformHelper::addSubmenu('Fields', 'creativefields');
     //CreativecontactformHelper::addSubmenu( 'Options', 'creativeoptions');
     CreativecontactformHelper::addSubmenu('Templates', 'templates');
     parent::display();
     return $this;
 }
Example #3
0
<?php

/**
 * Joomla! component Creative Contact Form
 *
 * @version $Id: 2012-04-05 14:30:25 svn $
 * @author creative-solutions.net
 * @package Creative Contact Form
 * @subpackage com_creativecontactform
 * @license GNU/GPL
 *
 */
// no direct access
defined('_JEXEC') or die('Restircted access');
$form_id = (int) $_REQUEST['form'];
$ccf_class = new CreativecontactformHelper();
$ccf_class->form_id = $form_id;
$ccf_class->type = 'component';
$ccf_class->class_suffix = '';
$ccf_class->module_id = 0;
echo $ccf_class->render_html();