A Pen by Kristof Bernaert on CodePen.
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 () { | |
// 0 = monday, 1 = tuesday, 2 = wednesday, 3 = thursday, | |
// 4=friday, 5 = saturday, 6=sunday | |
var daysToDisable = [2, 4, 5]; | |
jQuery("#input_id_id").datepicker({ | |
beforeShowDay: disableSpecificWeekDays | |
}); |
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
<html> | |
<head> | |
<title>Welcome to Public WiFi</title> | |
</head> | |
<body> | |
<h1>Welcome to Public WiFi</h1> | |
<?php | |
$base_grant_url = urldecode($_GET['base_grant_url']); | |
$user_continue_url = urldecode($_GET['user_continue_url']); |
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
<div id="selected-filters" class="selected-filters"> | |
<h4><?php _e('Selected filters','rc'); ?>:</h4> | |
<?php echo facetwp_display('selections'); ?> | |
<span class="facetwp-reset" onclick="FWP.reset()"><?php _e('reset all filters','rc'); ?></span> | |
</div> |
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 has_ancestor($pid) | |
{ | |
global $post; | |
$ancestors = get_post_ancestors($post->$pid); | |
$root = count($ancestors); | |
if ( $root < 1) { return false; } // set to false in case of no ancestors | |
$parent = $ancestors[$root]; | |
if(is_page() && (is_page($pid) || $post->post_parent == $pid || in_array($pid, $ancestors))) | |
{ |
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
// credits: https://github.com/CFXd | |
function gf_make_submit_input_into_a_button_element($button_input, $form) { | |
//save attribute string to $button_match[1] | |
preg_match("/<input([^\/>]*)(\s\/)*>/", $button_input, $button_match); | |
//remove value attribute | |
$button_atts = str_replace("value='".$form['button']['text']."' ", "", $button_match[1]); | |
return '<button '.$button_atts.'>'.$form['button']['text'].'<i class="fa fa-refresh"></i></button>'; |
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 | |
$menu_name = 'test'; | |
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { | |
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); | |
$menu_items = wp_get_nav_menu_items($menu->term_id); | |
$menu_list = '<a>test</a><nav id="bt-menu" class="bt-menu"><ul id="menu-' . $menu_name . '">'; |
NewerOlder