/**
  * Returns a reference to a plugin object
  *
  * This method must be invoked as:
  * 		<pre>  $advlink =AdvLink::getInstance();</pre>
  *
  * @access	public
  * @return	JCE  The editor object.
  * @since	1.5
  */
 public static function getInstance($config = array())
 {
     if (!isset(self::$instance)) {
         self::$instance = new WFAggregatorExtension($config);
     }
     return self::$instance;
 }
    /**
     * 
     * @return 
     */
    public function getAggregatorTemplate() {
        $tpl = '';

        $extension = WFAggregatorExtension::getInstance();

        foreach ($extension->getAggregators() as $aggregator) {
            $tpl .= '<fieldset class="media_option ' . $aggregator->getName() . '" id="' . $aggregator->getName() . '_options" style="display:none;"><legend>' . WFText::_($aggregator->getTitle()) . '</legend>';
            $tpl .= $extension->loadTemplate($aggregator->getName());
            $tpl .= '</fieldset>';
        }

        return $tpl;
    }
Beispiel #3
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct(array('format' => 'video'));
 }
Beispiel #4
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct(array('format' => 'maps'));
 }