Skip to content

Instantly share code, notes, and snippets.

/*!
Theme Name: Customify
Theme URI: https://pressmaximum.com/customify
Author: WPCustomify
Author URI: https://pressmaximum.com
Description: Customify is fast, lightweight, responsive and super flexible multipurpose theme built with SEO, speed, and usability in mind. Unleash the power of your imagination with a true WYSIWYG Header & Footer builder (inside the WordPress Customizer) built exclusively for this theme. The theme works great with any of your favorite page builder likes Elementor, Beaver Builder, SiteOrigin, Thrive Architect, Divi, Visual Composer, etc. Combined with the Header & Footer builder, you can build any type of websites like shop, business agencies, corporate, portfolio, education, university portal, consulting, church, restaurant, medical and so on. Customify is compatible with all well-coded plugins, including major ones like WooCommerce, OrbitFox, Yoast, BuddyPress, bbPress, etc. Learn more about the theme and ready to import demo sites at https://pressmaximum.com/customify
Versi
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Cassions
*/
function custom_onepress_display_page_title() {
if ( get_theme_mod( 'onepress_page_title_bar_disable' ) == 1 ) {
return;
}
$return = false;
if ( is_home() ) {
//$page_id = get_option( 'page_for_posts' );
$args = array(
jQuery(document).ready(function(t){function e(){t(document.body).trigger("wc_toggle_done")}t.blockUI&&(t.blockUI.defaults.overlayCSS.backgroundColor="#FFF",t.blockUI.defaults.overlayCSS.opacity=.7),jQuery(document).on("selective-refresh-content-rendered",function(e,a){"Customify_Builder_Item_WC_Cart__render"!==a&&"customify_customize_render_header"!==a||t(document.body).trigger("wc_fragment_refresh")}),t(document.body).on("added_to_cart",function(e,a,c){t(".item--wc_cart").addClass("cart-active")}),Customify_JS.wc_open_cart&&t(document.body).trigger("added_to_cart"),t(document.body).on("wc_cart_button_updated",function(e,a){var c=a.parent();a.hasClass("single_add_to_cart_button")||t(".added_to_cart",c).addClass("button");var n=t(".add_to_cart_button",c).data("icon-pos")||"before",o=t(".add_to_cart_button",c).data("cart-icon")||"",i="",r="";o&&(r='<i class="'+o+'"></i>'),i="after"===n?r?wc_add_to_cart_params.i18n_view_cart+" "+r:wc_add_to_cart_params.i18n_view_cart:r?r+" "+wc_add_to_cart_params.i18n_view_cart:
function custom_onepress_display_page_title() {
if ( get_theme_mod( 'onepress_page_title_bar_disable' ) == 1 ) {
return;
}
$return = false;
if ( is_home() ) {
$page_id = get_option( 'page_for_posts' );
} else {
function custom_screenr_page_header_cover() {
if ( is_page_template( 'template-frontpage.php' ) ) {
return false;
}
$image = $title = $desc = '';
if ( is_singular() && ! is_attachment() ) {
if ( is_single() ) {
$title = esc_html( get_theme_mod( 'page_blog_title', esc_html__( 'The Blog', 'screenr' ) ) );
@Longkt
Longkt / WP Coupon - export
Last active November 29, 2019 13:05
Fix the expired date and filter coupon store
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
require WP_COUPON_IE_PATH.'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Helper\Sample;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
// Sort by Popularity default in Category coupon page
add_action( 'init', function() {
remove_action( 'wpcoupon_coupon_category_before_sidebar', 'wpcoupon_coupon_cat_filter_box', 10 );
remove_filter( 'pre_get_posts', 'wpcoupon_coupon_cat_query' );
add_action( 'wpcoupon_coupon_category_before_sidebar', 'custom_wpcoupon_coupon_cat_filter_box', 10 );
add_filter( 'pre_get_posts', 'custom_wpcoupon_coupon_cat_query' );
} );
=== Plugin Name ===
Contributors: famethemes
Tags: onepage
Requires at least: 4.4.2
Tested up to: 5.8.1
Stable tag: 2.2.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
The OnePress Plus plugin adds powerful premium features to OnePress