View elementor.php
<?php
namespace Elementor;
function onepress_plus_insert_elementor($atts)
{
if (!class_exists('Elementor\Plugin')) {
return '';
}
$atts = wp_parse_args( $atts, array(
'id' => '',
'slug' => ''
View functions.php
function onepress_ga_tag(){
?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-93671552-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
View hotel-gallery.php
View coupon-meta.php
<?php
if ( wpcoupon_coupon()->is_exclusive() ) {
if ( wpcoupon_get_option('coupon_item_exclusive') != '' ) {
echo '<div class="coupon-exclusive">'. wpcoupon_get_option('coupon_item_exclusive') .'</div>';
}
}
$total_comments = get_comments_number( wpcoupon_coupon()->ID );
?>
<div class="coupon-footer coupon-listing-footer">
View custom CTA
<div class="row">
<div class="col-md-12 col-lg-9 cta-heading">
<h2>Use these ribbons to display calls to action mid-page.</h2>
</div>
<div class="col-md-12 col-lg-3 cta-button-area">
<a href="#" class="btn btn-lg btn-theme-primary-outline">Button text</a>
</div>
</div>
View onepress-plus.js
(function($, window, undefined) {
$.fn.objectFitPolyfill = function(options) {
// If the browser does support object-fit, we don't need to continue
if ('objectFit' in document.documentElement.style !== false) {
return;
}
View page-home.php
<?php
/**
* Template name: Home Page
*
* This is the Home Page template.
*/
get_header();
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
?>
View gist:09674ad0afc0639199d7edadb690e52a
add_filter( 'get_custom_logo', 'onepress_child_custom_logo' );
function onepress_child_custom_logo() {
$custom_logo_id = get_theme_mod( 'custom_logo' );
$html = sprintf( '<a target="_blank" href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>',
esc_url( home_url( '/' ) ),
wp_get_attachment_image( $custom_logo_id, 'full', false, array(
'class' => 'custom-logo',
) )
);
View feature-item.html
<div class="feature-item col-lg-3 col-sm-6 wow slideInUp" style="visibility: visible; animation-name: slideInUp;">
<div class="feature-media">
<span class="icon-image"><img src="http://efunstore.zenzoneguide.com/wp-content/uploads/2017/10/AB001A001.png" alt=""></span>
</div>
<h4>公館農會─紅棗乾</h4>
<div class="feature-item-content"></div>
</div>
View section-videolightbox.php
<?php
$lang = qtranxf_getLanguage();
if ( $lang == 'en' ) {
$video = 'your video link in English';
} else if( $lang == 'ru' ) {
$video = 'your video link in Ru';
} else {
$video = get_theme_mod( 'onepress_videolightbox_url' );
}