Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* @package Import demo
* @version 1.0 [<description>]
*
*/
/** Display verbose errors */
// define( 'IMPORT_DEBUG', false );
function noo_emigo_minicart_mobile()
{
if (!noo_emigo_get_option('noo_header_nav_icon_cart', true)) {
return '';
}
global $woocommerce;
$cart_output = "";
$cart_total = $woocommerce->cart->get_cart_total();
[block id="slider-homepage-slides-video"]
[block id="banner-row-3-column-zoom-effect"]
[title text="Sản phẩm nổi bật" style="center"]
[ux_featured_products products="12" columns="4" show="featured" type="normal"]
[title text="Danh mục sản phẩm" style="center"]
<?php
/*
Plugin Name: TopxTheme.Com Change Theme Path
Plugin URI: http://topxtheme.com/
Description: This Plugin help redirect the theme folder to another folder, making it's possible for a theme to work on sub site.
Author: TopxTheme.Com
Version: 1.0.0
Author URI: http://topxtheme.com
*/
<?php
if ( class_exists( 'woocommerce' ) ) {
// Remove each style one by one
add_filter( 'woocommerce_enqueue_styles', 'noo_organici_dequeue_styles' );
function noo_organici_dequeue_styles( $enqueue_styles ) {
unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation
return $enqueue_styles;
}
<?php
/**
* Mega Menu.
* This file create and manager addtional options for Menu items, option which enable mega menu function.
*
* @package NOO Framework
* @subpackage Mega Menu
* @version 1.0.0
* @author NooTheme Team
* @copyright Copyright (c) 2014, NooTheme
<?php
if(!function_exists('noo_shortcode_countdown')){
function noo_shortcode_countdown($attrs){
extract(shortcode_atts(array(
'date' => '',
'title' => '',
'description' => '',
'button_name' => '',
<?php
/**
* Utilities Functions for NOO Framework.
* This file contains various functions for getting and preparing data.
*
* @package NOO Framework
* @version 1.0.0
* @author Kan Nguyen <[email protected]>
* @copyright Copyright (c) 2014, NooTheme
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
@thinhbg59
thinhbg59 / first-title-letter-query.php
Created November 7, 2016 04:08 — forked from skydriver/first-title-letter-query.php
WordPress List Posts by First Title Letter
<?php
global $wpdb;
$first_char = esc_attr($_GET[$search_key]);
$postids = $wpdb->get_col($wpdb->prepare("
SELECT ID
FROM $wpdb->posts
WHERE SUBSTR($wpdb->posts.post_title,1,1) = %s
AND $wpdb->posts.post_type = 'product'
<?php
$search = noo_umbra_get_option('noo_header_nav_icon_search', true) ;
$wishlist = noo_umbra_get_option('noo_header_nav_icon_wishlist', true) ;
$cart = noo_umbra_get_option('noo_header_nav_icon_cart', true) ;
//---------------------------------------------------------------------
$topbar = noo_umbra_get_option('noo_header_topbar', true) ;
$mail = noo_umbra_get_option('noo_header_topbar_mail', '') ;
$phone = noo_umbra_get_option('noo_header_topbar_phone', '') ;
$top_wishlist = noo_umbra_get_option('noo_header_topbar_wishlist', true) ;