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
| if ( empty( $mpi_info ) ) { | |
| /** | |
| * Connect to WordPress.org using plugins_api | |
| * About plugins_api - | |
| * http://wp.tutsplus.com/tutorials/plugins/communicating-with-the-wordpress-org-plugin-api/ | |
| */ | |
| require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; | |
| $mpi_info = plugins_api( 'plugin_information', array( 'slug' => $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
| if ( $field == "downloaded" ) { | |
| return $mpi_info->downloaded; | |
| } | |
| if ( $field == "name" ) { | |
| return $mpi_info->name; | |
| } | |
| if ( $field == "slug" ) { | |
| return $mpi_info->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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <script src="jquery.ketchup.all.min.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div id="email"> | |
| <span>Enter your email to sign up</span> | |
| <form action="/subscribe.php" id="invite" method="POST"> |
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
| if( function_exists('dot_irecommendthis') ) echo do_shortcode("[dot_recommends id='3801']"); ?> |
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_count = do_shortcode("[dot_recommends ID='$item->ID']"); |
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
| /* | |
| * To run the deployment | |
| * 1. Login as an administrator | |
| * 2. Go to http://yourdomain.com/?deploy_changes=1 | |
| */ | |
| function deploy_changes() { | |
| // If the request is not our deployment | |
| if ( !isset( $_GET['deploy_changes'] ) ) { | |
| return; |
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 | |
| /** | |
| * WooCommerce Extra Feature | |
| * -------------------------- | |
| * | |
| * Register a shortcode that creates a product categories dropdown list | |
| * | |
| * Use: [product_categories_dropdown orderby="title" count="0" hierarchical="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 | |
| /* | |
| * A walker class to use that extends wp_dropdown_categories and allows it to use the term's slug as a value rather than ID. | |
| * | |
| * See http://core.trac.wordpress.org/ticket/13258 | |
| * | |
| * Usage, as normal: | |
| * wp_dropdown_categories($args); | |
| * |
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_widget( 'WC_Widget_Product_Categories', 'title=&hierarchical=1&orderby=name&dropdown=1' ); ?> |
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
| new SH_Walker_TaxonomyDropdown(), | |
| 'value'=>'slug', | |
| 'show_option_none' => __('Select a Category', 'dot'), | |
| 'taxonomy' => 'product_cat', | |
| 'id' => 'product_cat_dropdown', | |
| 'name' => 'product_cat', | |
| 'orderby' => 'name', | |
| 'child_of' => 0, | |
| //'selected' => $wp_query->query['term'], | |
| 'hierarchical' => true, |