Exemplo n.º 1
0
 public function parse_self_closing_shortcodes_callback($match)
 {
     $code = $match[1];
     $attributes = $this->parse_shortcode_attributes($match[2]);
     $result = '[' . $match[1] . $match[2] . ']';
     switch ($code) {
         case 'children_list':
             $parent_node_id = $this->node_local_id;
             $documentation_node = new DocumentationNode();
             $children = $documentation_node->find(array('conditions' => array('parent_id' => $parent_node_id, 'documentation_version_id' => $this->version->id)));
             $html = '';
             foreach ($children as $node) {
                 $url = mvc_public_url(array('controller' => 'documentation_nodes', 'action' => 'show', 'object' => $node));
                 $html .= '<h3 class="section-header">' . $node->title . '</h3>';
                 $html .= '<div class="view-single-page"><a href="' . $url . '" title="View this page">View this page</a></div>';
                 $html .= $this->parse_documentation_with_local_id($node->content, $node->local_id);
             }
             $this->id = $parent_node_id;
             $result = $html;
             break;
         default:
             break;
     }
     return $result;
 }
Exemplo n.º 2
0
<?php

$version = displayed_documentation_version();
?>
<div class="documentation-search-form">
	<form action="<?php 
echo mvc_public_url(array('controller' => 'documentation_nodes', 'action' => 'search'));
?>
" method="get">
		<input type="text" name="q" value="<?php 
echo empty($this->params['q']) ? '' : esc_attr($this->params['q']);
?>
" />
		<input type="hidden" name="version_id" value="<?php 
echo empty($this->params['version_id']) ? $version->id : esc_attr($this->params['version_id']);
?>
" />
		<input type="submit" value="Search" />
	</form>
</div>
Exemplo n.º 3
0
<div class="anime-show">
	<div class="anime-poster-container">
		<a href="<?php 
echo mvc_public_url(array('controller' => 'anime_lists', 'id' => $object->id));
?>
">
			<img src="<?php 
echo $object->poster;
?>
" class="anime-poster">
		</a>
	</div>
	<div>
		<strong><?php 
echo $object->title;
?>
</strong>
	</div>
	<div>
		<?php 
echo $object->producer;
?>
	</div>
	<div class="genre">
		<small><?php 
echo $object->genres;
?>
</small>
	</div>
</div>