This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Include this file in your theme and enqueue it like this in PHP: | |
function my_customize_preview_js() { | |
wp_enqueue_script( 'customizer-preview', get_template_directory_uri() . '/path/to/customizer.js', array( 'customize-preview' ), '20170422', true ); | |
} | |
add_action( 'customize_preview_init', 'my_customize_preview_js' ); | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solid OpenSCAD_Model | |
facet normal -1.000000 -0.000000 -0.000000 | |
outer loop | |
vertex -5.000000 -5.000000 0.000000 | |
vertex -5.000000 -5.000000 10.000000 | |
vertex -5.000000 5.000000 0.000000 | |
endloop | |
endfacet | |
facet normal -1.000000 0.000000 0.000000 | |
outer loop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$args = array( | |
'post_type' => 'contractors', | |
'posts_per_page' => -1, | |
'tax_query' => array( | |
array( | |
'taxonomy' => $taxonomy, | |
'terms' => $taxarray, | |
'field' => 'id' | |
) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul li { | |
display: inline-block; | |
margin-right: 20px; | |
} | |
.button-container { | |
background:#8bcdda; | |
background:-moz-radial-gradient(center,ellipse cover,#a4d0d3 0,#257fa1 100%); | |
background:-webkit-gradient(radial,center center,0,center center,100%,color-stop(0,#a4d0d3),color-stop(100%,#257fa1)); | |
background:-webkit-radial-gradient(center,ellipse cover,#a4d0d3 0,#257fa1 100%); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="button-container"> | |
<div class="button-container-inner wrap"> | |
<ul> | |
<li> | |
<a href="#" class="button orange">Đặt mua</a> | |
</li> | |
<li> | |
<a href="#" class="button light-blue">Chi tiết</a> | |
</li> | |
<li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sw_human_time_diff() { | |
global $post; | |
$date = get_post_time('G', true, $post); | |
$langs = array('giây', 'phút', 'giờ', 'ngày', 'tuần', 'tháng', 'năm'); | |
$chunks = array( | |
array( 60 * 60 * 24 * 365 , __( $langs[6], 'swhtd' ), __( $langs[6], 'swhtd' ) ), | |
array( 60 * 60 * 24 * 30 , __( $langs[5], 'swhtd' ), __( $langs[5], 'swhtd' ) ), | |
array( 60 * 60 * 24 * 7, __( $langs[4], 'swhtd' ), __( $langs[4], 'swhtd' ) ), | |
array( 60 * 60 * 24 , __( $langs[3], 'swhtd' ), __( $langs[3], 'swhtd' ) ), | |
array( 60 * 60 , __( $langs[2], 'swhtd' ), __( $langs[2], 'swhtd' ) ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once('BFI_Thumb.php'); | |
$params = array( 'width' => 400 ); | |
echo "<img src='" . bfi_thumb( "URL-to-image.jpg", $params ) . "'/>"; | |
// Resize by width only | |
$params = array( 'width' => 400 ); | |
bfi_thumb( "URL-to-image.jpg", $params ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.login div#login h1 a { | |
background-image: url("../images/logo.png"); | |
background-size: 282px 100px; | |
padding-bottom: 30px; | |
height: 80px; | |
width: 330px; | |
} | |
#login { | |
padding-top: 60px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Sau Login | |
* Plugin URI: http://hocwp.net | |
* Description: You can use this plugin to create a custom login page. | |
* Version: 1.2 | |
* Author: Sau Hi | |
* Author URI: http://hocwp.net | |
* License: GNU General Public License v3.0 | |
*/ |
NewerOlder