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 | |
$parentPage = $post->post_parent; | |
$parentPageTitleId = get_post($parentPage); | |
$parentPageTitle = $parentPageTitleId->post_title; | |
$args = array( | |
'child_of' => $parentPage, | |
'title_li' => $parentPageTitle | |
); |
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
<div class="panel-group" id="accordion"> | |
<?php | |
$counter = 1; | |
// check if the repeater field has rows of data | |
if( have_rows('faqs') ): | |
// loop through the rows of data | |
while ( have_rows('faqs') ) : the_row(); ?> | |
<div class="panel panel-default"> |
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
//Bootstrap 3 accordion styling on open/closed | |
$('.panel').on('show.bs.collapse', function () { | |
$(this).addClass('active'); | |
}); | |
$('.panel').on('hide.bs.collapse', function () { | |
$(this).removeClass('active'); | |
}); |
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 | |
$image = get_sub_field('clientLogoImage'); | |
if( !empty($image) ): | |
// vars | |
$url = $image['url']; | |
$title = $image['title']; | |
$alt = $image['alt']; |
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
$( window ).load( function(){ | |
//remove the dot if there is just one image from royal slider | |
var n = $( ".rsBullet" ).length; | |
if(n < 2){ | |
$( ".rsBullets" ).remove(); | |
} | |
//end of window.load function |
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
.rtl{ | |
#menufication-outer-wrap.light #menufication-top, #menufication-outer-wrap.light #menufication-non-css3-top, #menufication-non-css3-outer-wrap.light #menufication-top, #menufication-non-css3-outer-wrap.light #menufication-non-css3-top{ | |
background-color: #f2efef !important; | |
background-image: none !important; | |
} | |
#menufication-nav li.menufication-active-class>a, #menufication-non-css3-nav li.menufication-active-class>a { | |
color: #81b735!important; | |
} | |
ul.menufication-menu-level-0{ |
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
//remove the admin_bar | |
add_filter ('show_admin_bar','__return_false'); |
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
$( window ).resize(function() { | |
//some code - function(); | |
}); |
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 if ( have_posts()) : while (have_posts()) : the_post(); ?> | |
<!-- loop code here --> | |
<?php endwhile; else: ?> | |
<!-- code if there isn't content here --> | |
<?php endif; ?> |
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 | |
//include js to theme | |
function theme_js(){ | |
global $wp_scripts; | |
wp_enqueue_script( 'script_js' , get_stylesheet_directory_uri().'/js/script.js', array('jquery') ,'' , true ); | |
} | |