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 wp_is_rtl( $locale = '' ) { | |
| static $rtl_locales = array( | |
| 'ar' => 'Arabic', | |
| 'ary' => 'Moroccan Arabic', | |
| 'azb' => 'South Azerbaijani', | |
| 'fa_IR' => 'Persian', | |
| 'haz' => 'Hazaragi', | |
| 'he_IL' => 'Hebrew', | |
| 'ps' => 'Pashto', | |
| 'ug_CN' => 'Uighur', |
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 | |
| if( have_rows('repeater_field') ): | |
| $postCount = 1; | |
| while( have_rows('repeater_field') ) : the_row(); ?> | |
| <?php | |
| $repeater_sub_field_1 = get_sub_field('repeater_sub_field_1'); | |
| $repeater_sub_field_2 = get_sub_field('repeater_sub_field_2'); | |
| $repeater_sub_field_3 = get_sub_field('repeater_sub_field_3'); |
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
| <ul class="sidebar-menu"> | |
| <?php | |
| $parent_terms = get_terms( 'product_cat', array( 'hide_empty' => false, 'parent' => 0 ) ); | |
| foreach( $parent_terms as $parent_term ) { | |
| // display top level term name | |
| $child_terms = get_terms( 'product_cat', array( 'hide_empty' => false, 'parent' => $parent_term->term_id ) ); | |
| ?> | |
| <li class="cat-item <?php if ($child_terms) { echo "have-children"; } ?>"><a href="<?php echo get_term_link($parent_term); ?>"><?php echo $parent_term->name; ?></a> | |
| <?php if ($child_terms) : ?> | |
| <ul class="children"> |
NewerOlder