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 getallimages = ''; | |
var Icons = {}; | |
jQuery('#voc_fullstage_img #voc_ext_pics').find('.voc_Stage').each(function(index) { | |
var text = jQuery(this).find('img').attr('src'); | |
if (text.indexOf('(alias)') === -1) { | |
Icons[text.trim()] = text.trim().split('-').join(' '); | |
} | |
}); | |
var keys = Object.keys(Icons), |
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
jQuery(document).ready(function () { | |
var clickHandler = ('ontouchstart' in document.documentElement ? "touchstart" : "click"); | |
jQuery("#menu-mainmenu li a:not(.ignore)").bind(clickHandler, function(e) { | |
// link - substring will take only "#name" - and you can add link with "/#name" | |
// so it can work on onepage site that have blog. | |
var link = jQuery(this).attr('href').substring(jQuery(this).attr('href').indexOf('#')) | |
// this will take link and calculate top offset | |
var posi = jQuery(link).offset().top; |
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 | |
switch(TRUE){ | |
case email_is_valid($email): | |
// Do something. | |
break; | |
case username_is_valid($user): | |
// Do stuff. | |
break; | |
case pass_too_short($pass) && pass_not_save($pass): | |
// Other stuff. |
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: Easy Create Page from plugin | |
* Description: Delete and Add - pages, posts | |
* Version: 0.0.1 | |
* | |
* https://developer.wordpress.org/reference/functions/wp_delete_post/ | |
*/ | |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
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
/* Source: https://codex.wordpress.org/Changing_The_Site_URL */ | |
/* WordPress Address (URL) & Site Address (URL) */ | |
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
/* wp_post */ | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); | |
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
/*---------- Post form ----------*/ | |
.job-contact-form { | |
@include span-columns(24); | |
@include omega(); | |
@include row(); | |
margin-top: $np; | |
padding-top: $np; | |
margin-bottom: $np; | |
padding-bottom: $np; | |
border-top: 1px solid lighten($gray, 60%); |
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="mls-slider-wrapper no-print"> | |
<?php | |
global $wp_query; | |
$term_id = null; | |
$taxonomy = null; | |
$queried_object = get_queried_object(); | |
if ( ( ! $queried_object == null ) && ! is_search() && ! is_404() ) { | |
$taxonomy = $queried_object->taxonomy; |
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
/** | |
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
* | |
* To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
* the height of element `.foo` —which is a full width and height cover image. | |
* | |
* iOS Resolution Quick Reference: http://www.iosres.com/ | |
*/ | |