Ejemplo n.º 1
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.º 2
0
                <?php 
        if ($article->picture) {
            ?>
                <span class="figure">

                    <?php 
            /* if($article->videohome):*/
            ?>
<span class="video-ico"></span><?php 
            /* endif */
            ?>
                    <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 218, 140, true);
            ?>
" />

                </span>
                <?php 
        }
        ?>
 
                
                <h2><?php 
        echo $article->title;
        ?>
</h2>
                </a>
              </div>
Ejemplo n.º 3
0
    <div class="figure">
      <a title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
        <img alt="<?php 
            echo $article->title;
            ?>
" class="app-lazy" data-src="<?php 
            echo upload_advf($article->picture, 480, 320, true);
            ?>
" data-mobile-src="<?php 
            echo upload_advf($article->picture, 162, 120, true);
            ?>
" />
      </a>
    </div>
    <?php 
        }
        ?>
      
    <?php 
        if ($article->subtitle) {
            ?>
    <div class="mouseover"><div class="mouseover-inside"><?php 
            echo $article->subtitle;
            ?>
</div></div>
Ejemplo n.º 4
0
          <article class="widget-article third-article">        
            <a title="<?php 
echo $article->title;
?>
" target="_blank" class="app-link" href="<?php 
echo $article->link;
?>
">
              <figure class="figure">
                  <img alt="<?php 
echo $article->title;
?>
" src="<?php 
echo upload_advf($article->picture, 388, 320, true);
?>
" />
                  <?php 
if (count($article->tags)) {
    ?>
<h1><?php 
    echo $article->tags[0]->tag;
    ?>
</h1><?php 
}
?>
              </figure>
              <div class="article-content">
                <span class="icon"><i class="material-icons">&#xE029;</i></span>
                <?php 
if ($article->title) {
    ?>
Ejemplo n.º 5
0
          <?php 
foreach ($data->data->articles as $article) {
    $article = $this->Data->DataArticleHome($article->id);
    if ($article && $article->picture) {
        ?>
<li><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo upload_advf($article->picture, 474, 600, true);
        ?>
" data-lightbox="roadtrip"><img alt="<?php 
        echo $article->title;
        ?>
" src="<?php 
        echo upload_advf($article->picture, 183, 232, true);
        ?>
" /></a></li><?php 
    }
    ?>
          <?php 
}
?>
          </ul>
          <span u="arrowleft" class="slider-arrow slider-arrow-left">
          </span>
          <span u="arrowright" class="slider-arrow slider-arrow-right">
          </span>
      </div>
    </div>
  </div>
Ejemplo n.º 6
0
      <?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;
            ?>
" class="app-lazy" data-src="<?php 
            echo upload_advf($article->picture, 265, 175);
            ?>
" />
        </a>
      </div>
      <?php 
        }
        ?>
    <div class="content-info">
      <h2><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
"><?php 
Ejemplo n.º 7
0
">
        <?php 
            if ($article->picture) {
                ?>
          <figure class="figure">
              <?php 
                if ($article->videohome) {
                    ?>
<span class="video-ico"></span><?php 
                }
                ?>
              <img alt="<?php 
                echo $article->title;
                ?>
" class="app-lazy" data-src="<?php 
                echo upload_advf($article->picture, 115, 90, true);
                ?>
" />
          </figure>
          <?php 
            }
            ?>
        </a>
          <span class="article-content">
          <a ga-event="Click,Home Bloque <?php 
            echo $i;
            ?>
,Notas varias" title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
Ejemplo n.º 8
0
        ?>
        <div class="open-first zoom-figure">
            <div class="widget-article">   
              <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 
        echo upload_advf($article->picture, 620, 325, true);
        ?>
" />
                </a>
                <h2><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
"><?php 
        echo $article->title;
        ?>
</a></h2>
              </div>           
              <div class="article-content">
Ejemplo n.º 9
0
          <?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 
            echo upload_advf($article->picture, 470, 280, true);
            ?>
" />
            </a>
          </div>
          <?php 
        }
        ?>
 
          <div class="article-content">
            <h2><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
Ejemplo n.º 10
0
        ?>
    <div class="open-second-col col-pdf">
      <div class="widget-article">  
        <?php 
        if ($article->picture) {
            ?>
        <div class="figure">
          <a target="_blank" title="Descargar PDF" class="app-link" href="<?php 
            echo $article->cover_link;
            ?>
">
            <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 313, 423, true);
            ?>
" />
          </a>
        </div>       
        <?php 
        }
        ?>
        <div class="mouseover"><div class="mouseover-inside"><a class="button" target="_blank" href="<?php 
        echo $article->cover_link;
        ?>
">Descargar PDF</a></div></div>
      </div>      
    </div>
    <?php 
    }
Ejemplo n.º 11
0
  <div class="header-title<?php 
if (!$article->author->picture) {
    ?>
 no-picture<?php 
}
?>
">
    <span class="app-hidden" itemprop="articleSection"><?php 
echo $article->category_name;
?>
</span>
    <?php 
if ($article->author->picture) {
    ?>
<div class="picture"><a class="picture-author" style="background-image:url(<?php 
    echo upload_advf($article->author->picture, 170, 170, true);
    ?>
)" title="<?php 
    echo $article->author->author_name;
    ?>
 <?php 
    echo $article->author->author_lastname;
    ?>
" target="_blank" href="<?php 
    echo $this->config->item('link-infonews', 'app') . "autor/{$article->author->id}/" . prep_word_url($article->author->author_name . ' ' . $article->author->author_lastname);
    ?>
"><?php 
    echo $article->author->author_name;
    ?>
 <?php 
    echo $article->author->author_lastname;
Ejemplo n.º 12
0
  <a title="<?php 
echo $article->title;
?>
" target="_blank" class="app-link" href="<?php 
echo $article->link;
?>
">
    <figure class="figure">
        <?php 
if ($article->picture) {
    ?>
<img alt="<?php 
    echo $article->title;
    ?>
" src="<?php 
    echo upload_advf($article->picture, 555, 420, true);
    ?>
" /><?php 
}
?>
        <?php 
if (count($article->tags)) {
    ?>
<h1><?php 
    echo $article->tags[0]->tag;
    ?>
</h1><?php 
}
?>
    </figure>
    <span class="article-content">
Ejemplo n.º 13
0
        /* src="<?= upload_advf($image->picture, 100, 67, true) ?>" */
        ?>
                    data-position="<?php 
        echo $i;
        ?>
"
                    data-thumb="<?php 
        echo upload_advf($image->picture, 100, 67, true);
        ?>
"
                    data-image="<?php 
        echo upload_advf($image->picture, 735, 490, true);
        ?>
"
                    data-big="<?php 
        echo upload_advf($image->picture, 1153, 768, true);
        ?>
"
                    data-category="<?php 
        echo $image->category;
        ?>
"
                    data-categoryName="<?php 
        echo $image->category_name;
        ?>
"
                    <?php 
        if ($image->title) {
            ?>
data-title="<?php 
            if ($image->category_name) {
Ejemplo n.º 14
0
          <div class="figure">
            <a ga-event="Click,Home Bloque <?php 
            echo $i;
            ?>
,Trending Nota Principal" title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
              <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 230, 153, true);
            ?>
" />
            </a>
          </div>
          <?php 
        }
        ?>
          <div class="subtitle"><?php 
        echo strip_tags($article->subtitle);
        ?>
</div>
        </div>
      </div>
    </div>
    <?php 
Ejemplo n.º 15
0
    ?>
				<article class="widget-intimo-article">
					
		            <a title="<?php 
    echo $article->title;
    ?>
" class="app-link" href="<?php 
    echo $article->link;
    ?>
">
						<figure class="figure">
			               <img alt="<?php 
    echo $article->title;
    ?>
" class="app-lazy" data-src="<?php 
    echo upload_advf($article->picture, $w, $h, true);
    ?>
" />
			            </figure>
			            <div class="article-content">
			            	
							<h1><?php 
    echo $article->title;
    ?>
</h1>
							<p class="subtitle"><?php 
    echo $article->subtitle;
    ?>
</p>
			            </div>
		            </a>
Ejemplo n.º 16
0
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
">
      <div class="tab-angle"><div class="tab-angle-bg"><div class="tab-angle-ico"></div></div></div>
      <?php 
        if ($article->picture) {
            ?>
      <figure class="figure">
        <img alt="<?php 
            echo $article->title;
            ?>
" class="app-lazy" data-src="<?php 
            echo upload_advf($article->picture, 280, 185);
            ?>
" />
        <?php 
            if ($article->subtitle && !$article->datafatory) {
                ?>
          <span class="subtitle"><?php 
                echo $article->subtitle;
                ?>
</span>
        <?php 
            }
            ?>
      </figure>
      <?php 
        }
Ejemplo n.º 17
0
        <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 232, 285, true);
            ?>
" />
        <?php 
        } else {
            ?>
 
        <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 232, 150, true);
            ?>
" />
        <?php 
        }
        ?>
 
      </a>
    </div>
    <?php 
    }
    ?>
 
    <div class="article-content">      
      <h2><a title="<?php 
    echo $article->title;
Ejemplo n.º 18
0
                        ?>
">
                <?php 
                        if ($article->videohome) {
                            ?>
<span class="video-ico"></span><?php 
                        }
                        ?>
                <?php 
                    }
                    ?>
                  <img alt="<?php 
                    echo $article->title;
                    ?>
" class="app-lazy" data-src="<?php 
                    echo upload_advf($article->picture, 313, 206, $article->category != 97);
                    ?>
" />
                  <?php 
                    if ($article->category != 97 && $article->subtitle) {
                        ?>
                  <div class="subtitle"><?php 
                        echo $article->subtitle;
                        ?>
</div>
                  <?php 
                    }
                    ?>
                <?php 
                    if ($article->category != 97) {
                        ?>
Ejemplo n.º 19
0
		    <div class="figure">
		      <a title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
		      <img alt="<?php 
            echo $article->title;
            ?>
" class="app-lazy" data-src="<?php 
            echo upload_advf($article->picture, 300, 210, true);
            ?>
" data-mobile-src="<?php 
            echo upload_advf($article->picture, 167, 117, true);
            ?>
"  />
      	  	<span class="category"><?php 
            echo $section->name;
            ?>
</span>
		      </a>
		    </div>
		    <?php 
        }
        ?>
	    	<div class="article-content">
	      	<h2><a title="<?php 
        echo $article->title;
        ?>
Ejemplo n.º 20
0
    ?>
" title="<?php 
    echo $article->title;
    ?>
" class="app-link" href="<?php 
    echo $article->link;
    ?>
">
      <img alt="<?php 
    echo $article->title;
    ?>
" class="app-lazy" data-src="<?php 
    echo upload_advf($article->picture, 585, 440, true);
    ?>
" data-mobile-src="<?php 
    echo upload_advf($article->picture, 340, 256, true);
    ?>
" />
      </a>
    </div>
    <?php 
}
?>
    <div class="content-info">
      <?php 
if (!$article->picture) {
    ?>
      <div class="title">
        <h2><a ga-event="Click,Seccion <?php 
    if (isset($dSection->name)) {
        echo $dSection->name;
Ejemplo n.º 21
0
    ?>
" title="<?php 
    echo $article->title;
    ?>
" class="app-link" href="<?php 
    echo $article->link;
    ?>
">
        <img alt="<?php 
    echo $article->title;
    ?>
" class="app-lazy" data-src="<?php 
    echo upload_advf($article->picture, 370, 250, true);
    ?>
" data-mobile-src="<?php 
    echo upload_advf($article->picture, 370, 250, true);
    ?>
" />
      </a>
    </div>
    <?php 
}
?>
    <div class="content-info">
      <h2><a ga-event="Click,Seccion <?php 
if (isset($dSection->name)) {
    echo $dSection->name;
}
?>
,Link: <?php 
echo $article->title;
Ejemplo n.º 22
0
    ?>
" title="<?php 
    echo $article->title;
    ?>
" class="app-link" href="<?php 
    echo $article->link;
    ?>
">
        <img alt="<?php 
    echo $article->title;
    ?>
" class="app-lazy" data-src="<?php 
    echo upload_advf($article->picture, 237, 178);
    ?>
" data-mobile-src="<?php 
    echo upload_advf($article->picture, 340, 255);
    ?>
" />
      </a>
    </figure>
    <?php 
}
?>
    <div class="content-info">
      <?php 
if (count($article->tags)) {
    ?>
<span class="program"><?php 
    echo $article->tags[0]->tag;
    ?>
</span><?php 
Ejemplo n.º 23
0
        echo $i;
        ?>
,Galleria Miniaturas' href='<?php 
        echo $gallery->link;
        ?>
'>
                <div>
                <?php 
        $images = $this->HomeM->getGallery($gallery->id);
        ?>
                <?php 
        foreach ($images as $i => $image) {
            ?>
                  <figure>
                    <img src="<?php 
            echo upload_advf($image->picture, 50, 50, true);
            ?>
" alt="Miniatura - <?php 
            echo $gallery->title;
            ?>
" >
                    <?php 
            if ($i == 7 && count($images) > 7) {
                echo '<span class="more-imgs">+ ' . (count($images) - 7) . '</span>';
                break;
            }
            ?>
                  </figure>
                <?php 
        }
        ?>
Ejemplo n.º 24
0
        echo $article->link;
        ?>
" ga-event="Click,Home Bloque <?php 
        echo $i;
        ?>
,Nota: <?php 
        echo $article->title;
        ?>
">
							<div>
								<figure>
									<img alt="<?php 
        echo $article->title;
        ?>
" class="app-lazy" data-src="<?php 
        echo upload_advf($article->picture, 227, 227, true);
        ?>
"  />
								</figure>
								<span class="band-blog"><?php 
        echo $article->category_name;
        ?>
</span>
								<h1><?php 
        echo $article->title;
        ?>
</h1>
							</div>
						</a>
					</article>
					<?php 
Ejemplo n.º 25
0
                <figure class="figure">
                  <a title="<?php 
            echo $article->title;
            ?>
" target="_blank" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
                    <?php 
            if ($article->picture) {
                ?>
<img alt="<?php 
                echo $article->title;
                ?>
" src="<?php 
                echo upload_advf($article->picture, 225, 160, true);
                ?>
" /><?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 
Ejemplo n.º 26
0
    echo upload_advf($article->picture, 800, 800);
    ?>
">
<meta property="og:image" name="og:image" content="<?php 
    echo upload_advf($article->picture, 800, 800);
    ?>
" />
<?php 
} elseif (isset($article->images_complete[0])) {
    ?>
<meta name="twitter:image" content="<?php 
    echo upload_advf($article->images_complete[0]->picture, 800, 800);
    ?>
">
<meta property="og:image" name="og:image" content="<?php 
    echo upload_advf($article->images_complete[0]->picture, 800, 800);
    ?>
" />
<?php 
} else {
    ?>
<meta name="twitter:image" content="<?php 
    echo layoutn('share-alt.jpg');
    ?>
">
<meta property="og:image" name="og:image" content="<?php 
    echo layoutn('share-alt.jpg');
    ?>
" />
<?php 
}
Ejemplo n.º 27
0
  <?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 
    echo upload_advf($article->picture, 290, 316, true);
    ?>
" />
    </a>
  </div>       
  <?php 
}
?>
       
  <div class="article-content">
    <div class="article-content-inside">
      <h2><a title="<?php 
echo $article->title;
?>
" class="app-link" href="<?php 
echo $article->link;
Ejemplo n.º 28
0
    <div class="figure">
      <a title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
        <img alt="<?php 
            echo $article->title;
            ?>
" class="app-lazy" data-src="<?php 
            echo upload_advf($article->picture, 300, 250, true);
            ?>
" data-mobile-src="<?php 
            echo upload_advf($article->picture, 156, 130, true);
            ?>
" />
      </a>
    </div>
    <?php 
        }
        ?>
 
  <div class="clear"></div>
  </div> 
  <?php 
    }
}
?>
</div>
Ejemplo n.º 29
0
    echo $article->author_name;
    ?>
 <?php 
    echo $article->author_lastname;
    ?>
" title="<?php 
    echo $article->title;
    ?>
" class="app-link author-ico" href="<?php 
    echo $article->link;
    ?>
"<?php 
    if ($article->picture) {
        ?>
 style="background-image:url(<?php 
        echo upload_advf($article->picture, 86, 86);
        ?>
)"<?php 
    }
    ?>
></a></div>
            <?php 
    if ($article->picture) {
        ?>
            <img class="commas app-lazy" data-src="<?php 
        echo layout('ico/reviews/icono-opinion-autor.png');
        ?>
">
            <?php 
    }
    ?>
Ejemplo n.º 30
0
 public function PrepQuestion($row = false)
 {
     $row['respuestas'] = $this->GetAnswers($row['id']);
     if ($row['img_link']) {
         $row['imagen'] = upload_advf($row['img_link'], 90, 90, true);
     } else {
         $row['imagen'] = false;
     }
     unset($row['img_link']);
     unset($row['activo']);
     return $row;
 }