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
<enable | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/checkbox" | |
text="Enable" | |
id="enable" | |
value="true" | |
name="./enable" | |
class="cq-dialog-checkbox-showhide" | |
cq-dialog-checkbox-showhide-target=".button-option-enable-showhide-target"/> | |
<deleteEnable |
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 | |
// get post ID | |
$pid = get_the_ID(); | |
// get our repeater | |
$repeater = get_post_meta( $pid, 'acf_repeater_slug', true ); | |
if ( !empty($repeater) ) { | |
for( $i = 0; $i < $repeater; $i++ ) { |
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 | |
// get post ID | |
$pid = get_the_ID(); | |
// acf field | |
$acf_field = get_post_meta( $pid, 'acf_field_slug', true ); |
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 | |
// get post ID | |
$pid = get_the_ID(); | |
// get our repeater | |
$repeater = get_post_meta( $pid, 'acf_repeater_slug', true ); | |
if( !empty($repeater) ) { | |
for( $i = 0; $i < $repeater; $i++ ) { |
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 | |
$acf_field_one = get_option( 'options_acf_field_one' ); | |
$acf_field_two = get_option( 'options_acf_field_two' ); |
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
<body> | |
<header class="global-header"> | |
<nav> | |
<ul> | |
<li><a href="#" title="">Nav Item</a></li> | |
<li><a href="#" title="">Nav Item</a></li> | |
<li><a href="#" title="">Nav Item</a></li> | |
</ul> | |
</nav> | |
</header> |
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 | |
function delete_its_transients() { | |
global $post; | |
if( $post->post_type == 'cpt' ) { | |
delete_transient( 'transient_name' ); | |
} | |
} | |
add_action( 'save_post', 'delete_its_transients' ); |
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
[video src="http://www.video-url.com"][/video] |