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
function get_file_ext( $filename ) | |
{ | |
return end( explode( ".", $filename ) ); | |
} |
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 | |
/** | |
* Load the template data from a file (file must be .html or .htm ) | |
*/ | |
//load from child theme or parent theme | |
$file = 'template.html'; | |
echo caldera_metaplate_from_file( $file, $post_id ); | |
//or use absolute patth | |
//$file = __FILE__ . '/template.html'; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder