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
<!-- Misc Form --> | |
<div class="rtp-form-field"><label for="your-name">Your Name <span class="required">*</span></label>[text* your-name id:your-name]</div> | |
<div class="rtp-form-field"><label for="contact-email">Email <span class="required">*</span></label>[email* email id:contact-email]</div> | |
<div class="rtp-form-field"><label for="company-name">Company Name <span class="required">*</span></label>[text* company-name id:company-name]</div> | |
<div class="rtp-form-field"><label for="street-address">Street Address</label>[text street-address id:street-address]</div> | |
<div class="rtp-form-field"><label for="apartment-suite">Apartment/Suite</label>[text apartment-suite id:apartment-suite]</div> | |
<div class="rtp-form-field"><label for="city">City</label>[text city id:city]</div> | |
<div class="rtp-form-field"><label for="state">State</label>[text state id:state]</div> | |
<div class="rtp-form-field"><label for="zip">Zip <span class="required">*</span></label>[text* zip id:zip]</div> | |
<div class="rtp-form-field"><label for="pho |
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
img { | |
height: auto; | |
left: 0; | |
min-height: 100%; | |
position: fixed; | |
top: 0; | |
width: 100%; | |
} |
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 | |
/* Gallery Shortcode */ | |
function gallery_to_slideshow($atts) { | |
global $post; | |
$slider_html = ''; | |
$ids = NULL; | |
$image_size = NULL; | |
extract( shortcode_atts( array( 'ids' => '', 'image_size' => 'thumbnail' ), $atts) ); | |
$attachment_ids = explode(',', $ids); |
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 | |
/** | |
* Registers Taxonomies | |
* | |
* @since rtPanelChild 1.0 | |
*/ | |
function rtp_create_taxonomies() { | |
/* Post Custom Taxonomy */ |
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
/* Ajax Page Setup */ | |
$page = jQuery('.link a'); | |
$page.on('click', function (e) { | |
e.preventDefault(); | |
var pageID = jQuery(this).attr('data-id'); | |
var ajaxdata = { | |
action: 'load_pages', | |
page_id: pageID | |
}; |
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
/* Utility : Object.create dosen't work all browsers. */ | |
if ( typeof Object.create !== 'function' ) { | |
Object.create = function( obj ) { | |
function F() {}; | |
F.prototype = obj; | |
return new F(); | |
}; | |
} | |
(function( $, window, document, undefined ) { |
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
/* Utility : Object.create dosen't work all browsers. */ | |
if ( typeof Object.create !== 'function' ) { | |
Object.create = function( obj ) { | |
function F() {}; | |
F.prototype = obj; | |
return new F(); | |
}; | |
} | |
(function( $, window, document, undefined ) { |
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 | |
/* Get Children Images */ | |
function rtp_get_post_attachments( $parent_id ) { | |
$args = array( | |
'post_type' => 'attachment', | |
'numberposts' => 3, | |
'post_status' => null, | |
'post_parent' => $parent_id, | |
'exclude' => get_post_thumbnail_id($parent_id) |
OlderNewer