Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Template Name: Second Woocommerce
*/
get_header(); ?>
<?php
customify_wc_catalog_header();
?>
<div class="content-inner">
@congthien
congthien / extensions.json
Created November 16, 2018 03:13 — forked from shrimp2t/extensions.json
VSCode's Settings - Syncing
[
{
"id": "annsk.alignment",
"name": "alignment",
"publisher": "annsk",
"version": "0.3.0"
},
{
"id": "claudiosanches.wpcs-whitelist-flags",
"name": "wpcs-whitelist-flags",
add_filter('wp_nav_menu_items', 'add_custom_link', 10, 2);
function add_custom_link($items, $args) {
if ( $args->theme_location != 'primary' ) {
return $items;
}
$items .= '<li class="menu-item"><a target="_blank" href="https://na.myconnectwise.net/v2018_6/services/system_io/customerportal/portal.html?company=mspitp&amp;locale=en#LoginPagePlace:LOGOUT">SUPPORT</a></li>';
return $items;
}
function onepress_child_customize_remove( $wp_customize ) {
$wp_customize->remove_section( 'onepress_global_settings' );
}
add_action( 'customize_register', 'onepress_child_customize_remove', 180 );
<?php
/**
* Template Name: Full Width
* @package Passionate
*/
get_header(); ?>
<div class="container">
<div class="dt-main-cont">
<?php
class Customify_Builder_Item_Contact {
public $id;
public $label;
public $prefix;
public $selector;
public $section;
public $panel = 'header_settings';
/**
* Optional construct
<?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 Together
*/
<?php
$id = get_theme_mod( 'onepress_features_id', esc_html__('features', 'onepress') );
$disable = get_theme_mod( 'onepress_features_disable' ) == 1 ? true : false;
$title = get_theme_mod( 'onepress_features_title', esc_html__('Features', 'onepress' ));
$subtitle = get_theme_mod( 'onepress_features_subtitle', esc_html__('Why choose Us', 'onepress' ));
if ( onepress_is_selective_refresh() ) {
$disable = false;
}
$data = onepress_get_features_data();
if ( !$disable && !empty( $data ) ) {
<?php
/**
*Template Name: Full Width - Contained Content
*
*/
get_header();
/**
* Hooks wpcoupon_after_header
<?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 } ?>