Example #1
0
 public static function getBitlyUrl($url)
 {
     if (self::isBitlyActive()) {
         $login = SiteVariable::get('BITLY_LOGIN');
         $key = SiteVariable::get('BITLY_API_KEY');
         $out = json_decode(Yii::app()->CURL->run('http://api.bit.ly/shorten?version=2.0.1&longUrl=' . urlencode($url) . '&login='******'&apiKey=' . $key . '&format=json'));
         if ($out->errorCode == 0) {
             $urls = (array) $out->results;
             return $urls[$url]->shortUrl;
         }
     }
     return '';
 }
Example #2
0
        </div>
    </div>
<?php 
}
?>

<script>
    $('#slideshow').rhinoslider({
        effect: 'kick',
        controlsPrevNext: false,
        controlsPlayPause: false,
        autoPlay: true,
        showBullets: 'never',
        showControls: 'never',
        controlsMousewheel: false
    });
</script>

<div class="container gad">
    <?php 
echo SiteVariable::get('GAD_728x15');
?>
</div>

<div class="container gad">
    <?php 
echo SiteVariable::get('GAD_728x90');
?>
</div>

Example #3
0
        ?>
        <?php 
    }
    ?>
        <?php 
    if ($i != 1) {
        echo '      </div>
                </div>';
    }
}
?>
</div>

<div class="container gad">
    <?php 
echo SiteVariable::get('GAD_728x90');
?>
</div>

<div class="container gad">
    <?php 
echo SiteVariable::get('GAD_728x15');
?>
</div>


<div style="text-align: center;margin-bottom: 30px;">
<?php 
$this->widget('CLinkPager', array('pages' => $pages, 'header' => ''));
?>
</div>