Changeset 1775220
- Timestamp:
- 11/25/2017 05:21:48 PM (8 years ago)
- Location:
- constructor-for-siteorigin/trunk
- Files:
-
- 13 edited
-
README.txt (modified) (3 diffs)
-
admin/class-constructor-siteorigin-admin.php (modified) (4 diffs)
-
admin/partials/constructor-siteorigin-admin-display.php (modified) (2 diffs)
-
constructor-siteorigin.php (modified) (2 diffs)
-
includes/class-constructor-siteorigin-activator.php (modified) (1 diff)
-
includes/class-constructor-siteorigin-deactivator.php (modified) (1 diff)
-
includes/class-constructor-siteorigin-i18n.php (modified) (2 diffs)
-
includes/class-constructor-siteorigin-loader.php (modified) (5 diffs)
-
includes/class-constructor-siteorigin-widget.php (modified) (9 diffs)
-
includes/class-constructor-siteorigin.php (modified) (5 diffs)
-
public/class-constructor-siteorigin-public.php (modified) (1 diff)
-
public/partials/constructor-siteorigin-public-display.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
constructor-for-siteorigin/trunk/README.txt
r1621190 r1775220 1 1 === Plugin Name === 2 Contributors: mimothemes2 Contributors: (this should be a list of wordpress.org userid's) 3 3 Donate link: http://mimo.studio 4 Tags: meta,siteorigin,siteorigin panels4 Tags: comments, spam 5 5 Requires at least: 4.7 6 6 Tested up to: 4.7.2 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Creates a Widget to display metadata of posts or custom post types an build reusable layouts with Siteorigin Page builder.11 Creates a Widget to display a Masonry, Infinite scroll, filterable loop of posts or whatever custom post type you have. Includes 1-20 columns layout. 12 12 13 13 == Description == 14 14 15 This plugin adds a widget to your Wordpress site called Constructor Siteorigin, publish this widget when you are building a post or cpt with SiteOrigin Page Builder, it will show metadata set in widget options: 15 16 17 show metadata as: 16 18 17 Use Page Builder in your posts and create re-usable layouts with this great Widget, this widget will show **different elements of the actual post** like: 19 1-Post Title 20 2.Post Excerpt 21 3.Post Author 22 4.Number of comments 23 5.Post categories 24 6.Post Featured Image 18 25 19 * Post Title20 * Post Excerpt21 * Post Author22 * Number of comments23 * Post categories24 * Post Featured Image25 * Product Price - Woocommerce26 * Event Time - Events Manager27 * Any Custom fields Values28 * etc29 30 ## Did you know you can use SiteOrigin Page Builder also to build posts layouts? Not only pages31 32 This plugin adds a widget to your Wordpress site called **Constructor Siteorigin**, publish this widget when you are building a post or cpt with SiteOrigin Page Builder, it will show the metadata you set in the widget options.33 34 ## Instead of creating a layout for each post...35 36 Using this plugin you can create 3,4 or more layouts and apply them to your post using one layout for a group of posts, a different layout for another group depending on your own needs.37 38 ## No code knowledge required39 40 Use the widget as you use any other wordpress widget, it has no secrets41 42 43 See Screenshots for more detailed explanation44 26 45 27 == Installation == … … 52 34 == Frequently Asked Questions == 53 35 54 = Do this plugin work without SiteOrigin Page builder, let's say in a simple/normal sidebar?36 = Do this plugin work without SiteOrigin Page builder, let's say in a asimple/normal sidebar? = 55 37 56 Yes, it is intended to construct/build posts with SiteOrigin PageBuilder, but it will also show post meta if it is published in a single view sidebar. 57 58 59 == Screenshots == 60 61 1. Shows plugin possibilities 38 Yes, it is intended to construct/build posts with SiteOrigin PageBuilder, but ill also show widget meta if it is published in a single view sidebar. 62 39 63 40 … … 70 47 == Usage instructions == 71 48 72 1. Create one or several different Layouts for your posts, 73 with SiteOrigin Page Builder Plugin. 74 75 2. Use Different instances of Constructor for Siteorigin Widget to show different 76 elements of your post. 77 78 3. Use you newly created layouts in your posts 79 80 4. See screenshots for details 49 Just publish the widget wherever needed in a single view. It works great with Site Origin Panels plugin to create full layouts. 81 50 82 51 == Developer instructions == -
constructor-for-siteorigin/trunk/admin/class-constructor-siteorigin-admin.php
r1590248 r1775220 1 1 <?php 2 3 /**4 * The admin-specific functionality of the plugin.5 *6 * @link http://mimo.studio7 * @since 1.0.08 *9 * @package Constructor_Siteorigin10 * @subpackage Constructor_Siteorigin/admin11 */12 13 2 /** 14 3 * The admin-specific functionality of the plugin. … … 16 5 * Defines the plugin name, version, and two examples hooks for how to 17 6 * enqueue the admin-specific stylesheet and JavaScript. 7 * 8 * @link http://mimo.studio 9 * @since 1.0.0 18 10 * 19 11 * @package Constructor_Siteorigin … … 45 37 * 46 38 * @since 1.0.0 47 * @param string $plugin_name The name of this plugin.48 * @param string $version The version of this plugin.39 * @param string $plugin_name The name of this plugin. 40 * @param string $version The version of this plugin. 49 41 */ 50 42 public function __construct( $plugin_name, $version ) { … … 102 94 103 95 /** 104 * Register the widgets.105 */106 public function constructor_siteorigin_widgets_init() {107 register_widget( 'Constructor_SiteOrigin_Panels_Widgets_PostContent');108 96 * Register the widgets. 97 */ 98 public function constructor_siteorigin_widgets_init() { 99 register_widget( 'Constructor_SiteOrigin_Panels_Widgets_PostContent' ); 100 109 101 } 110 102 -
constructor-for-siteorigin/trunk/admin/partials/constructor-siteorigin-admin-display.php
r1590248 r1775220 1 1 <?php 2 3 2 /** 4 3 * Provide a admin area view for the plugin … … 12 11 * @subpackage Constructor_Siteorigin/admin/partials 13 12 */ 14 ?>15 16 <!-- This file should primarily consist of HTML with a little bit of PHP. --> -
constructor-for-siteorigin/trunk/constructor-siteorigin.php
r1590248 r1775220 1 1 <?php 2 3 2 /** 4 3 * The plugin bootstrap file … … 17 16 * Plugin URI: http://mimo.studio 18 17 * Description: Construct/Build posts views with SiteOrigin Page Builder. 19 * Version: 1. 0.018 * Version: 1.1 20 19 * Author: mimothemes 21 20 * Author URI: http://mimo.studio -
constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-activator.php
r1590248 r1775220 1 1 <?php 2 3 /**4 * Fired during plugin activation5 *6 * @link http://mimo.studio7 * @since 1.0.08 *9 * @package Constructor_Siteorigin10 * @subpackage Constructor_Siteorigin/includes11 */12 13 2 /** 14 3 * Fired during plugin activation. -
constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-deactivator.php
r1590248 r1775220 1 1 <?php 2 3 /**4 * Fired during plugin deactivation5 *6 * @link http://mimo.studio7 * @since 1.0.08 *9 * @package Constructor_Siteorigin10 * @subpackage Constructor_Siteorigin/includes11 */12 13 2 /** 14 3 * Fired during plugin deactivation. -
constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-i18n.php
r1590248 r1775220 1 1 <?php 2 3 2 /** 4 3 * Define the internationalization functionality … … 14 13 */ 15 14 16 /** 17 * Define the internationalization functionality. 18 * 19 * Loads and defines the internationalization files for this plugin 20 * so that it is ready for translation. 21 * 22 * @since 1.0.0 23 * @package Constructor_Siteorigin 24 * @subpackage Constructor_Siteorigin/includes 25 * @author mimothemes <mimocontact@gmail.com> 26 */ 27 class Constructor_Siteorigin_i18n { 15 class Constructor_Siteorigin_I18n { 28 16 29 17 -
constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-loader.php
r1590248 r1775220 1 1 <?php 2 3 /**4 * Register all actions and filters for the plugin5 *6 * @link http://mimo.studio7 * @since 1.0.08 *9 * @package Constructor_Siteorigin10 * @subpackage Constructor_Siteorigin/includes11 */12 13 2 /** 14 3 * Register all actions and filters for the plugin. … … 58 47 * 59 48 * @since 1.0.0 60 * @param string $hook The name of the WordPress action that is being registered.61 * @param object $component A reference to the instance of the object on which the action is defined.62 * @param string $callback The name of the function definition on the $component.63 * @param int $priority Optional. he priority at which the function should be fired. Default is 10.64 * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1.49 * @param string $hook The name of the WordPress action that is being registered. 50 * @param object $component A reference to the instance of the object on which the action is defined. 51 * @param string $callback The name of the function definition on the $component. 52 * @param int $priority Optional. he priority at which the function should be fired. Default is 10. 53 * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1. 65 54 */ 66 55 public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { … … 72 61 * 73 62 * @since 1.0.0 74 * @param string $hook The name of the WordPress filter that is being registered.75 * @param object $component A reference to the instance of the object on which the filter is defined.76 * @param string $callback The name of the function definition on the $component.77 * @param int $priority Optional. he priority at which the function should be fired. Default is 10.78 * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 163 * @param string $hook The name of the WordPress filter that is being registered. 64 * @param object $component A reference to the instance of the object on which the filter is defined. 65 * @param string $callback The name of the function definition on the $component. 66 * @param int $priority Optional. he priority at which the function should be fired. Default is 10. 67 * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1 79 68 */ 80 69 public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { … … 88 77 * @since 1.0.0 89 78 * @access private 90 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters).91 * @param string $hook The name of the WordPress filter that is being registered.92 * @param object $component A reference to the instance of the object on which the filter is defined.93 * @param string $callback The name of the function definition on the $component.94 * @param int $priority The priority at which the function should be fired.95 * @param int $accepted_args The number of arguments that should be passed to the $callback.79 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). 80 * @param string $hook The name of the WordPress filter that is being registered. 81 * @param object $component A reference to the instance of the object on which the filter is defined. 82 * @param string $callback The name of the function definition on the $component. 83 * @param int $priority The priority at which the function should be fired. 84 * @param int $accepted_args The number of arguments that should be passed to the $callback. 96 85 * @return array The collection of actions and filters registered with WordPress. 97 86 */ … … 103 92 'callback' => $callback, 104 93 'priority' => $priority, 105 'accepted_args' => $accepted_args 94 'accepted_args' => $accepted_args, 106 95 ); 107 96 -
constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-widget.php
r1590248 r1775220 1 1 <?php /** 2 * Widget for displaying content from a post3 *4 * Class SiteOrigin_Panels_Widgets_PostContent5 */2 * Widget for displaying content from a post 3 * 4 * Class SiteOrigin_Panels_Widgets_PostContent 5 */ 6 6 class Constructor_SiteOrigin_Panels_Widgets_PostContent extends WP_Widget { 7 7 function __construct() { … … 16 16 17 17 function widget( $args, $instance ) { 18 if( is_admin() ) return; 18 if ( is_admin() ) { return; 19 } 19 20 20 21 echo $args['before_widget']; 21 $content = apply_filters( 'siteorigin_panels_widget_post_content', $this->default_content($instance['type'], $instance['wrapper'], $instance['class'], $instance['custom']));22 $content = apply_filters( 'siteorigin_panels_widget_post_content', $this->default_content( $instance['type'], $instance['wrapper'], $instance['class'], $instance['custom'] ) ); 22 23 echo $content; 23 24 echo $args['after_widget']; … … 27 28 /** 28 29 * The default content for post types 30 * 29 31 * @param $type 30 32 * @return string 31 33 */ 32 function default_content( $type, $wrapper, $class, $custom){34 function default_content( $type, $wrapper, $class, $custom ) { 33 35 global $post; 34 if (empty($post))return;35 36 37 switch ($type) {36 if ( empty( $post ) ) { return; 37 } 38 39 switch ( $type ) { 38 40 case 'post_title' : 39 41 return '<h1 class="entry-title">' . $post->post_title . '</h1>'; 40 42 case 'featured' : 41 if(!has_post_thumbnail()) return ''; 42 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . wp_kses_post(get_the_post_thumbnail($post->ID)) . '</' . esc_attr($wrapper) . '>'; 43 if ( ! has_post_thumbnail() ) { return ''; 44 } 45 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . wp_kses_post( get_the_post_thumbnail( $post->ID ) ) . '</' . esc_attr( $wrapper ) . '>'; 43 46 case 'post_author' : 44 if(!get_post_author($post->ID)) return ''; 45 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . esc_html(get_post_author($post->ID)) . '</' . esc_attr($wrapper) . '>'; 47 if ( ! get_post_author( $post->ID ) ) { return ''; 48 } 49 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . esc_html( get_post_author( $post->ID ) ) . '</' . esc_attr( $wrapper ) . '>'; 46 50 case 'post_date' : 47 if(!get_the_date($post->ID)) return ''; 48 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . esc_html(get_the_date($post->ID)) . '</' . esc_attr($wrapper) . '>'; 51 if ( ! get_the_date( $post->ID ) ) { return ''; 52 } 53 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . esc_html( get_the_date( $post->ID ) ) . '</' . esc_attr( $wrapper ) . '>'; 49 54 50 55 case 'post_excerpt' : 51 if(!has_excerpt($post->ID)) return ''; 52 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . esc_html(get_the_excerpt($post->ID)) . '</' . esc_attr($wrapper) . '>'; 53 56 if ( ! has_excerpt( $post->ID ) ) { return ''; 57 } 58 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . esc_html( get_the_excerpt( $post->ID ) ) . '</' . esc_attr( $wrapper ) . '>'; 59 54 60 case 'comment_count' : 55 if(!get_comments_number($post->ID)) return ''; 56 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . esc_html(get_comments_number($post->ID)) . '</' . esc_attr($wrapper) . '>'; 61 if ( ! get_comments_number( $post->ID ) ) { return ''; 62 } 63 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . esc_html( get_comments_number( $post->ID ) ) . '</' . esc_attr( $wrapper ) . '>'; 57 64 58 65 case 'category' : 59 if (! has_term('', 'category', $post->ID)) return ''; 60 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . wp_kses_post(get_the_term_list($post->ID, 'category', '', ', ', '')) . '</' . esc_attr($wrapper) . '>'; 66 if ( ! has_term( '', 'category', $post->ID ) ) { return ''; 67 } 68 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . wp_kses_post( get_the_term_list( $post->ID, 'category', '', ', ', '' ) ) . '</' . esc_attr( $wrapper ) . '>'; 61 69 62 case 'event-categories' : 63 if (!has_term('', 'event-categories', $post->ID)) return ''; 64 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . wp_kses_post(get_the_term_list($post->ID, 'event-categories', '', ', ', '')) . '</' . esc_attr($wrapper) . '>'; 70 case 'event-categories' : 71 if ( ! has_term( '', 'event-categories', $post->ID ) ) { return ''; 72 } 73 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . wp_kses_post( get_the_term_list( $post->ID, 'event-categories', '', ', ', '' ) ) . '</' . esc_attr( $wrapper ) . '>'; 65 74 default : 66 if ($custom) {67 $type_value = (get_post_meta( $post->ID, $custom, true) ) ? get_post_meta($post->ID, $custom, true) : null;75 if ( $custom ) { 76 $type_value = (get_post_meta( $post->ID, $custom, true ) ) ? get_post_meta( $post->ID, $custom, true ) : null; 68 77 } else { 69 $type_value = (get_post_meta( $post->ID, $type, true) ) ? get_post_meta($post->ID, $type, true) : null;78 $type_value = (get_post_meta( $post->ID, $type, true ) ) ? get_post_meta( $post->ID, $type, true ) : null; 70 79 } 71 if (!$type_value)return '';72 return '<' . esc_attr($wrapper) . ' class="' . esc_attr($class) . '">' . esc_html($type_value) . '</' . esc_attr($wrapper) . '>';73 }74 75 80 if ( ! $type_value ) { return ''; 81 } 82 return '<' . esc_attr( $wrapper ) . ' class="' . esc_attr( $class ) . '">' . esc_html( $type_value ) . '</' . esc_attr( $wrapper ) . '>'; 83 }// End switch(). 84 76 85 } 77 86 78 function update( $new, $old){87 function update( $new, $old ) { 79 88 return $new; 80 89 } … … 82 91 function form( $instance ) { 83 92 $default_types = array( 84 'post_author' => 'Author',85 'post_date' => 'Date',86 'post_title' => 'Title',87 'post_excerpt' => 'Excerpt',88 'comment_count' => 'Comment count',93 'post_author' => 'Author', 94 'post_date' => 'Date', 95 'post_title' => 'Title', 96 'post_excerpt' => 'Excerpt', 97 'comment_count' => 'Comment count', 89 98 'featured' => 'Fetured Image', 90 99 'category' => 'Post Categories', 91 100 92 101 ); 93 102 94 if (class_exists('EM_Events')) :103 if ( class_exists( 'EM_Events' ) ) : 95 104 $default_types = wp_parse_args($default_types, array( 96 '_event_start_time' => 'Event Start Time', 97 '_event_end_time' => 'Event End Time', 98 '_event_all_day' => 'Event All Day', 99 '_event_start_date' => 'Event Start Date', 100 '_event_end_date' => 'Event End Date', 101 '_event_spaces' => 'Event Spaces' , 102 '_location_id' => 'Event Location' , 103 'event-categories' => 'Event Categories' , 104 105 )); 106 105 '_event_start_time' => 'Event Start Time', 106 '_event_end_time' => 'Event End Time', 107 '_event_all_day' => 'Event All Day', 108 '_event_start_date' => 'Event Start Date', 109 '_event_end_date' => 'Event End Date', 110 '_event_spaces' => 'Event Spaces', 111 '_location_id' => 'Event Location', 112 'event-categories' => 'Event Categories', 113 114 )); 107 115 108 116 endif; 109 if (function_exists('wp_review_user_review_type')):110 117 if ( function_exists( 'wp_review_user_review_type' ) ) : 118 111 119 $default_types = wp_parse_args($default_types, array( 112 'wp_review_desc_title' => 'Review Titlw', 113 114 )); 115 120 'wp_review_desc_title' => 'Review Titlw', 121 122 )); 116 123 117 124 endif; 118 119 120 125 121 126 $current_screen = get_current_screen(); … … 128 133 )); 129 134 130 131 132 133 134 135 136 137 138 139 140 141 142 143 135 $wrappers = apply_filters('constructor_siteorigin_wrappers', array( 144 '' => __( 'None', 'constructor-siteorigin'),136 '' => __( 'None', 'constructor-siteorigin' ), 145 137 'h1' => 'h1', 146 138 'h2' => 'h2', … … 160 152 'figure' => 'figure', 161 153 'figurecaption' => 'figurecaption', 162 154 163 155 )); 164 156 … … 167 159 <label for="<?php echo $this->get_field_id( 'type' ) ?>"><?php _e( 'Display Content', 'constructor-siteorigin' ) ?></label> 168 160 <select id="<?php echo $this->get_field_id( 'type' ) ?>" name="<?php echo $this->get_field_name( 'type' ) ?>"> 169 <?php foreach ( $default_types as $type_id => $title) : ?>170 <option value="<?php echo esc_attr( $type_id) ?>" <?php selected($type_id, $instance['type']) ?>><?php echo esc_html($title) ?></option>161 <?php foreach ( $default_types as $type_id => $title ) : ?> 162 <option value="<?php echo esc_attr( $type_id ) ?>" <?php selected( $type_id, $instance['type'] ) ?>><?php echo esc_html( $title ) ?></option> 171 163 <?php endforeach ?> 172 164 </select> … … 176 168 <label for="<?php echo $this->get_field_id( 'wrapper' ) ?>"><?php _e( 'Wrapper Container', 'constructor-siteorigin' ) ?></label> 177 169 <select id="<?php echo $this->get_field_id( 'wrapper' ) ?>" name="<?php echo $this->get_field_name( 'wrapper' ) ?>"> 178 <?php foreach ( $wrappers as $wrapper_id => $wrapper_title) : ?>179 <option value="<?php echo esc_attr( $wrapper_id) ?>" <?php selected($wrapper_id, $instance['wrapper']) ?>><?php echo esc_html($wrapper_title) ?></option>170 <?php foreach ( $wrappers as $wrapper_id => $wrapper_title ) : ?> 171 <option value="<?php echo esc_attr( $wrapper_id ) ?>" <?php selected( $wrapper_id, $instance['wrapper'] ) ?>><?php echo esc_html( $wrapper_title ) ?></option> 180 172 <?php endforeach ?> 181 173 </select> … … 183 175 184 176 <p> 185 <label for="<?php echo $this->get_field_id( 'class') ?>"><?php _e('Wrapper Class', 'constructor-siteorigin') ?></label>186 <input type="text" id="<?php echo $this->get_field_id( 'class' ) ?>" name="<?php echo $this->get_field_name( 'class' ) ?>" value="<?php echo esc_attr( $instance['class']) ?>" />177 <label for="<?php echo $this->get_field_id( 'class' ) ?>"><?php _e( 'Wrapper Class', 'constructor-siteorigin' ) ?></label> 178 <input type="text" id="<?php echo $this->get_field_id( 'class' ) ?>" name="<?php echo $this->get_field_name( 'class' ) ?>" value="<?php echo esc_attr( $instance['class'] ) ?>" /> 187 179 </p> 188 180 189 181 <p> 190 <label for="<?php echo $this->get_field_id( 'custom') ?>"><?php _e('Custom Meta Key', 'constructor-siteorigin') ?></label>191 <input type="text" id="<?php echo $this->get_field_id( 'custom' ) ?>" name="<?php echo $this->get_field_name( 'custom' ) ?>" value="<?php echo esc_attr( $instance['custom']) ?>" />182 <label for="<?php echo $this->get_field_id( 'custom' ) ?>"><?php _e( 'Custom Meta Key', 'constructor-siteorigin' ) ?></label> 183 <input type="text" id="<?php echo $this->get_field_id( 'custom' ) ?>" name="<?php echo $this->get_field_name( 'custom' ) ?>" value="<?php echo esc_attr( $instance['custom'] ) ?>" /> 192 184 </p> 193 185 <?php -
constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin.php
r1590248 r1775220 1 1 <?php 2 3 /**4 * The file that defines the core plugin class5 *6 * A class definition that includes attributes and functions used across both the7 * public-facing side of the site and the admin area.8 *9 * @link http://mimo.studio10 * @since 1.0.011 *12 * @package Constructor_Siteorigin13 * @subpackage Constructor_Siteorigin/includes14 */15 16 2 /** 17 3 * The core plugin class. … … 85 71 * 86 72 * - Constructor_Siteorigin_Loader. Orchestrates the hooks of the plugin. 87 * - Constructor_Siteorigin_ i18n. Defines internationalization functionality.73 * - Constructor_Siteorigin_I18n. Defines internationalization functionality. 88 74 * - Constructor_Siteorigin_Admin. Defines all hooks for the admin area. 89 75 * - Constructor_Siteorigin_Public. Defines all hooks for the public side of the site. … … 133 119 * Define the locale for this plugin for internationalization. 134 120 * 135 * Uses the Constructor_Siteorigin_ i18n class in order to set the domain and to register the hook121 * Uses the Constructor_Siteorigin_I18n class in order to set the domain and to register the hook 136 122 * with WordPress. 137 123 * … … 141 127 private function set_locale() { 142 128 143 $plugin_i18n = new Constructor_Siteorigin_ i18n();129 $plugin_i18n = new Constructor_Siteorigin_I18n(); 144 130 145 131 $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); … … 160 146 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); 161 147 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); 162 $this->loader->add_action( 'widgets_init',$plugin_admin, 'constructor_siteorigin_widgets_init');148 $this->loader->add_action( 'widgets_init',$plugin_admin, 'constructor_siteorigin_widgets_init' ); 163 149 164 150 } -
constructor-for-siteorigin/trunk/public/class-constructor-siteorigin-public.php
r1590248 r1775220 1 1 <?php 2 3 /**4 * The public-facing functionality of the plugin.5 *6 * @link http://mimo.studio7 * @since 1.0.08 *9 * @package Constructor_Siteorigin10 * @subpackage Constructor_Siteorigin/public11 */12 13 2 /** 14 3 * The public-facing functionality of the plugin. -
constructor-for-siteorigin/trunk/public/partials/constructor-siteorigin-public-display.php
r1590248 r1775220 1 1 <?php 2 3 2 /** 4 3 * Provide a public-facing view for the plugin -
constructor-for-siteorigin/trunk/uninstall.php
r1590248 r1775220 1 1 <?php 2 3 2 /** 4 3 * Fired when the plugin is uninstalled.
Note: See TracChangeset
for help on using the changeset viewer.