Example #1
0
?>
            <div class="animation-wrapper col-md-12">
                <div class="heading-title-wrapper blog-page" style="color">
                    <h2 class="title" <?php 
echo $css_title_color;
?>
><?php 
echo oneengine_option('header_blog_title');
?>
</h2>
                    <span class="line-title" style="background-color:#cc467c"></span>
                    <span class="sub-title" <?php 
echo $css_sub_title_color;
?>
><?php 
echo oneengine_option('header_blog_subtitle');
?>
</span>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- End Blog Header -->
<div class="clearfix"></div>
<!-- Container
======================================================================== -->
<div class="blog-filter-container">
	<div class="row">
		<div class="col-md-12 blog-filer">
			<ul>
Example #2
0
    public function et_load_portfolio()
    {
        $data = $_REQUEST['content'];
        $portfolio = get_post($data['id']);
        $cats = '';
        $terms = get_the_terms($portfolio->ID, 'portfolio_cat');
        foreach ($terms as $term) {
            $cats .= ' ' . $term->name;
        }
        // Get sharing options & button get in touch
        $sharing_sites = oneengine_option('social_share_port');
        $get_in_touch = oneengine_option('btn_port_getintouch');
        $get_in_touch_link = oneengine_option('btn_port_getintouch_link');
        $twitter_share = '';
        $fb_share = '';
        $google_share = '';
        $btn_get = '';
        if ($get_in_touch == 1 || $get_in_touch == true) {
            $btn_get = '<a href="' . $get_in_touch_link . '" class="btn get-in-touch">' . __('Get In Touch') . '</a>';
        }
        foreach ($sharing_sites as $key => $value) {
            // Twitter
            if ($key == 'twitter' && $value) {
                $twitter_share = '<li><a class="sb-twitter" href="http://twitter.com/share?url=' . home_url() . '/#portfolio-page&amp;lang=en&amp;text=Check%20out%20this%20awesome%20project:&amp;" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=620\');return false;" data-count="none" data-via=" "><i class="fa fa-twitter"></i></a></li>';
            }
            // Facebook
            if ($key == 'facebook' && $value) {
                $fb_share = '<li><a class="sb-facebook" href="http://www.facebook.com/sharer/sharer.php?u=' . home_url() . '/#portfolio-page" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=660\');return false;" target="_blank"><i class="fa fa-facebook"></i></a></li>';
            }
            // Google+
            if ($key == 'google_plus' && $value) {
                $google_share = '<li><a class="sb-google" href="https://plus.google.com/share?url=' . home_url() . '" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=500\');return false;"><i class="fa fa-google-plus"></i></a></li>';
            }
        }
        $html = '<div class="mask-color-port">
					<div id="preview-area">
						<div class="spinner">
						  <div class="dot1"></div>
						  <div class="dot2"></div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="title-port-wrapper col-md-12">
						<h1 class="title-port">' . $portfolio->post_title . '</h1>
						<span class="category">' . $cats . '</span>
					</div>
				</div>
				<div class="port-data">
					<div class="row">
						<div class="col-md-8 port-thumb">
							<div class="thumbnail-img">
								' . get_the_post_thumbnail($portfolio->ID, 'portfolio-large') . '
							</div>
						</div>
						<div class="col-md-4 port-excerpt">
							' . apply_filters('the_content', $portfolio->post_content) . '
							<div class="clearfix"></div>
							<div class="social-share">
								' . $btn_get . '
								<ul class="social">
									' . $fb_share . '
									' . $twitter_share . '
									' . $google_share . '
								</ul>
							</div>
						</div>
					</div>
				</div>';
        $response = array('success' => true, 'html' => $html, 'prev_post' => get_next_previous_port_id($portfolio->ID, 'next'), 'next_post' => get_next_previous_port_id($portfolio->ID, 'prev'));
        wp_send_json($response);
    }
Example #3
0
">
                                <?php 
    $top = '';
    $left = '';
    $width = '';
    if (oneengine_option('logo_top') != '') {
        $top = 'top:' . oneengine_option('logo_top') . 'px;';
    }
    if (oneengine_option('logo_left') != '') {
        $left = 'left:' . oneengine_option('logo_left') . 'px;';
    }
    if (oneengine_option('logo_width') != '') {
        $width = 'width:' . oneengine_option('logo_width') . 'px;';
    }
    if (oneengine_option('custom_logo', false, 'url') !== '') {
        echo '<div class="logo-wrapper" style="' . $width . $left . $top . '"><img src="' . oneengine_option('custom_logo', false, 'url') . '" alt="' . get_bloginfo('name') . '" /></div>';
    } else {
        ?>
                                    <div class="logo-img"><span>E</span></div>
                                <?php 
    }
    ?>
                             </a>
                        </div>  
                    </div>
                    <!-- Logo / End -->
                </div>
                
            	<div class="col-md-9 col-xs-9">
                    <!-- Menu
                    ======================================================================== --> 
Example #4
0
    opacity:  1;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color:    #999;
}
/**** PRELOADING ****/
.mask-color, .social-share ul.social li:hover a, #showRightPush:hover, .slicknav_btn:hover, .slicknav_nav a:hover, .slicknav_nav .slicknav_item:hover {
	background-color:' . $main_color . ';
}

.prev:hover, .next:hover, .close-port:hover i, .read-more:hover, .read-more i, .view-all-blog:hover, .view-all-blog:hover span i, a.et-like-post.active span i, .btn.get-in-touch:hover, .et-post-data-left.single-blog a.home-icon:hover i, .form-submit input[type="submit"]:hover, .social-footer li a:hover i, .contact-form-wrapper input[type="submit"]:hover, #test_content .item .name-client, h1.title-blog a:hover, .btn.btn-oe:hover{
	color:' . $main_color . ';
}
.close-port:hover, .view-all-blog:hover span, .btn.get-in-touch:hover, .image-blog-wrapper, .et-post-data-left.single-blog a.home-icon:hover, .form-submit input[type="submit"]:hover, .contact-form-wrapper input[type="submit"]:hover, .btn.btn-oe:hover, .popup-video:hover .icon-play-video{
	border-color:' . $main_color . ';
}
.line-wrapper .line-circle, .pie-content h2, .percent-chart, .et-post-month, .et-post-date, .title-blog, .counter .timer, .btn.get-in-touch, .title-single, .post-tags a, .oe-comments-title, .copyright, .contact-form-wrapper input[type="submit"], .text-slider, a#scroll_to, .quote-charater, #test_content .item .name-client, .slicknav_menu  .slicknav_menutxt, .slicknav_nav a, .form-submit input[type="submit"], .btn.btn-oe, .blog-filer ul li a{
	font-weight:' . $font_bold . ';
}
.color-white *{
	color:#ffffff !important;
}
.color-white .popup-video:hover, .color-white .popup-video:hover .icon-play-video i{
	color:' . $main_color . ' !important;
}
';
?>

<?php 
echo oneengine_option('custom_css');
Example #5
0
				<?php 
    }
    ?>
                <?php 
    if (oneengine_option('linkedin') != '') {
        ?>
				<li><a href="<?php 
        echo oneengine_option('linkedin');
        ?>
"><i class="fa fa-linkedin"></i></a></li>
				<?php 
    }
    ?>
			</ul>
			<div class="copyright">
				<?php 
    echo nl2br(oneengine_option('copyright'));
    ?>
			</div>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
	<?php 
}
?>
</div><!-- #page -->
<?php 
wp_footer();
?>
</body>
</html>
Example #6
0
$css_title_color = '';
if (!empty($title_color)) {
    $css_title_color = 'style="' . $title_color . '" ';
}
$sub_title_color = !empty($color_sub_title) ? sprintf('%s', $color_sub_title) : '';
$css_sub_title_color = '';
if (!empty($sub_title_color)) {
    $css_sub_title_color = 'style="' . $sub_title_color . '" ';
}
?>
<a href="<?php 
echo get_permalink($next_post->ID);
?>
">
<div class="next-post-container" style="background-image:url(<?php 
echo has_post_thumbnail($next_post->ID) ? wp_get_attachment_url(get_post_thumbnail_id($next_post->ID)) : oneengine_option('header_blog_img', false, 'url');
?>
)">    
    <div class="animation-wrapper col-md-12">
        <div class="heading-title-wrapper blog-page" style="color">           
            <h2 class="title" <?php 
echo $css_title_color;
?>
><?php 
echo $next_post->post_title;
?>
</h2>
            <span class="line-title" style="background-color:#cc467c"></span>
            <span class="sub-title" <?php 
echo $css_sub_title_color;
?>
Example #7
0
                            <span class="icon"><i class="fa fa-map-marker"></i></span>
                            <p><a target="_blank" style="color:#fff;" href="#">Cambridge <br/>United Kingdom</a></p>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
                <?php 
    if (oneengine_option('contact_form') != '') {
        ?>
                <div class="contact-form-wrapper">
                	<h2 class="contact-title"><?php 
        echo __('Get In Touch', 'oneengine');
        ?>
</h2>
                	<?php 
        echo do_shortcode(oneengine_option('contact_form'));
        ?>
                </div>
                <?php 
    }
    ?>
            </div>
        </div>
		<div class="site-info">
			<div class="copyright">
				&copy; Cambridge University Polish Society, 2015. Photo credits: Andrzej Kaczorowski
				<br>
			</div>			
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
	<?php