View loop-coupon-cat.php
<?php
$has_thumb = wpcoupon_maybe_show_coupon_thumb();
$has_expired = wpcoupon_coupon()->has_expired();
?>
<div data-id="<?php echo wpcoupon_coupon()->ID; ?>"
class="coupon-item store-listing-item <?php echo $has_thumb ? 'has-thumb' : 'no-thumb'; ?> c-cat c-type-<?php echo esc_attr( wpcoupon_coupon()->get_type() ); ?> shadow-box <?php echo ( $has_expired ) ? 'coupon-expired' : 'coupon-live'; ?>">
<?php if ( $has_thumb ) { ?>
<div class="store-thumb-link">
<?php wpcoupon_thumb( $has_thumb === 'save_value' ? true : false ); ?>
<div class="store-name"><a href="<?php echo wpcoupon_coupon()->get_store_url(); ?>"><?php printf( esc_html__( '%s Coupons', 'wp-coupon' ), wpcoupon_coupon()->store->name ); ?><i class="angle right icon"></i></a></div>
View phpstorm scss
--no-cache
--update
--sourcemap=none
--style=expanded
$FileName$:../../$FileNameWithoutExtension$.css
../../$FileNameWithoutExtension$.css
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;
}
// Setup options
View .htaccess
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
View section-clients.php
<?php
$id = get_theme_mod( 'onepress_clients_id', 'clients' );
$title = get_theme_mod( 'onepress_clients_title');
$subtitle = get_theme_mod( 'onepress_clients_subtitle', __('Have been featured on', 'onepress-plus' ));
$desc = get_theme_mod( 'onepress_clients_desc' );
?>
<?php if ( ! onepress_is_selective_refresh() ){ ?>
<section <?php if ( $id ) { ?>id="<?php echo esc_attr( $id ); ?>" <?php } ?> class="<?php echo esc_attr( apply_filters( 'onepress_section_class', 'section-padding section-clients onepage-section', 'clients' ) ); ?>">
<?php } ?>
View section-projects.php
<?php
$onepress_projects_id = get_theme_mod( 'onepress_projects_id', 'projects' );
$onepress_projects_title = get_theme_mod( 'onepress_projects_title', __('Highlight Projects', 'onepress-plus' ));
$onepress_projects_subtitle = get_theme_mod( 'onepress_projects_subtitle', __('Some of our works', 'onepress-plus' ));
$is_ajax = get_theme_mod( 'onepress_project_ajax', 1 );
$desc = get_theme_mod( 'onepress_projects_desc' );
?>
<?php if ( ! onepress_is_selective_refresh() ){ ?>
<section <?php if ( $onepress_projects_id ) { ?>id="<?php echo esc_attr( $onepress_projects_id ); ?>" <?php } ?> class="<?php echo esc_attr( apply_filters( 'onepress_section_class', 'section-padding section-projects onepage-section', 'projects' ) ); ?>">
View footer.php
View functions.php
function onepress_site_logo(){
$classes = array();
$html = '' ;
$classes['logo'] = 'no-logo-img';
if ( function_exists( 'has_custom_logo' ) ) {
if ( has_custom_logo()) {
$classes['logo'] = 'has-logo-img';
$html .= '<div class="site-logo-div">';
$html .= get_custom_logo();
$html .= '</div>';
View woocommerce.php
<?php
/**
* Custom Woocommerce shop page.
*
* @package WPCharming
*/
global $woocommerce;
$page_layout = get_post_meta( woocommerce_get_page_id('shop'), '_wpc_page_layout', true );
$hide_page_title = get_post_meta( woocommerce_get_page_id('shop'), '_wpc_hide_page_title', true );
View woocommerce.php
<?php
/**
* The template for displaying all pages WooCommerce page.
*
* @package Screenr
*/
get_header();
?>