View functions.php
function onepress_before_section( $section_id, $args = array() ){
if ( ! isset( $args['_bg_type'] ) ) {
$args['_bg_type'] = '';
}
if ( ! class_exists( 'OnePress_Plus' ) ) {
if ( $section_id == 'videolightbox' ) {
$image = onepress_get_video_lightbox_image();
if ( $image || onepress_is_selective_refresh() ) {
echo '<div class="section-parallax">';
View gist:eb9c6c5ab1dfe6808300f20540cce030
<div class="counter_item">
<div class="counter__number">
<span class="n counter">$1,498</span>
</div>
<div class="counter_title">Per Person, Twin Share</div>
</div>
View productlobby-style.css
@font-face {
font-family: 'helveticabold';
src: url('../fonts/helvetica_bold-webfont.eot');
src: url('../fonts/helvetica_bold-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/helvetica_bold-webfont.woff') format('woff'),
url('../fonts/helvetica_bold-webfont.ttf') format('truetype'),
url('../fonts/helvetica_bold-webfont.svg#helveticabold') format('svg');
font-weight: normal;
font-style: normal;
}
View gist:4a9c5d8fee25a48322f3877738abcb0f
<div class="contact-info-box">
<div class="contact-info-item">
<div class="contact-text"><i class="fa fa-map-marker"></i></div>
<div class="contact-value">1600 Amphitheatre Parkway<br>
Mountain View CA 94043
</div>
</div>
<div class="contact-info-item">
<div class="contact-text"><i class="fa fa-phone"></i></div>
<div class="contact-value">1.800.451.1288</div>
View gist:94532f43774a5270242aae018e975aa8
<div class=" site-info">
<div class="container">
<div class="site-copyright">
Your text on left
</div><!-- .site-copyright -->
<div class="theme-info">
Your text on right
</div>
</div>
</div><!-- .site-info -->
View template-tags.php
<?php
function screenr_is_video_file( $file ){
$ext = strtolower( end( explode( '', $file ) ) );
View coupon footer 1 widget
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' );