Ejemplo n.º 1
0
<?php

if (isset($gallery)) {
    ?>
<ul class="gallery">
   <?php 
    foreach ($gallery as $g) {
        ?>
 
    <?php 
        $source = Model_Sources::getProvider($g['source_id']);
        ?>
    <li>
        <div class="frame">
            <img alt="<?php 
        echo $g['title'];
        ?>
" src="<?php 
        echo URL::base();
        ?>
assets/images/<?php 
        echo $g['catalog_id'];
        ?>
/<?php 
        echo $g['image_name'];
        ?>
" class="cover-image">
            <a href="<?php 
        echo $source['url'];
        echo $g['url'];
        ?>
Ejemplo n.º 2
0
 public static function updatePublish()
 {
     $links = DB::select()->from('links')->execute();
     //
     foreach ($links as $val) {
         $s = Model_Sources::getProvider($val['source_id']);
         if (self::checkIfExpired($s['name'], $val['url'])) {
             self::editLink(array('is_public' => 1), $val['link_id']);
         } else {
             self::editLink(array('is_public' => 0), $val['link_id']);
         }
     }
     //
 }