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
<select id="selectbox1"> | |
<option value="">Select an option…</option> | |
<option value="aye">Aye</option> | |
<option value="eh">Eh</option> | |
<option value="ooh">Ooh</option> | |
<option value="whoop">Whoop</option> | |
</select> | |
<select id="selectbox2"> | |
<option value="">Month…</option> | |
<option value="january">January</option> |
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
// Add code in your theme's js file. | |
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) { | |
try { | |
if ( originalOptions.data == null || typeof ( originalOptions.data ) == 'undefined' || typeof ( originalOptions.data.action ) == 'undefined' ) { | |
return true; | |
} | |
} catch ( e ) { | |
return true; | |
} | |
if ( 'post_update' == originalOptions.data.action ) { |
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
@media ( max-width: 500px ) { | |
#buddypress .activity-list li .activity-content { | |
margin-left: 0 !important; | |
} | |
#buddypress .activity-list li .activity-content .activity-header { | |
min-height: 50px; | |
} | |
li.rtmedia-list-item.media-type-photo { | |
margin-left: 0 !important; |
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
/* gallery_shortcode_helper Shortcode */ | |
function rtp_gallery_shortcode_helper_callback() { | |
ob_start(); ?> | |
<style> | |
.rtm_gallery_shortcode { | |
clear: both; | |
overflow: hidden; | |
} | |
.rtm_gallery_shortcode > div > * { | |
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
function rtmedia_media_uploader_attributes_shortcode( $attr ) { | |
global $rtmedia; | |
$allowed_media_type = $rtmedia->allowed_types; | |
/* page id */ | |
$page_id = '95'; | |
/* File extension */ | |
$extn = 'doc'; | |
if ( get_the_ID() == $page_id ) { | |
$extn = explode( ',', $extn ); |