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
/* global wc_add_to_cart_params */ | |
(function($) { | |
$(function() { | |
if ( typeof wc_add_to_cart_params === 'undefined' ) { | |
return false; | |
} | |
$('.entry-summary form.cart').on('submit', function (e) { |
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
@media screen and (max-width: 1199px) { | |
} | |
@media screen and (max-width: 767px) { | |
} | |
@media screen and (max-width: 575px) { |
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 | |
$query = $_POST['query']; | |
$price = $_POST['price']; | |
$rooms = $_POST['rooms']; | |
$bedrooms = $_POST['bedrooms']; | |
$size = $_POST['size']; | |
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 | |
function statar_scripts() { | |
wp_enqueue_script( 'main-js', get_template_directory_uri() . '/js/main.js', array('jquery'), '20151215', true ); | |
wp_localize_script( 'main-js', 'ajax_url', admin_url( 'admin-ajax.php' )); | |
} | |
add_action( 'wp_enqueue_scripts', 'statar_scripts' ); | |
/** | |
* Ajax Calling |
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
.pagination { | |
text-align: center; | |
display: block; | |
} | |
.pagination ul { | |
display: inline-block; | |
padding: 0; | |
} |
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 | |
add_action('admin_notices', 'example_admin_notice'); | |
function example_admin_notice() { | |
global $current_user ; | |
$user_id = $current_user->ID; | |
/* Check that the user hasn't already clicked to ignore the message */ | |
if ( ! get_user_meta($user_id, 'example_ignore_notice') ) { | |
echo '<div class="updated"><p>'; | |
printf(__('This is an annoying nag message. Why do people make these? | <a href="%1$s">Hide Notice</a>'), '?example_nag_ignore=0'); |
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 | |
add_action('admin_init', function() { | |
add_settings_section( 'user_info', 'User Info', '__return_false', 'aa' ); | |
add_settings_section( 'user_account', 'Account Info', '__return_false', 'aa' ); | |
add_settings_section( 'social_info', 'Social Info', '__return_false', 'bb' ); | |
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 | |
/** | |
* Require File To Media Upload | |
*/ | |
add_action("admin_enqueue_scripts", function() { | |
wp_enqueue_media(); | |
wp_enqueue_script('feature-upload-script', get_template_directory_uri().'/upload.js', array( 'jquery' ), true, true) ; | |
}); |
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 | |
** | |
* Featuer Widget | |
*/ | |
add_action( 'admin_enqueue_scripts', function () { | |
wp_enqueue_script('media-upload'); | |
wp_enqueue_script('thickbox'); | |
wp_enqueue_script('feature-upload-script', get_template_directory_uri().'/assets/js/media-upload.js', array( 'jquery' )) ; |