Ejemplo n.º 1
0
 private function GetArticlesTiempo($data = false)
 {
     if ($data['type'] == 'highlight') {
         return array();
     }
     $date = date('Y-m-d H:i:s');
     $table = '`nrp_tiempoarg_beta`.';
     $ret = array();
     $pub = 0;
     $sql = "select id_publishing as id\n    from {$table}publishing \n    where id_state = '2' AND CONCAT(date_publishing,' ',time_publishing) <= '{$date}'\n    order by date_publishing desc, time_publishing desc \n    LIMIT 0,1";
     $query = $this->db->query($sql);
     if (!$query) {
         return $ret;
     }
     $pub = $query->row();
     if (!$pub) {
         return $ret;
     }
     $pub = $pub->id;
     $sql = "select a.id_article as id, a.title, a.id_category as category,\n    (select f.file \n    from {$table}article_file af\n    left join {$table}nza_file f on f.id_file = af.id_file \n    where af.id_article = a.id_article\n    order by af.home desc\n    LIMIT 0,1) as picture\n    from {$table}article a\n    where a.id_publishing = '{$pub}' AND a.id_category = '{$data['id']}' and a.id_state = 3 and a.id_type != 4 and a.id_type != 5\n    having picture\n    order by a.page LIMIT 0,5";
     $articles = $this->db->query($sql)->result();
     foreach ($articles as $article) {
         $article->link = $this->config->item("link-tiempo-argentino", 'app') . 'nota/' . $article->id . '/' . prep_word_url($article->title);
         $article->picture = $this->config->item("link-tiempo-argentino", 'app') . 'thumb_file_cnx/' . $article->picture;
         $ret[] = $article;
     }
     return $ret;
 }
Ejemplo n.º 2
0
 public function GetCharactersCloud()
 {
     $sql = "SELECT COUNT(*) AS total, t.`nombre`, t.`id`, t.`id_categoria`, advf.`advLink` as advLink\n          FROM `contenidos_tags` ct\n          LEFT JOIN contenidos c ON c.id = ct.`id_contenido`\n          LEFT JOIN tags t ON t.id = ct.`id_tag`\n          LEFT JOIN advf AS advf ON t.`id_foto` = advf.advID\n          WHERE c.fecha BETWEEN DATE_SUB(NOW(),INTERVAL 1 WEEK) AND NOW() AND nombre != '' AND t.`id_tipo` = '2' AND t.`id_foto`\n          GROUP BY ct.id_tag\n          ORDER BY total DESC\n          LIMIT 7";
     $result = $this->db->query($sql)->result();
     $json = array();
     $total = 0;
     foreach ($result as $key => $tag) {
         $total = $total + $tag->total;
     }
     foreach ($result as $key => $tag) {
         $json[$key]['section'] = $tag->id_categoria;
         $json[$key]['tag'] = $tag->nombre;
         $json[$key]['href'] = $this->config->item("link-infonews", 'app') . 'tag/' . $tag->id . '/' . prep_word_url($tag->nombre);
         if ($key < 2) {
             $size = 137;
         } else {
             $size = 67;
         }
         $json[$key]['picture'] = upload_advf($tag->advLink, $size, $size, true);
     }
     return $json;
 }
Ejemplo n.º 3
0
 <div class="union"><img src="<?php 
echo layout();
?>
images/union.png"></div>
 <div class="content">
   <div class="title">
     <h1>FICHA DEL COMERCIO</h1>
   </div>
   <a class="close app-loader" href="<?php 
echo base_url();
?>
agroservicios/<?php 
echo $store->id_province;
?>
/<?php 
echo prep_word_url($store->province);
?>
"><img src="<?php 
echo layout();
?>
images/cerrar.png"></a>
   <div class="text">
   	 <h1><?php 
echo $store->store;
?>
</h1>
   	 <?php 
if ($store->details) {
    echo $store->details;
    ?>
<br>
Ejemplo n.º 4
0
                        <th>Precio s/iva</th>
                        <th class="qq">Cantidad</th>
                        <?php 
    if (!isset($cartDisabled)) {
        ?>
                        <th></th>
                        <?php 
    }
    ?>
                    </tr>
                </thead>
                <?php 
    $subtotal = 0;
    $shipping = 0;
    foreach ($cartItems as $item) {
        $link = base_url() . 'libro/' . $item->id . '/' . prep_word_url($item->title);
        $itemCost = prep_cost($item->cost, true, false);
        $itemCostIVA = prep_cost($item->cost * 0.96, true, false);
        $itemCostST = prep_cost($item->cost * round($item->items), true, false);
        if ($item->active == 1) {
            $subtotal += $item->cost * round($item->items);
        }
        if ($item->active != 1 && isset($cartDisabled)) {
            continue;
        }
        $inCart = $this->Cart->ItemExists($item->id, 0, 0);
        ?>
                    <tr data-value="<?php 
        echo $item->active == 1 ? $item->cost : 0;
        ?>
" data-id="<?php 
Ejemplo n.º 5
0
<div class="row products-list">
  <?php 
foreach ($productsSearch as $item) {
    $itemUriName = prep_word_url($item->name);
    $inCart = $this->Cart->ItemExists($item->id, 0, 0);
    $itemCost = prep_cost($item->cost, true, false);
    if (round($item->cost2) == round($item->cost)) {
        $item->cost2 = 0;
    }
    $colors = $this->Data->ProductColors($item->id);
    ?>
  <div class="col-sm-3 product-list-item">
      <div class="cover style3 product-preview" style="background-image:url('<?php 
    echo thumb($item->file, 386, 450);
    ?>
')">
      <?php 
    if ($item->id_state != 1) {
        ?>
      <span class="badge badge-outstock"><?php 
        echo $item->state;
        ?>
</span>
      <?php 
    } elseif (round($item->cost2) && ($perc = round(($item->cost2 - $item->cost) / $item->cost2 * 100)) >= 5) {
        ?>
        
      <span class="badge badge-discount rbadge-discount"><?php 
        echo $perc;
        ?>
%</span>
Ejemplo n.º 6
0
if (!$teamNext) {
    ?>
 inactive<?php 
}
?>
"><?php 
if ($teamNext) {
    ?>
<a class="app-loader" href="<?php 
    echo base_url();
    ?>
nosotros/equipo-humano/<?php 
    echo $teamNext->id_team;
    ?>
/<?php 
    echo prep_word_url($teamNext->name . ' ' . $teamNext->lastname);
    ?>
"><img src="<?php 
    echo layout();
    ?>
images/next.png"></a><?php 
} else {
    ?>
<img src="<?php 
    echo layout();
    ?>
images/next.png"><?php 
}
?>
</div>
	   </div>
Ejemplo n.º 7
0
    echo $article->author_name;
    ?>
 <?php 
    echo $article->author_lastname;
    ?>
" title="<?php 
    echo $article->author_name;
    ?>
 <?php 
    echo $article->author_lastname;
    ?>
" class="app-link" <?php 
    echo $this->Data->clientID ? 'target="_blank" ' : "";
    ?>
href="<?php 
    echo $this->config->item('link-infonews', 'app') . "autor/{$article->author_id}/" . prep_word_url($article->author_name . ' ' . $article->author_lastname);
    ?>
"><?php 
    echo $article->author_name;
    ?>
 <?php 
    echo $article->author_lastname;
    ?>
</a></h3>
          <h2><a ga-event="Click,Barra lateral Opinion,Nota: ''<?php 
    echo str_replace(',', ".", str_replace('"', "'", $article->title));
    ?>
''" title="<?php 
    echo $article->title;
    ?>
" class="app-link" href="<?php 
Ejemplo n.º 8
0
                    ?>
)"></div>
                <img class="commas" src="<?php 
                    echo layout('ico/reviews/icono-opinion-autor.png');
                    ?>
">
              </div>
              <div class="opinion">
                <span class="author"><a title="<?php 
                    echo $article->author_name;
                    ?>
 <?php 
                    echo $article->author_lastname;
                    ?>
" href="<?php 
                    echo base_url() . "autor/{$article->author_id}/" . prep_word_url($article->author_name . ' ' . $article->author_lastname);
                    ?>
"><?php 
                    echo $article->author_name;
                    ?>
 <?php 
                    echo $article->author_lastname;
                    ?>
</a></span>
                <?php 
                    if ($article->author_twitter) {
                        ?>
                <p class="twitter"><a href="http://twitter.com<?php 
                        echo $article->author_twitter;
                        ?>
" target="_blank">@<?php 
Ejemplo n.º 9
0
<?php

foreach ($articles as $article) {
    $this->load->shview("section/articles/list", array('article' => $this->Data->DataArticleList($article->id)));
}
?>
        
<?php 
if ($total > $nextList) {
    ?>
<div class="widget-more-notes">
  <span class="button"><a class="button-more" href="<?php 
    echo base_url() . 'autor/' . $author->id . '/' . prep_word_url($author->author_name . ' ' . $author->author_lastname) . '/' . $nextList;
    ?>
">ver más notas</a><span class="line"></span></span>
</div>
<?php 
}
Ejemplo n.º 10
0
 public function book($id = 0)
 {
     $id = round($id);
     if (!$id) {
         return redirect('catalogo');
     }
     $this->data['book'] = $this->Data->GetBook($id);
     $this->data['categories'] = $this->Data->GetCategories();
     $this->data['url'] = base_url() . 'libro/' . $id . '/' . prep_word_url($this->data['book']->title);
     $this->data['IDcategory'] = $this->data['book']->id_category;
     if (!$this->data['book']) {
         return redirect('catalogo');
     }
     $this->load->view('section/book', $this->data);
 }
Ejemplo n.º 11
0
 public function uploadFile($file = null)
 {
     $exp = explode('.', $file['name']);
     if (count($exp) < 2) {
         return false;
     }
     $ext = strtolower($exp[count($exp) - 1]);
     if (!$ext || !$exp[0] || !$file['tmp_name'] || !file_exists($file['tmp_name'])) {
         return false;
     }
     $data = array();
     $data['name'] = substr($file['name'], 0, strlen($file['name']) - strlen($ext) - 1);
     $fname = prep_word_url($data['name']);
     $data['name'] = $file['name'];
     $name = $this->makeFileName($fname, $ext);
     $newfile = $this->getFolder() . $name;
     copy($file['tmp_name'], $newfile);
     unset($data['action']);
     $data['id_type'] = $this->FileType($ext);
     $data['id_folder'] = $this->input->post('folder');
     $data['id_user'] = $this->MApp->user->id;
     $data['file'] = $name;
     $id = $this->SaveNewFile($data);
     $data['id'] = $id;
     if ($data['id_type'] == 1) {
         $data['thumb'] = thumb_url($id, $this->fglobal);
     }
     $data['url'] = upload($name, $this->fglobal);
     $this->ActionsFileAdded($data);
     return $data;
 }
Ejemplo n.º 12
0
        </div>
        <?php 
    }
}
?>
      </div>
      </div>
      <div class="col-33 nopadding">
        <?php 
if (isset($yafuetodoArticles[0])) {
    $article = $this->Data->DataArticleHome($yafuetodoArticles[0]->id);
    if ($article) {
        ?>
          <div class="widget-article type-4">  
              <div class="title-header"><a href="<?php 
        echo base_url() . prep_word_url('Ya fue todo');
        ?>
">Ya fue todo</a></div>
              <div class="article-content">
                  <?php 
        if ($article->picture) {
            ?>
                  <div class="figure">
                  <?php 
            if ($article->videohome) {
                ?>
<span class="video-ico"></span><?php 
            }
            ?>
                    <a title="<?php 
            echo $article->title;
Ejemplo n.º 13
0
    ?>
" class="tag"><?php 
    echo $item->tags[0]->tag;
    ?>
</a>
  <?php 
    if (isset($item->tags[1]) && $item->tags[1]->important) {
        ?>
  <a href="<?php 
        echo base_url();
        ?>
tags/<?php 
        echo $item->tags[1]->id;
        ?>
/<?php 
        echo prep_word_url($item->tags[1]->tag);
        ?>
" class="tag"><?php 
        echo $item->tags[1]->tag;
        ?>
</a>
  <?php 
    }
    ?>
  <?php 
}
?>
  <?php 
/*
<span class="comments"><span class="coments-count">20</span></span>
*/
Ejemplo n.º 14
0
if ($related && count($related)) {
    ?>
	<div class="in widget-related">
		<div class="title">
			<h1><?php 
    echo $this->lang->line('Artículos relacionados');
    ?>
</h1>
		</div>
		<div class="grid app-lighter in">
			<?php 
    foreach ($related as $r) {
        $blog = $this->Data->GetBlog($r);
        if ($r) {
            $time = mysql_to_unix($blog->date);
            $link = base_url() . $this->lang->line('blog') . '/post/' . $blog->id . '/' . prep_word_url($blog->title);
            ?>
			<div class="grid-col-3 blog">
				<a href="<?php 
            echo $link;
            ?>
" class="app-loader">
				<div class="blog-in">
					<h1><?php 
            echo $blog->title;
            ?>
</h1>
					<div class="separador"></div>
					<p><span class="fecha"><?php 
            echo round(date('d', $time));
            ?>
Ejemplo n.º 15
0
        ?>
</small>
								</div>
								<div class="data-program">
									<div class="info">										
										<?php 
        if ($tagP) {
            ?>
										<h1><a href="<?php 
            echo base_url();
            ?>
programa/<?php 
            echo $tagP->id;
            ?>
/<?php 
            echo prep_word_url($tagP->nombre);
            ?>
" target="_blank"><?php 
            echo $program->programa;
            ?>
</a></h1>
										<?php 
        } else {
            ?>
										<h1><?php 
            echo $program->programa;
            ?>
</h1>
										<?php 
        }
        ?>
Ejemplo n.º 16
0
 public function infonews23($view = '')
 {
     if (!$view) {
         return show_404();
     }
     $this->data['comScoreString'] = prep_word_url(NSPACE) . '.' . prep_word_url($view);
     $this->load->config('seo', TRUE);
     $this->data['headers']['head-title'] = $this->config->item("infonews-{$view}-title", 'seo') . ' | ' . $this->config->item('client', 'app');
     $this->data['headers']['title'] = $this->config->item("infonews-{$view}-title", 'seo') . ' | ' . $this->config->item('client', 'app');
     $this->data['headers']['description'] = $this->config->item("infonews-{$view}-description", 'seo');
     $this->data['headers']['keywords'] = $this->config->item("infonews-{$view}-keywords", 'seo');
     $this->load->nsview("static/{$view}", $this->data);
 }
Ejemplo n.º 17
0
<div class="widget-row-3">
<div class="app-inside">
<div class="widget-home-second row">

  <div class="title-header"><a href="<?php 
echo base_url() . prep_word_url('De acá');
?>
">De acá</a></div>
      <?php 
foreach ($articles as $i => $_article) {
    $article = $this->Data->DataArticleHome($_article->id);
    if ($article) {
        ?>
                
        <div class="widget-article type-1">
          <div class="zoom-figure">           
          <?php 
        if ($article->picture) {
            ?>
          <div class="figure">
            <a title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
              <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
Ejemplo n.º 18
0
}
?>
<div class="app-section section-blog">
	<div class="app-inside">
		<?php 
$this->load->view('widget/blog-side');
?>
    <div id="contenido">
      <div id="principal">
        <div id="blog" class="section-blog-list">
      	<?php 
foreach ($blogs as $b) {
    ?>
          <div class="blog-item"> 
          		<a class="app-loader" href="<?php 
    echo base_url() . 'blog/' . $b->id . '/' . prep_word_url($b->title);
    ?>
">
          			<img src="<?php 
    echo thumb($b->file, 210, 136);
    ?>
">
          			<p><?php 
    echo $b->title;
    ?>
</p>
          		</a>
          </div>
        	<?php 
}
?>
Ejemplo n.º 19
0
if (!$sellerNext) {
    ?>
 inactive<?php 
}
?>
"><?php 
if ($sellerNext) {
    ?>
<a class="app-loader" href="<?php 
    echo base_url();
    ?>
vendedor/<?php 
    echo $sellerNext->id_seller;
    ?>
/<?php 
    echo prep_word_url($sellerNext->name . ' ' . $sellerNext->lastname);
    ?>
"><img src="<?php 
    echo layout();
    ?>
images/next.png"></a><?php 
} else {
    ?>
<img src="<?php 
    echo layout();
    ?>
images/next.png"><?php 
}
?>
</div>
	   </div>
Ejemplo n.º 20
0
 public function index($id = 0, $slug = '')
 {
     $this->load->model('ArticleModel', 'ArticleM');
     if (NSPACE == 'elsensacional' && !is_numeric($id) || NSPACE == 'elsensacional' && round($id) < 25000) {
         return $this->redirect_elsensa($id);
     }
     $id = round($id);
     $this->ArticleM->id = $id;
     if ($this->input->post('action') == 'save-view') {
         $this->ArticleM->saveView();
         return;
     }
     if ($slug == 'debug-facebook' || $this->input->post('action') == 'debug-facebook') {
         return $this->debugfacebook($id);
     }
     if ($this->input->post('action') == 'check-social') {
         $article = $this->Data->DataArticleHome($id);
         if (!$article) {
             exit;
         }
         $this->load->model('SocialModel', 'SocialM');
         $result = $this->SocialM->UpdateArticleStats($id, $article->permalink, $article->permalink_comments);
         #print_r($result);
         return;
     }
     $article = $this->ArticleM->DataArticle();
     #if(!$article) return $this->error404();
     if (!$article) {
         return;
     }
     $linkPortal = $this->Data->GetLinkPortal($article->category);
     if ($slug && $linkPortal != base_url()) {
         return redirect($article->link, 'location', 301);
     }
     if ($slug && base_url() . "nota/{$id}/{$slug}" != $article->link) {
         return redirect($article->link, 'location', 301);
     }
     if ($slug && $linkPortal != base_url()) {
         return redirect($article->link, 'location', 301);
     }
     if ($article->show_ep == 'N') {
         $this->config->set_item('ads-active', false, 'app');
     }
     $this->data['dSection'] = $this->Data->GetSection($article->idcategory);
     if (!$this->Data->clientID) {
         $this->data['EpSection'] = 'infonews-article';
         $this->data['EpSectionDet'] = 'Seccion_' . $this->data['dSection']->name_link;
     }
     $this->data['comScoreString'] = prep_word_url(NSPACE) . '.' . prep_word_url($article->category_name) . '.' . prep_word_url($article->title);
     $this->data['article'] = $article;
     $this->data['headers'] = array();
     $this->data['headers']['head'] = '<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">';
     $this->data['headers']['robots'] = 'index,follow';
     $this->data['headers']['title'] = $article->title;
     $this->data['headers']['head-title'] = $article->title . ' | ' . $article->category_name . ' | ' . $this->config->item('client', 'app');
     $this->data['headers']['description'] = rtrim(trim(strip_tags($article->subtitle)));
     if (!$this->data['headers']['description']) {
         $description = strip_tags($article->body);
         $this->data['headers']['description'] = character_limiter(rtrim(trim($description)), 300);
     }
     $this->data['headers']['keywords'] = array_merge($article->meta_tags, array($article->category_name), $this->config->item('app-keywords', 'app'));
     $this->data['headers']['og:type'] = 'article';
     $this->data['headers']['og:image'] = false;
     $this->data['headers']['og:url'] = $article->permalink;
     $this->data['headers']['customData'] = $this->load->shview('widget/metatags', $this->data, true);
     $this->load->shview('article/index', $this->data);
 }
Ejemplo n.º 21
0
	</div>
	<?php 
}
?>
	<div class="grid-porfolio" <?php 
if (!count($projects)) {
    ?>
style="display:none"<?php 
}
?>
>
		<div class="grid-item-width"></div>
		<?php 
$count = 0;
foreach ($projects as $p) {
    $link = base_url() . $this->lang->line('trabajo') . '/' . $p->id . '/' . prep_word_url($p->name);
    ?>
		<div class="grid-item<?php 
    echo $count ? "" : " full";
    ?>
">
			<a href="<?php 
    echo $link;
    ?>
" class="app-loader">	
			<img class="bg bg-full" src="<?php 
    echo thumb($p->file2 ? $p->file2 : $p->file1, 1920, 640);
    ?>
">
			<img class="bg bg-basic" src="<?php 
    echo thumb($p->file1, 640, 350);
Ejemplo n.º 22
0
<?php

if (!count($cartItems)) {
    ?>
  <div class="no-label">There are no added products to the shopping cart</div> 
<?php 
} else {
    ?>
<table class="table table-list-cart table-list-cart-section">
	<tbody>
	<?php 
    $subtotal = 0;
    $shipping = 0;
    foreach ($cartItems as $item) {
        $link = base_url() . 'product/' . $item->id . '/' . prep_word_url($item->title);
        $itemCost = prep_cost($item->cost, true, false);
        $itemCostIVA = prep_cost($item->cost * 0.96, true, false);
        $itemCostST = prep_cost($item->cost * round($item->items), true, false);
        if ($item->active != 1) {
            continue;
        }
        $subtotal += $item->cost * round($item->items);
        $inCart = $this->Cart->ItemExists($item->id, 0, 0);
        ?>
		<tr data-value="<?php 
        echo $item->active == 1 ? $item->cost : 0;
        ?>
" data-id="<?php 
        echo $item->iditem;
        ?>
">
Ejemplo n.º 23
0
?>
" class="social-item" title="Twitter" target="_blank"><img src="<?php 
echo layoutn('twitter.png');
?>
" alt="Twitter" /></a>
    </span>
    <ul class="topics-menu">
    <?php 
foreach ($sections as $section) {
    ?>
      <li class="sep"></li>
      <li><a <?php 
    if (isset($dSection->id) && $dSection->id == $section->id) {
        ?>
class="active" <?php 
    }
    ?>
href="<?php 
    echo base_url();
    echo prep_word_url($section->link);
    ?>
"><?php 
    echo $section->name;
    ?>
</a></li>
    <?php 
}
?>
    </ul>
  </div>
</div>
Ejemplo n.º 24
0
<div class="widget-row-sensatv">
    <div class="row">  
    <div class="app-inside">
            <div class="title-header"><a href="<?php 
echo base_url() . prep_word_url('Sensa TV');
?>
">Sensa TV</a></div>

            <?php 
foreach ($articles as $i => $_article) {
    $article = $this->Data->DataArticleHome($_article->id);
    if ($article) {
        ?>
                
              <div class="widget-article type-4 col-25">
                <div class="zoom-figure">           
                <a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
">
                <?php 
        if ($article->picture) {
            ?>
                <span class="figure">

                    <?php 
            /* if($article->videohome):*/
            ?>
Ejemplo n.º 25
0
           <?php 
}
?>
           <div class="box-content">
           <div class="box-content-cc">
           <?php 
foreach ($n3 as $n) {
    ?>
             <a class="app-loader" href="<?php 
    echo base_url();
    ?>
novedades/<?php 
    echo $n->id_article;
    ?>
/<?php 
    echo prep_word_url($n->title);
    ?>
">
             <div class="element">
                <div class="title"><?php 
    echo $n->title;
    ?>
</div>
                <div class="img" style="background-image:url(<?php 
    echo thumb($n->file, 450, 270);
    ?>
)"></div>
             </div>
             </a>
           <?php 
}
Ejemplo n.º 26
0
 public function transit()
 {
     $this->data['comScoreString'] = prep_word_url(NSPACE) . '.transito';
     $this->load->model('transitmodel', 'transitmodel');
     $this->data['trains'] = $this->transitmodel->GetTrainsStats();
     $this->data['subways'] = $this->transitmodel->GetSubwayStats();
     $this->data['access'] = $this->transitmodel->GetAccessStats();
     $this->load->config('seo', TRUE);
     $this->data['headers']['head-title'] = $this->config->item("infonews-transit-title", 'seo');
     $this->data['headers']['title'] = $this->config->item("infonews-transit-title", 'seo') . ' | ' . $this->config->item('client', 'app');
     $this->data['headers']['description'] = $this->config->item("infonews-transit-description", 'seo');
     $this->data['headers']['keywords'] = $this->config->item("infonews-transit-keywords", 'seo');
     $this->data['headers']['customData'] = $this->load->shview('widget/metatags-rss', $this->data, true);
     $this->load->nsview("static/transit", $this->data);
 }
Ejemplo n.º 27
0
                ?>
" /><?php 
            }
            ?>
                  </a>
                    <?php 
            if (count($article->tags)) {
                ?>
<h1><a title="<?php 
                echo $article->title;
                ?>
" target="_blank" class="app-link" href="programa/<?php 
                echo $article->tags[0]->id;
                ?>
/<?php 
                echo prep_word_url($article->tags[0]->tag);
                ?>
"><?php 
                echo $article->tags[0]->tag;
                ?>
</a></h1><?php 
            }
            ?>
                </figure>
                <a title="<?php 
            echo $article->title;
            ?>
" target="_blank" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
Ejemplo n.º 28
0
    echo layout();
    ?>
images/arrow-left.png"></a>
				<?php 
} else {
    ?>
				<a class="inactive"><img src="<?php 
    echo layout();
    ?>
images/arrow-left.png"></a>
				<?php 
}
?>
				<?php 
if ($next) {
    $link = base_url() . $this->lang->line('trabajo') . "/" . $next->id . "/" . prep_word_url($next->name);
    ?>
				<a class="app-loader" href="<?php 
    echo $link;
    ?>
"><img src="<?php 
    echo layout();
    ?>
images/arrow-right.png"></a>
				<?php 
} else {
    ?>
				<a class="inactive"><img src="<?php 
    echo layout();
    ?>
images/arrow-right.png"></a>
Ejemplo n.º 29
0
$tagsTitle = read_json('tags/infonews');
if (count($tagsTitle)) {
    ?>
<div class="topics">
  <div class="app-inside">
    <ul>        
      <?php 
    foreach ($tagsTitle as $t) {
        ?>
      <li><a href="<?php 
        echo base_url();
        ?>
tag/<?php 
        echo $t->id;
        ?>
/<?php 
        echo prep_word_url($t->nombre);
        ?>
"><?php 
        echo $t->nombre;
        ?>
</a></li>
      <?php 
    }
    ?>
    </ul>
  </div>
</div>
<?php 
}
Ejemplo n.º 30
0
    ?>
</a> y <a class="app-loader" href="<?php 
    echo base_url() . 'autor/' . $book->id_author_2 . '/' . prep_word_url($book->a2name . ' ' . $book->a2lastname);
    ?>
"><?php 
    echo $book->a2name;
    ?>
 <?php 
    echo $book->a2lastname;
    ?>
</a></div>
				<?php 
} elseif ($book->id_author_1) {
    ?>
				<div class="author"><a class="app-loader" href="<?php 
    echo base_url() . 'autor/' . $book->id_author_1 . '/' . prep_word_url($book->a1name . ' ' . $book->a1lastname);
    ?>
"><?php 
    echo $book->a1name;
    ?>
 <?php 
    echo $book->a1lastname;
    ?>
</a></div>
				<?php 
}
?>
				<div class="book-text">
					<?php 
echo $book->text;
?>