Created
June 1, 2015 10:37
-
-
Save sajadtorkamani/c626818a5d447ba4c03d to your computer and use it in GitHub Desktop.
Example custom module
This file contains 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 | |
$item = $this->view; | |
$banner_img = $item->images('banner_img'); | |
// $client = $item->links("clients", array('single'=>true)); | |
// $client_logo = $client->images('thumbnail', true); | |
?> | |
<div class="case-study-banner"> | |
<img src="<?php echo $banner_img->src ?>" <?php echo $banner_img->responsive ?> alt=""> | |
<div class="banner-content"> | |
<?php echo $item->text->banner_content ?> | |
</div> | |
<div class='banner-links'> | |
<a class="btn btn-primary">Read the case study</a> | |
<a class="btn btn-secondary">View all case studies</a> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment