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
| /***ADD PROJECT IMAGES****/ | |
| function add_project_images() { | |
| if(get_field('project_images')): | |
| while(has_sub_field('project_images')): ?> | |
| <img class="project_images" src ="<?php echo get_sub_field('p_images'); ?>"title=""><?php | |
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
| /****Display Featured Image Caption****/ | |
| function carawebs_add_image_caption() { | |
| if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. | |
| ?><p class="wp-caption-text"><?php echo get_post(get_post_thumbnail_id())->post_excerpt;?></p> | |
| <?php | |
| } |
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
| /****IMAGE ATTRIBUTION****/ | |
| function add_image_attribution() { | |
| if (get_field('copyright_holder')!= "") { // only runs if the copyright holder field is populated | |
| ?><div class="attribution"> | |
| <?php if (get_field('image_source')!= "") { // next line runs if there is data in the image source field - giving a url to link to | |
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
| add_action( 'wp_enqueue_scripts', 'carawebs_load_javascript_files' ); | |
| function carawebs_load_javascript_files() { | |
| wp_register_script( 'mixitup_script', THESIS_USER_SKIN_URL . '/js/jquery.mixitup.min.js', array( 'jquery' ), null, true); | |
| wp_register_script( 'carawebs_scripts', THESIS_USER_SKIN_URL . '/js/dgym_scripts.js', array( 'jquery' ), null, true); | |
| wp_enqueue_script('mixitup_script'); | |
| wp_enqueue_script('carawebs_scripts'); | |