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 | |
| /** | |
| * The Template for displaying product archives, including the main shop page which is a post type archive | |
| * | |
| * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php. | |
| * | |
| * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). | |
| * will need to copy the new files to your theme to maintain compatibility. We try to do this. | |
| * as little as possible, but it does happen. When this occurs the version of the template file will. | |
| * be bumped and the readme will list any important changes. |
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 | |
| remove_action( 'genesis_loop', 'genesis_do_loop'); | |
| add_action( 'genesis_loop', 'lofts_floor_plan_loop' ); | |
| //* Add filtering sidebar | |
| add_action( 'genesis_before_content', 'floorplan_filters' ); | |
| function floorplan_filters() { |
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 | |
| $args = array( | |
| 'post_type' => 'location', | |
| 'posts_per_page' => -1, | |
| 'order' => 'ASC', | |
| 'orderby' => 'title', | |
| 'facetwp' => true, | |
| 'tax_query' => array( | |
| array( | |
| 'taxonomy' => 'advertiser-level', |
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 $args = array( | |
| 'post_type' => 'location', | |
| 'posts_per_page' => -1, | |
| 'order' => 'ASC', | |
| 'orderby' => 'title', | |
| 'facetwp' => true, | |
| 'tax_query' => array( | |
| array( | |
| 'taxonomy' => 'advertiser-level', | |
| 'field' => 'slug', |
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 | |
| if(!isset($_GET['a'])) { | |
| die('<form action="" method="get"><input type="text" name="a"/><input type="submit"/></form>'); | |
| } | |
| $url = "https://1fichier.com/?" . urlencode($_GET['a']) . "?auth=1&inline"; | |
| stream_context_set_default(array( | |
| 'http' => array( | |
| 'method' => 'GET', | |
| 'header' => 'Authorization: Basic ' . '[BASE64 encoded login credentials. Format: "user:pass" (without quotes)]' |
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
| // Change 'download' slug to something else | |
| define('EDD_SLUG', 'books'); |
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
| /* | |
| * Sell Products Individually in WooCommerce | |
| */ | |
| add_filter( 'woocommerce_is_sold_individually', 'cj_woocommerce_is_sold_individually', 10, 2 ); | |
| function cj_woocommerce_is_sold_individually( $value, $product ) { | |
| $isi = get_post_meta( $product->id, '_custom_sell_individually', 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
| // Block Non-Admins from Accessing Dashboard | |
| function blockusers_init() { | |
| if ( is_admin() && ! current_user_can( 'administrator' ) && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { | |
| wp_redirect( home_url() ); | |
| exit; | |
| } | |
| } | |
| add_action( 'init', 'blockusers_init' ); |
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
| <script> | |
| // This example displays an address form, using the autocomplete feature | |
| // of the Google Places API to help users fill in the information. | |
| // This example requires the Places library. Include the libraries=places | |
| // parameter when you first load the API. For example: | |
| // <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"> | |
| var placeSearch, autocomplete; | |
| var componentForm = { |
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
| <script> | |
| // This example displays an address form, using the autocomplete feature | |
| // of the Google Places API to help users fill in the information. | |
| // This example requires the Places library. Include the libraries=places | |
| // parameter when you first load the API. For example: | |
| // <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"> | |
| var placeSearch, autocomplete; | |
| var componentForm = { |