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
<li class="bbp-body"> | |
<?php while ( bbp_topics() ) : bbp_the_topic(); ?> | |
<?php bbp_get_template_part( 'loop', 'single-topic' ); ?> | |
<?php endwhile; ?> | |
</li> |
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 if( function_exists( 'bbpresslmt_loadmore_button' ) ): ?> | |
<?php bbpresslmt_loadmore_button(); ?> | |
<?php endif; ?> |
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
<li class="bbp-body"> | |
<?php while ( bbp_topics() ) : bbp_the_topic(); ?> | |
<?php bbp_get_template_part( 'loop', 'single-topic' ); ?> | |
<?php endwhile; ?> | |
<?php if( function_exists( 'bbpresslmt_loadmore_button' ) ): ?> | |
<?php bbpresslmt_loadmore_button(); ?> |
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
<script> | |
jQuery(document).ready(function($){ | |
$(".wpcf7").on( 'mailsent.wpcf7', function(){ | |
var redirect_to = $(this).find('#wdw_redirect_to_url').val(); | |
if( typeof(redirect_to)!=='undefined' && redirect_to!='' ){ | |
window.location.href= redirect_to; | |
} | |
}); | |
}); | |
</script> |
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
/** | |
* automatically load activities when user scrolls down - like facebook | |
* @author: @webdwall - http://webdeveloperswall.com/buddypress/load-more-activites-on-scroll | |
**/ | |
jQuery(window).load(function(){ | |
/* | |
* 1. bind event on page scroll | |
* 2. check if user has reched near to the bottom of activity stream( ScrollTop and pageheight etc..) | |
* 3. load the new content | |
* 4. update the pageheight etc.. |
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 | |
/** | |
* wdw_crop_img (http://webdeveloperswall.com/wordpress/crop-image-script) | |
* crops the image to given width and height | |
* Parameters :- | |
* $image_url : string : absolute url to the image | |
* $width: int : desired width after cropping | |
* $height : desired height after cropping | |
* $upload_directory : name of the target directory (directoty inside wp-content>uploads folder) | |
* Returns :- an array containing errors/success messages, new(cropped) file path and cropped file url |
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 | |
/** | |
* http://webdeveloperswall.com/php/generate-youtube-embed-code-from-url | |
**/ | |
function youtubeEmbedFromUrl($youtube_url, $width, $height){ | |
$vid_id = extractUTubeVidId($youtube_url); | |
return generateYoutubeEmbedCode($vid_id, $width, $height); | |
} | |
function extractUTubeVidId($url){ |
OlderNewer