Beispiel #1
0
<?php

defined('KOOWA') or die('Restricted access');
?>

<div class="row">
	<div class="span8">
	<?php 
echo @template('form');
?>
	</div>
	
	<?php 
if ($actor->authorize('administration')) {
    ?>
	<div class="span4">
	<?php 
    echo @helper('ui.gadget', LibBaseTemplateObject::getInstance('revisions', array('title' => @text('COM-ARTICLES-ARTICLE-REVISIONS'), 'url' => 'view=revisions&layout=gadget&pid=' . $article->id . '&oid=' . $actor->id)));
    ?>
	</div>
	<?php 
}
?>
</div>
Beispiel #2
0
 /**
  * Set a value by key
  *
  * @param   string  The key name.
  * @param   mixed   The value for the key
  * 
  * @return  void
  * @throws KConfigException if the $name is empty
  */
 public function offsetSet($name, $object)
 {
     if (!$object instanceof LibBaseTemplateObjectInterface) {
         if (empty($name)) {
             throw new KConfigException('Template object name must be unique and non empty');
         }
         $object = LibBaseTemplateObject::getInstance($name, $object);
     }
     $this->_objects[$object->getName()] = $object;
     return $object;
 }