Plugin Directory

Changeset 1775220


Ignore:
Timestamp:
11/25/2017 05:21:48 PM (8 years ago)
Author:
mimothemes
Message:

Update to Wordpress Coding Standards

Location:
constructor-for-siteorigin/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • constructor-for-siteorigin/trunk/README.txt

    r1621190 r1775220  
    11=== Plugin Name ===
    2 Contributors: mimothemes
     2Contributors: (this should be a list of wordpress.org userid's)
    33Donate link: http://mimo.studio
    4 Tags: meta,siteorigin,siteorigin panels
     4Tags: comments, spam
    55Requires at least: 4.7
    66Tested up to: 4.7.2
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Creates a Widget to display metadata of posts or custom post types an build reusable layouts with Siteorigin Page builder.
     11Creates a Widget to display a Masonry, Infinite scroll, filterable loop of posts or whatever custom post type you have. Includes 1-20 columns layout.
    1212
    1313== Description ==
    1414
     15This 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:
    1516
     17show metadata as:
    1618
    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:
     191-Post Title
     202.Post Excerpt
     213.Post Author
     224.Number of comments
     235.Post categories
     246.Post Featured Image
    1825
    19 * Post Title
    20 * Post Excerpt
    21 * Post Author
    22 * Number of comments
    23 * Post categories
    24 * Post Featured Image
    25 * Product Price - Woocommerce
    26 * Event Time - Events Manager
    27 * Any Custom fields Values
    28 * etc
    29 
    30 ## Did you know you can use SiteOrigin Page Builder also to build posts layouts? Not only pages
    31 
    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 required
    39 
    40 Use the widget as you use any other wordpress widget, it has no secrets
    41 
    42 
    43 See Screenshots for more detailed explanation
    4426
    4527== Installation ==
     
    5234== Frequently Asked Questions ==
    5335
    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? =
    5537
    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
     38Yes, 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.
    6239
    6340
     
    7047== Usage instructions ==
    7148
    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
     49Just publish the widget wherever needed in a single view. It works great with Site Origin Panels plugin to create full layouts.
    8150
    8251== Developer instructions ==
  • constructor-for-siteorigin/trunk/admin/class-constructor-siteorigin-admin.php

    r1590248 r1775220  
    11<?php
    2 
    3 /**
    4  * The admin-specific functionality of the plugin.
    5  *
    6  * @link       http://mimo.studio
    7  * @since      1.0.0
    8  *
    9  * @package    Constructor_Siteorigin
    10  * @subpackage Constructor_Siteorigin/admin
    11  */
    12 
    132/**
    143 * The admin-specific functionality of the plugin.
     
    165 * Defines the plugin name, version, and two examples hooks for how to
    176 * enqueue the admin-specific stylesheet and JavaScript.
     7 *
     8 * @link       http://mimo.studio
     9 * @since      1.0.0
    1810 *
    1911 * @package    Constructor_Siteorigin
     
    4537     *
    4638     * @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.
    4941     */
    5042    public function __construct( $plugin_name, $version ) {
     
    10294
    10395    /**
    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
    109101    }
    110102
  • constructor-for-siteorigin/trunk/admin/partials/constructor-siteorigin-admin-display.php

    r1590248 r1775220  
    11<?php
    2 
    32/**
    43 * Provide a admin area view for the plugin
     
    1211 * @subpackage Constructor_Siteorigin/admin/partials
    1312 */
    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  
    11<?php
    2 
    32/**
    43 * The plugin bootstrap file
     
    1716 * Plugin URI:        http://mimo.studio
    1817 * Description:       Construct/Build posts views with SiteOrigin Page Builder.
    19  * Version:           1.0.0
     18 * Version:           1.1
    2019 * Author:            mimothemes
    2120 * Author URI:        http://mimo.studio
  • constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-activator.php

    r1590248 r1775220  
    11<?php
    2 
    3 /**
    4  * Fired during plugin activation
    5  *
    6  * @link       http://mimo.studio
    7  * @since      1.0.0
    8  *
    9  * @package    Constructor_Siteorigin
    10  * @subpackage Constructor_Siteorigin/includes
    11  */
    12 
    132/**
    143 * Fired during plugin activation.
  • constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-deactivator.php

    r1590248 r1775220  
    11<?php
    2 
    3 /**
    4  * Fired during plugin deactivation
    5  *
    6  * @link       http://mimo.studio
    7  * @since      1.0.0
    8  *
    9  * @package    Constructor_Siteorigin
    10  * @subpackage Constructor_Siteorigin/includes
    11  */
    12 
    132/**
    143 * Fired during plugin deactivation.
  • constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-i18n.php

    r1590248 r1775220  
    11<?php
    2 
    32/**
    43 * Define the internationalization functionality
     
    1413 */
    1514
    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 {
     15class Constructor_Siteorigin_I18n {
    2816
    2917
  • constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-loader.php

    r1590248 r1775220  
    11<?php
    2 
    3 /**
    4  * Register all actions and filters for the plugin
    5  *
    6  * @link       http://mimo.studio
    7  * @since      1.0.0
    8  *
    9  * @package    Constructor_Siteorigin
    10  * @subpackage Constructor_Siteorigin/includes
    11  */
    12 
    132/**
    143 * Register all actions and filters for the plugin.
     
    5847     *
    5948     * @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.
    6554     */
    6655    public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
     
    7261     *
    7362     * @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 1
     63     * @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
    7968     */
    8069    public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
     
    8877     * @since    1.0.0
    8978     * @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.
    9685     * @return   array                                  The collection of actions and filters registered with WordPress.
    9786     */
     
    10392            'callback'      => $callback,
    10493            'priority'      => $priority,
    105             'accepted_args' => $accepted_args
     94            'accepted_args' => $accepted_args,
    10695        );
    10796
  • constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin-widget.php

    r1590248 r1775220  
    11<?php /**
    2  * Widget for displaying content from a post
    3  *
    4  * Class SiteOrigin_Panels_Widgets_PostContent
    5  */
     2      * Widget for displaying content from a post
     3      *
     4      * Class SiteOrigin_Panels_Widgets_PostContent
     5      */
    66class Constructor_SiteOrigin_Panels_Widgets_PostContent extends WP_Widget {
    77    function __construct() {
     
    1616
    1717    function widget( $args, $instance ) {
    18         if( is_admin() ) return;
     18        if ( is_admin() ) { return;
     19        }
    1920
    2021        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'] ) );
    2223        echo $content;
    2324        echo $args['after_widget'];
     
    2728    /**
    2829     * The default content for post types
     30     *
    2931     * @param $type
    3032     * @return string
    3133     */
    32     function default_content($type, $wrapper, $class, $custom){
     34    function default_content( $type, $wrapper, $class, $custom ) {
    3335        global $post;
    34         if(empty($post)) return;
    35        
    36        
    37         switch($type) {
     36        if ( empty( $post ) ) { return;
     37        }
     38
     39        switch ( $type ) {
    3840            case 'post_title' :
    3941                return '<h1 class="entry-title">' . $post->post_title . '</h1>';
    4042            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 ) . '>';
    4346            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 ) . '>';
    4650            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 ) . '>';
    4954
    5055            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
    5460            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 ) . '>';
    5764
    5865            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 ) . '>';
    6169
    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 ) . '>';
    6574            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;
    6877                } 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;
    7079                }
    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
    7685    }
    7786
    78     function update($new, $old){
     87    function update( $new, $old ) {
    7988        return $new;
    8089    }
     
    8291    function form( $instance ) {
    8392        $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',
    8998            'featured' => 'Fetured Image',
    9099            'category' => 'Post Categories',
    91            
     100
    92101        );
    93102
    94         if(class_exists('EM_Events')) :
     103        if ( class_exists( 'EM_Events' ) ) :
    95104            $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            ));
    107115
    108116        endif;
    109         if(function_exists('wp_review_user_review_type')):
    110            
     117        if ( function_exists( 'wp_review_user_review_type' ) ) :
     118
    111119            $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            ));
    116123
    117124        endif;
    118 
    119 
    120125
    121126        $current_screen = get_current_screen();
     
    128133        ));
    129134
    130        
    131 
    132 
    133 
    134 
    135        
    136 
    137    
    138 
    139        
    140 
    141        
    142 
    143135        $wrappers = apply_filters('constructor_siteorigin_wrappers', array(
    144             '' => __('None', 'constructor-siteorigin'),
     136            '' => __( 'None', 'constructor-siteorigin' ),
    145137            'h1' => 'h1',
    146138            'h2' => 'h2',
     
    160152            'figure' => 'figure',
    161153            'figurecaption' => 'figurecaption',
    162            
     154
    163155        ));
    164156
     
    167159            <label for="<?php echo $this->get_field_id( 'type' ) ?>"><?php _e( 'Display Content', 'constructor-siteorigin' ) ?></label>
    168160            <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>
    171163                <?php endforeach ?>
    172164            </select>
     
    176168            <label for="<?php echo $this->get_field_id( 'wrapper' ) ?>"><?php _e( 'Wrapper Container', 'constructor-siteorigin' ) ?></label>
    177169            <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>
    180172                <?php endforeach ?>
    181173            </select>
     
    183175
    184176        <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'] ) ?>" />
    187179            </p>
    188180
    189181            <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'] ) ?>" />
    192184            </p>
    193185        <?php
  • constructor-for-siteorigin/trunk/includes/class-constructor-siteorigin.php

    r1590248 r1775220  
    11<?php
    2 
    3 /**
    4  * The file that defines the core plugin class
    5  *
    6  * A class definition that includes attributes and functions used across both the
    7  * public-facing side of the site and the admin area.
    8  *
    9  * @link       http://mimo.studio
    10  * @since      1.0.0
    11  *
    12  * @package    Constructor_Siteorigin
    13  * @subpackage Constructor_Siteorigin/includes
    14  */
    15 
    162/**
    173 * The core plugin class.
     
    8571     *
    8672     * - Constructor_Siteorigin_Loader. Orchestrates the hooks of the plugin.
    87      * - Constructor_Siteorigin_i18n. Defines internationalization functionality.
     73     * - Constructor_Siteorigin_I18n. Defines internationalization functionality.
    8874     * - Constructor_Siteorigin_Admin. Defines all hooks for the admin area.
    8975     * - Constructor_Siteorigin_Public. Defines all hooks for the public side of the site.
     
    133119     * Define the locale for this plugin for internationalization.
    134120     *
    135      * Uses the Constructor_Siteorigin_i18n class in order to set the domain and to register the hook
     121     * Uses the Constructor_Siteorigin_I18n class in order to set the domain and to register the hook
    136122     * with WordPress.
    137123     *
     
    141127    private function set_locale() {
    142128
    143         $plugin_i18n = new Constructor_Siteorigin_i18n();
     129        $plugin_i18n = new Constructor_Siteorigin_I18n();
    144130
    145131        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
     
    160146        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
    161147        $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' );
    163149
    164150    }
  • constructor-for-siteorigin/trunk/public/class-constructor-siteorigin-public.php

    r1590248 r1775220  
    11<?php
    2 
    3 /**
    4  * The public-facing functionality of the plugin.
    5  *
    6  * @link       http://mimo.studio
    7  * @since      1.0.0
    8  *
    9  * @package    Constructor_Siteorigin
    10  * @subpackage Constructor_Siteorigin/public
    11  */
    12 
    132/**
    143 * The public-facing functionality of the plugin.
  • constructor-for-siteorigin/trunk/public/partials/constructor-siteorigin-public-display.php

    r1590248 r1775220  
    11<?php
    2 
    32/**
    43 * Provide a public-facing view for the plugin
  • constructor-for-siteorigin/trunk/uninstall.php

    r1590248 r1775220  
    11<?php
    2 
    32/**
    43 * Fired when the plugin is uninstalled.
Note: See TracChangeset for help on using the changeset viewer.