View instagram
function screenr_plus_scrap_instagram_images( $username, $limit = 100 ){
$username = strtolower($username);
$username = str_replace('@', '', $username);
$remote = wp_remote_get('https://instagram.com/' . trim($username));
if ( is_wp_error( $remote ) ) {
return false;
}
if ( 200 != wp_remote_retrieve_response_code($remote) ) {
return false;
}
View Screenr contact form
<div class="row">
<div class="col-md-6">
<p><span class="large-label">Your Name (*)</span><br />
[text* your-name] </p>
</div>
<div class="col-md-6">
<p><span class="large-label">Your Email (*)</span><br />
[email* your-email] </p>
</div>
</div>
View gist:ce116bf5217bfcf3d327693a4c32ae99
function onepress_change_portfolio_callback( $example ) {
return 30;
}
add_filter( 'onepress_plus_projects_number', 'onepress_change_portfolio_callback' );
View client table
<table class="client-table">
<tbody>
<tr>
<td><a href="#"><img src="http://localhost/wpcharming/construction/wp-content/uploads/2015/02/logo1-2.png" alt="" /></a></td>
<td><a href="#"><img src="http://localhost/wpcharming/construction/wp-content/uploads/2015/02/logo2-2.png" alt="" /></a></td>
<td><a href="#"><img src="http://localhost/wpcharming/construction/wp-content/uploads/2015/02/logo3-2.png" alt="" /></a></td>
</tr>
<tr>
<td><a href="#"><img src="http://localhost/wpcharming/construction/wp-content/uploads/2015/02/logo4-2.png" alt="" /></a></td>
<td><a href="#"><img src="http://localhost/wpcharming/construction/wp-content/uploads/2015/02/logo5-2.png" alt="" /></a></td>
View instagram.php
<?php
function boston_pro_insgaram_widget() {
register_widget( 'Boston_Pro_Instagram_Widget' );
}
add_action( 'widgets_init', 'boston_pro_insgaram_widget' );
class Boston_Pro_Instagram_Widget extends WP_Widget {
function __construct() {
parent::__construct(
'instagram-feed',
esc_html__( 'Instagram', 'boston-pro' ),
View template-tags.php
if ( ! function_exists( 'onepress_scrape_instagram' ) ) {
function onepress_scrape_instagram( $username )
{
$username = strtolower($username);
$username = str_replace('@', '', $username);
$remote = wp_remote_get('https://instagram.com/' . trim($username));
if ( is_wp_error( $remote ) ) {
return false;
}
if ( 200 != wp_remote_retrieve_response_code($remote) ) {
View functions.php
function wpcoupon_child_change_printtext(){
$types[ 'print' ] = esc_html__( 'Release', 'wp-coupon' );
return $types;
}
add_filter( 'wpcoupon_get_coupon_types', 'wpcoupon_child_change_printtext', $plural = false );
View gist:5cf917dd7cff93103f3037dabe0e6741
<a href="https://vimeo.com/256562333" data-scr="https://vimeo.com/256562333" class="popup-video">
<span class="video_icon"><i class="fa fa-play"></i></span>
</a>
View gist:154e34fb292558f0dc29d5d4943633d2
function onepress_custom_date_function() {
echo '<script type="text/javascript">
jQuery(document).ready(function( $ ){
copyright = new Date();
$("#theYear").html( copyright.getFullYear() );
});
</script>';
}
View business hours
<div class="contact-info-box">
<p>Our support available to help you 24 hours a day, seven days a week.</p>
<ul class="hours">
<li>Monday-Friday: <span>9am to 5pm</span></li>
<li>Saturday: <span>10am to 2pm</span></li>
<li>Sunday: <span>Closed</span></li>
</ul>
</div>