Created
April 8, 2013 17:53
-
-
Save LinzardMac/5338907 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$params = array( | |
'where'=> 'featured' | |
); | |
$logos = pods('client_logos'); | |
$logos->find('name ASC', $params); | |
$total_logos = $logos->getTotalRows(); | |
?> | |
<div id="featured-clients"> | |
<?php if( $total_logos > 0 ) : ?> | |
<?php while ( $logos->fetch() ) : ?> | |
<?php | |
// set our variables | |
$name= $logos->field('name'); | |
$permalink= $logos->field('permalink'); | |
$pic1 = $logos->field('logo.guid'); | |
?> | |
<div id="<?php echo $permalink; ?>"> | |
<img src="<?php echo $pic1; ?>"/> | |
</div> | |
<?php | |
endwhile; | |
endif; | |
?> | |
</div> | |
sc0ttkclark
commented
Apr 8, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment