This file contains 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 escapeQuotHTML = function(str){ | |
return str.replace(/&/g,'&').replace(/"/g, '"').replace(/\'/g, ''').replace(/</g,'<').replace(/>/g,'>'); | |
}; | |
var escapeHTML = function(str){ | |
var div = document.createElement('div'); | |
var text = document.createTextNode(str); | |
div.appendChild(text); | |
return div.innerHTML; |
This file contains 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
jQuery(function($) { | |
"use strict"; | |
var jqxhr; | |
var cbmCommentLike = { | |
get: function(postID){ | |
var defer = $.Deferred(); | |
$.ajax({ | |
type: 'POST', |
This file contains 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 (window) { | |
var hoverClass = ""; | |
var tapClass = ""; | |
var trigger = ""; | |
var action = {}; | |
if (Modernizr.touch){ | |
action = { | |
"start":"touchstart", | |
"end": "touchend" |
This file contains 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 | |
/** | |
* DNS prefetch. | |
* | |
* @return string | |
* | |
* @since Your theme name 1.0.0 | |
*/ | |
function your_themename_dns_prefetch() { | |
$dns = array( |
This file contains 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 | |
if ( !function_exists( 'val_genericons' ) ) : | |
function val_genericons() { | |
return array( | |
'genericon-standard' => 'Standard', | |
'genericon-aside' => 'Aside', | |
'genericon-image' => 'Image', | |
'genericon-gallery' => 'Gallery', | |
'genericon-video' => 'Video', | |
'genericon-status' => 'Status', |
This file contains 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 | |
if ( !function_exists( 'val_fontawesome' ) ): | |
function val_fontawesome() { | |
return array( | |
'fa-adjust' => 'Adjust', | |
'fa-adn' => 'Adn', | |
'fa-align-center' => 'Align center', | |
'fa-align-justify' => 'Align justify', | |
'fa-align-left' => 'Align left', | |
'fa-align-right' => 'Align right', |
This file contains 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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* Plugin Name: VA Check Old Password | |
* Plugin URI: http://visualive.jp/ | |
* Description: This is a WordPress plugin that confirm old password before changing to new password. | |
* Author: KUCKLU | |
* Version: 1.0.0 | |
* Author URI: http://visualive.jp/ | |
* Text Domain: va-check-old-password |
This file contains 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 | |
function override_register_category() { | |
$c_args = json_decode( json_encode( get_taxonomy( 'category' ) ), true ); | |
$c_args['meta_box_cb'] = 'change_category_meta_box'; | |
register_taxonomy( 'category', 'post', $c_args ); | |
} | |
add_action( 'init', 'override_register_category' ); | |
function change_category_meta_box( $post, $box ) { | |
if ( !isset( $box['args'] ) || !is_array( $box['args'] ) ) { |
This file contains 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 | |
/** | |
* Return the post's parent's post_ID. | |
* | |
* @param int $post_id | |
* @return int|false | |
*/ | |
function get_parent_id( $post_id ) { | |
$parent_id = wp_get_post_parent_id( $post_id ); |
This file contains 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
.HeartAnimationContainer .HeartAnimation { | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAC1QAAABkCAMAAAAM7mAaAAAC+lBMVEUAAABpYXPIkOsAAAAAAAAAAAACAADIhOoIBgYCAQAAAAAAAAAAAADNj/UAAADJoYMAAACWysbMj/bLkvTHuaoAAADMkPbNj/bMkfX+uDagycUAAAAAAAAAAAAFBQW0nesCAQCm2rDMTqXeN2DMkPXMj/ai6Lj0t1ztunDFkPaovvrgLkXLYLwAAAACAQCCrvHQoPfZlM7N1Jee2cej1NWW2en4uj3Mk/X1uTD/qzPFY8rXf77gLkXRacL0jqeV0feXuubQleaf4s/WbMFkm+Ww9pqeMOLSjrTovpGU5sG0w8XexIP/sjTdRoiV2rGMZijkLkf/NlDgoJ6gx/iSICwzn++/VNaX5sKY1+maZR6pTta26JPTnMnJx6HJrMWioqLqqmfoL0hynd/B6pDhKkuclsbtpjBXo+Kf5MDd11f/rTOJlvOgZ8zdRoj7wzar5JU8oO3L6oy8vNyps77eRojsl6XimKZYwZzGuovVm8+iNd/nvI8+x5bTasC306MqGwhFx5OfNeLaesuTwI0yn+/gLEakn75CrNo7yY2fT9bqykQqyo3/tTX/sDSblPNlm+vor5fLxJa9rPq4LThkQRONjY3qqmczr+J/f3+MHSvSliyYJC53ThipcCL/NU/qqDIkGAfMjvUAAADUar/dRojdLkT/NU/bK0PuMkn7M033M0znMEfzMUvrMEjfL0TjMEZNEBjSK0DEKDwoCAziJkgJAgLcJEX/tDT/O1XNJz3/wzj/zTyR0vqgIDLXIEM4DBH/rTOHHCl8fHyxJDarDCW8FTmM6MP/yDJ3FyVHDxXWMEAwCQ//vDVCDRSTHC5tGCFWEBlaPhH31DAtLwW5JjmRkZH/pD7XlSocCwdkFB/4kjd+CSq |