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 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?> | |
| <li style="background-image:url(<?php echo $image[0]; ?>)"> |
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
| $('.hp_videos .modal').on('hidden.bs.modal', function (e) { | |
| var url = $(this).find('iframe').attr('src'); | |
| $(this).find('iframe').attr('src',url); | |
| console.log('close'); | |
| }); | |
| $('.hp_videos .modal').on('shown.bs.modal', function (e) { | |
| var url = $(this).find('iframe').attr('src'); | |
| $(this).find('iframe').attr('src',url); | |
| console.log('open'); | |
| }); |
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
| // create marker | |
| var templateDir = "<?php bloginfo('stylesheet_directory') ?>"; | |
| var iconBase = templateDir + '/images/map_icon.svg'; | |
| var marker = new google.maps.Marker({ | |
| position : latlng, | |
| map : map, | |
| icon: iconBase | |
| }); |
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
| function my_custom_switcher( $items, $args ){ | |
| if( $args->theme_location == 'primary' ) { | |
| $languages = icl_get_languages('skip_missing=0&orderby=code'); | |
| if(!empty($languages)){ | |
| ob_start(); ?> | |
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
| http://www.duepi.biz/blog/2014/09/acf-options-page-with-wpml-support/ |
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
| http://www.minimit.com/articles/solutions-tutorials/bootstrap-3-responsive-columns-of-same-height | |
| <?php | |
| $counter == 0; | |
| // check if the repeater field has rows of data | |
| if( have_rows('logos') ): ?> | |
| <?php | |
| // loop through the rows of data |
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
| <a class="share_twitter" href="https://twitter.com/home?status=<?php the_title();echo " - ". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?> " target="_blank"> | |
| </a> | |
| <a class="share_twitter" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>&t=<?php the_title(); ?>" target="_blank"> | |
| </a> |
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
| <div class="icon" style="background-image:url(<?php the_sub_field('icon'); ?>)" onMouseOver="this.style.backgroundImage='url(<?php the_sub_field('hover_icon'); ?>)'" onMouseOut="this.style.backgroundImage='url(<?php the_sub_field('icon'); ?>)'"></div> |
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
| $( document ).ajaxComplete(function( event,request, settings ) { | |
| if($('.sent').length > 0){ | |
| console.log('good'); | |
| }else{ | |
| console.log('bad'); | |
| } | |
| }); |