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 | |
| // Register Custom Post Type | |
| function mwp_cpt_form() { | |
| $labels = array( | |
| 'name' => _x( 'Forms', 'Post Type General Name', 'mwp' ), | |
| 'singular_name' => _x( 'Form', 'Post Type Singular Name', 'mwp' ), | |
| 'menu_name' => __( 'MWP Form', 'mwp' ), | |
| 'name_admin_bar' => __( 'Form', 'mwp' ), |
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 | |
| // Class MWP | |
| /** | |
| * Includes that are essential for this plugin | |
| */ | |
| public function includes(){ | |
| /** Core **/ |
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 | |
| /** | |
| * Functions for handling everything about the forms | |
| */ | |
| /** | |
| * Add Form error | |
| * @param numeric $form_id POST ID of the form | |
| * @param string $message Message |
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 | |
| /** | |
| * Get forms from database | |
| * @return array Array of Form Post Types | |
| */ | |
| function mwp_get_all_forms() { | |
| $args = array( | |
| 'post_type' => 'mwp_form', |
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 | |
| // wp-mailchimp-plugin.php | |
| /** | |
| * Enqueueing the scripts needed for MWP | |
| * @return void | |
| */ | |
| public function enqueue() { |
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_theme_support( 'starter-content', array( | |
| // Content Section for Widgets | |
| 'widgets' => array( | |
| // Sidebar | |
| 'sidebar-1' => array( | |
| // Widget ID | |
| 'my_text' => array( | |
| // Widget $id -> set when creating a Widget Class |
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
| .removeInput { | |
| position: absolute; | |
| right: 15px; | |
| z-index: 999; | |
| background-color: white; | |
| display: block; | |
| border-radius: 10px; | |
| font-size: 10px; | |
| line-height: 20px; | |
| width: 20px; |
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
| #contentRating { | |
| position: fixed; | |
| bottom:0; | |
| right: 10px; | |
| overflow: hidden; | |
| text-align: center; | |
| } | |
| #toggleRating { | |
| background:#333; |
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: Control Private Messages in BuddyPress | |
| * Author: Igor Benic | |
| * Author URI: http://www.ibenic.com | |
| * Version: 1.0 | |
| */ | |
| if( ! defined( 'ABSPATH' ) ) { |
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/includes/abstracts/abstract-wc-product.php | |
| /** | |
| * Returns number of items available for sale. | |
| * | |
| * @return int | |
| */ | |
| public function get_stock_quantity() { |