Example #1
0
function category_url($id, $url = "", $rpt = '')
{
    $db = new myDBC();
    if ($id != '' && $id != $rpt) {
        $data = $db->getQuery($db->runQuery("select id,category_parent,slug from " . CAT . " where id='{$id}'"));
        $url[] = $data['slug'];
        return category_url($data['category_parent'], $url, $id);
    } else {
        return @trim(implode(" / ", array_reverse($url, true)), ' / ');
    }
}
Example #2
0
            </div>

          </div>

        </div>

        <div class="col-md-4">

          <h1>Categories:</h1>
          <ul style="list-style-type: none;">
				<?php 
while (categories()) {
    ?>
					<li>
					<a href="<?php 
    echo category_url();
    ?>
" title="<?php 
    echo category_description();
    ?>
">
						<?php 
    echo category_title();
    ?>
 <span><?php 
    echo category_count();
    ?>
</span>
					</a>
				</li>
			<?php 
<h3>La categoria se ha guardado correctamente.</h3>
<h5><a href="<?php 
echo category_url($category_url);
?>
"><?php 
echo $category_display_name;
?>
</a></h5>
Example #4
0
<h1>Categorias</h1>

<?php 
foreach ($categories as $category) {
    ?>

<article>
	<h3 class="inline">
		<a href="<?php 
    echo category_url($category->category_display_name);
    ?>
"><?php 
    echo $category->category_display_name;
    ?>
</a>
	</h3>
	<span class="inline">
		<small><a href="<?php 
    echo edit_category_url($category->category_id);
    ?>
">Editar</a></small>
		<small><a href="<?php 
    echo del_category_url($category->category_id);
    ?>
">Eliminar</a></small>
	</span>
</article>

<?php 
}
Example #5
0
}
</script>
    <div id="voted-users-for-<? print ($post['id']); ?>"></div>
  </ul>
  <div class="c">&nbsp;</div>
  <br />
  <br />
  
      <?php 
include "banner_wide.php";
?>
    <br />
  <br />
  <?  $category = get_category($active_category); ?>
  <h2>More games from <? print $category['taxonomy_value']; ?></h2>
  <div class="top_games top_games_read">
    <?
 
$params= array();
$params['display']= 'games_list_single_item.php';
$params['selected_categories'] =  array($active_category);
$params['items_per_page'] = 4;
$params['curent_page'] = rand(1,3);
get_posts($params);
 
 ?>
    <a href="<? print category_url($active_categories[1]); ?>" class="mw_btn_s right" ><span>See all <? print get_category_items_count($active_categories[1]); ?> games</span></a> </div>
  <microweber module="comments/default" post_id="<? print $post['id']; ?>">
</div>
<!-- /#main_side -->
Example #6
0
<div class="box">
	<div class="box_title"><?php 
echo lang('categories');
?>
</div>
	<div class="box_body">
		<ul>
			<?php 
if ($categories = $this->categories_library->get_categories()) {
    ?>
				<?php 
    foreach ($categories as $category) {
        ?>
					<li><a href="<?php 
        echo category_url($category['url_name']);
        ?>
"> <?php 
        echo $category['name'];
        ?>
</a> (<?php 
        echo $category['posts_count'];
        ?>
)</li>
				<?php 
    }
    ?>
			<?php 
}
?>
		</ul>
	</div>
Example #7
0
<nav class="menu">
		<ul>

			<li><a href="<?php 
echo base_url();
?>
">Inicio</a></li>
			<?php 
foreach ($menu as $menuItem) {
    ?>

			<li><a href="<?php 
    echo category_url($menuItem->category_url);
    ?>
"><?php 
    echo $menuItem->category_display_name;
    ?>
</a></li>

			<?php 
}
?>
		

			<li>|</li>

			<?php 
if (is_admin()) {
    ?>
			<li><a href="<?php 
    echo base_url() . 'admin';
Example #8
0
	<h2><?php 
echo $article->article_title;
?>
</h2>

	<small class="info">
		<?php 
echo $article->article_date;
?>
 - 
		By <a href="#"><?php 
echo $article->user_name;
?>
</a> - 
		Category: <a href="<?php 
echo category_url($article->category_url);
?>
"><?php 
echo $article->category_display_name;
?>
</a> - 
		<a href="#comments"><?php 
echo $article->article_comments;
?>
 comentarios</a>
	</small>

	<p>
		<?php 
echo $article->article_content;
?>
Example #9
0
				<?php 
echo lang('categories');
?>
 <strong><?php 
echo $categories_count;
?>
</strong><br />
				<?php 
if ($category_with_most_posts) {
    ?>
	
					<?php 
    echo lang('category_with_most_posts');
    ?>
 <a href="<?php 
    echo category_url($category_with_most_posts['url_name']);
    ?>
" target="_blank"><strong><?php 
    echo $category_with_most_posts['name'];
    ?>
</strong></a> (<strong><?php 
    echo $category_with_most_posts['posts_count'];
    ?>
</strong> <?php 
    echo lang('posts_total');
    ?>
)<br />
				<?php 
}
?>
				<?php