<?php $e = 0; foreach (\Rpp\Services\Get\Flow::tag($this->model->slug) as $item) { ?> <?php echo $this->partial('partials/portada/flujo/box/normal', array('nid' => $item->_id, 'position' => $e + 1)); $e++; ?> <?php }
private function reload_tag($tags) { foreach ($tags as $tag_slug) { \Rpp\Services\Get\Flow::tag($tag_slug['slug']); \Shared\Cache::request()->delete(\Shared\Cache::get_conf()->cache_prefix->tag . 'relatedtag.' . $tag_slug['slug']); } }
public function tagAction() { var_dump(\Rpp\Services\Get\Flow::tag('caso-oropeza')); }
<section class="flow-news module module-green"> <h3>BLOOPERS</h3> <div class="box"> <ul> <?php foreach (\Rpp\Services\Get\Flow::tag('bloopers', 5) as $position => $item) { ?> <li> <article> <figure class="media"><a href="<?php echo \Rpp\Services\Get\Content::nurl($item->_id); echo \Rpp\Services\Get\UrlTrack::add_params($position + 1); ?> "><img src="<?php echo \Rpp\Services\Get\Content::node($item->_id)->imagen_portada['url']; ?> " alt="<?php echo \Rpp\Services\Get\Content::node($item->_id)->imagen_portada['alt']; ?> " width="86" height="70"></a></figure> <h2><a href="<?php echo \Rpp\Services\Get\Content::nurl($item->_id); echo \Rpp\Services\Get\UrlTrack::add_params($position + 1); ?> "><?php echo \Rpp\Services\Get\Content::node($item->_id)->titulo; ?> </a></h2> </article> </li> <?php
<section class="goals module module-blue"> <h3>PEPAZAS</h3> <div class="box"> <ul class="title-top"> <?php foreach (\Rpp\Services\Get\Flow::tag('pepazas', 5) as $position => $item) { ?> <li> <article> <figure class="media"><a href="<?php echo \Rpp\Services\Get\Content::nurl($item->_id); echo \Rpp\Services\Get\UrlTrack::add_params($position + 1); ?> "><img src="<?php echo \Rpp\Services\Get\Content::node($item->_id)->imagen_portada['url']; ?> " alt="<?php echo \Rpp\Services\Get\Content::node($item->_id)->imagen_portada['alt']; ?> "></a></figure> <h2><span><a href="<?php echo \Rpp\Services\Get\Content::nurl($item->_id); echo \Rpp\Services\Get\UrlTrack::add_params($position + 1); ?> "><?php echo \Rpp\Services\Get\Content::node($item->_id)->titulo; ?> </a></span></h2> </article> </li> <?php