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
/*awesome tip from http://www.paulund.co.uk/display-post-meta-box-specific-page-templates*/ | |
add_action('add_meta_boxes', 'add_product_meta'); | |
function add_product_meta() | |
{ | |
global $post; | |
if(!empty($post)) | |
{ | |
$pageTemplate = get_post_meta($post->ID, '_wp_page_template', true); |
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
/** | |
* Outputs the Google Maps iframe. | |
*/ | |
gmapiframe = function() { | |
var iframe = document.createElement('iframe'); | |
iframe.frameBorder=0; | |
iframe.border=0; | |
iframe.width="600px"; //set width | |
iframe.height="450px"; //set height | |
iframe.id="gmap-iframe"; |
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
WebFontConfig = { | |
google: { families: [ \'Ek+Mukta:200,800:latin\' ] } | |
}; | |
var cb = function() { | |
var wf = document.createElement(\'script\'); | |
wf.src = \'//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js\'; | |
wf.type = \'text/javascript\'; | |
wf.async = \'true\'; | |
var s = document.getElementsByTagName(\'script\')[0]; | |
s.parentNode.insertBefore(wf, s); |
NewerOlder