Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
$comment_title = esc_html__( 'Comments', 'noo-umbra' );
@thinhbg59
thinhbg59 / index.php
Created November 10, 2016 02:09
tets
<?php
// Silence is golden.
@thinhbg59
thinhbg59 / style2.php
Created November 10, 2016 02:26
ưet
<div class="navbar-wrapper">
<div class="navbar navbar-default" role="navigation">
<div class="noo-container">
<div class="noo-navbar-header">
<?php if( isset($search) && $search == true ): ?>
<a class="noo-search" href="#">
<i class="icon_search"></i>
<?php echo esc_html__('Search','noo-umbra'); ?>
</a>
<?php
/**
* The Template for displaying product archives, including the main shop page which is a post type archive.
*
* Override this template by copying it to yourtheme/woocommerce/archive-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.0.0
*/
<?php
/*
Template Name: Lookbook
*/
?>
<?php
global $woocommerce;
$no_padding = dh_get_post_meta('no_padding');
/**
* script
@thinhbg59
thinhbg59 / functions.php
Created July 4, 2017 08:08
Popup form for woocommerce
function ot_popup_form()
{
if (is_singular('product')):
?>
<div id="dathang" class="lightbox-by-id lightbox-content mfp-hide lightbox-white" style="padding: 20px;">
<div class="row">
<div class="col medium-6">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium animi autem cumque eum iste
@thinhbg59
thinhbg59 / functions.php
Created July 5, 2017 06:27
popup form woocommerce
function ot_popup_form()
{
if (is_singular('product')):
?>
<div id="dathang" class="lightbox-by-id lightbox-content mfp-hide lightbox-white" style="padding: 20px;">
<div class="row">
<div class="col medium-6">
@thinhbg59
thinhbg59 / demo.php
Last active September 18, 2025 14:11
Add ux builder shortcode - Flatsome Theme
<?php
/*
Plugin Name: OT Flatsome Ultimate Addons
Plugin URI: https://ninewp.com
Description: OT Flatsome Ultimate Addons
Version: 1.0.0
Author: thinhbg59
Text Domain: OT_FL_Ultimate_Addons
Domain Path: /languages
<?php
define('HDOM_TYPE_ELEMENT', 1);
define('HDOM_TYPE_COMMENT', 2);
define('HDOM_TYPE_TEXT', 3);
define('HDOM_TYPE_ENDTAG', 4);
define('HDOM_TYPE_ROOT', 5);
define('HDOM_TYPE_UNKNOWN', 6);
define('HDOM_QUOTE_DOUBLE', 0);
define('HDOM_QUOTE_SINGLE', 1);
SELECT * FROM wp_posts WHERE wp_posts.post_title REGEXP '^[Q].*$' AND wp_posts.post_type = 'store'