Plugin Directory

Changeset 2063345


Ignore:
Timestamp:
04/05/2019 01:32:49 AM (7 years ago)
Author:
echelonso
Message:

1.0.3 release, updated widgets, added features and removed screen shots.

Location:
echelon-so
Files:
65 added
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • echelon-so/trunk/echelon-so.php

    r1983790 r2063345  
    22/*
    33Plugin Name:    Echelon for SiteOrigin
    4 Description:    Echelon for SiteOrigin
    5 Version:        1.0.1
     4Plugin URI:     https://echelonso.com
     5Description:    Echelon widgets and features for SiteOrigin Page Builder.
     6Version:        1.0.3
    67Author:         Echelon
     8Author URI:     https://echelonso.com
    79License:        GPL3
    810License URI:    https://www.gnu.org/licenses/gpl-3.0.txt
    911*/
    1012
    11 if (!class_exists('EchelonForSiteOrigin')) {
     13if (!class_exists('EchelonSO')) {
    1214   
    13     class EchelonForSiteOrigin {
     15    class EchelonSO {
    1416       
    1517        public function __construct() {
     18            require 'features/animated-gradients.php';
     19            require 'features/waypoints.php';
     20            require 'features/animate.php';
     21            require 'features/inline-widgets.php';
     22            add_action( 'init', array($this, 'reusable_layouts_cpt_tax'));
     23            add_action( 'plugins_loaded', array($this, 'plugins_loaded'));
     24            add_action( 'wp_enqueue_scripts', array($this, 'scripts'));
     25        }
     26       
     27        /**
     28        * Plugins loaded
     29        */
     30       
     31        public function plugins_loaded() {
     32            add_filter( 'siteorigin_widgets_widget_folders', array($this, 'widget_folders') );
     33            add_filter( 'siteorigin_widgets_widget_banner', array($this, 'widget_banner'), 10, 2);
     34        }
     35       
     36        /**
     37        * Widget folders
     38        */
     39       
     40        public function widget_folders($folders) {
     41            $folders['echelonso_widgets'] = plugin_dir_path(__FILE__) . 'widgets/';
     42            return $folders;
     43        }
     44       
     45        /**
     46        * Scripts
     47        */
     48       
     49        public function scripts() {
     50            wp_enqueue_script( 'echelonso_js', plugin_dir_url( __FILE__ ) . 'echelon-so.js', array('jquery'), '1.0.2', false );
     51        }
     52       
     53        /**
     54        * Register Reusable Layouts CPT and Taxes
     55        */
     56       
     57        public function reusable_layouts_cpt_tax() {
    1658           
     59            register_taxonomy(
     60                'echelonso_layout_cat',
     61                'echelonso_layout',
     62                array(
     63                    'hierarchical' => true,
     64                    'label' => __('Categories', 'echelon-so'),
     65                    'query_var' => true,
     66                    'has_archive' => false,
     67                    'show_in_nav_menus' => false,
     68                    'show_admin_column' => true
     69                )
     70            );
     71           
     72            register_taxonomy(
     73                'echelonso_layout_tag',
     74                'echelonso_layout',
     75                array(
     76                    'hierarchical' => false,
     77                    'label' => __('Tags', 'echelon-so'),
     78                    'query_var' => true,
     79                    'has_archive' => false,
     80                    'show_in_nav_menus' => false,
     81                    'show_admin_column' => true
     82                )
     83            );
     84           
     85            register_post_type( 'echelonso_layout', array(
     86                'label'  => __('Reusable Layouts', 'echelon-so'),
     87                'public' => true,
     88                'has_archive' => false,
     89                'show_in_nav_menus' => false,
     90                'show_in_menu' => 'themes.php',
     91                'exclude_from_search' => true
     92            ));
     93        }
     94       
     95        /**
     96        * Get echelonso_layout names
     97        */
     98       
     99        function get_layout_select_options() {
     100           
     101            $args = array(
     102                'post_type'=> 'echelonso_layout',
     103                'posts_per_page' => -1,
     104                'orderby' => 'post_title',
     105                'order' => 'ASC'
     106            );
     107           
     108            $the_query = new WP_Query( $args );
     109           
     110            $options = array();
     111           
     112            $options[0] = __('None', 'echelon-so');
     113           
     114            if ( $the_query->have_posts() ) {
     115                foreach ($the_query->posts as $k => $v) {
     116                    $options[$v->ID] = $v->post_title;
     117                }
     118            }
     119           
     120            return $options;
     121        }
     122       
     123        /**
     124        * Widget banners
     125        */
     126       
     127        function widget_banner( $banner_url, $widget_meta ) {
     128           
     129            if ($widget_meta['ID'] == 'eso-before-after') {
     130                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-before-after/assets/icon-before-after.png';
     131            }
     132           
     133            if ($widget_meta['ID'] == 'eso-counter') {
     134                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-counter/assets/icon-counter.png';
     135            }
     136           
     137            if ($widget_meta['ID'] == 'eso-custom-loop') {
     138                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-custom-loop/assets/icon-custom-loop.png';
     139            }
     140           
     141            if ($widget_meta['ID'] == 'eso-typewriter') {
     142                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-typewriter/assets/icon-typewriter.png';
     143            }
     144           
     145            if ($widget_meta['ID'] == 'eso-js-css') {
     146                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-js-css/assets/icon-js-css.png';
     147            }
     148           
     149            if ($widget_meta['ID'] == 'eso-dynamic-link') {
     150                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-dynamic-link/assets/icon-dynamic-link.png';
     151            }
     152           
     153            if ($widget_meta['ID'] == 'eso-line-chart') {
     154                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-line-chart/assets/icon-line-chart.png';
     155            }
     156           
     157            if ($widget_meta['ID'] == 'eso-reuse-layout') {
     158                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-reuse-layout/assets/icon-reuse-layout.png';
     159            }
     160           
     161            if ($widget_meta['ID'] == 'eso-template-tag') {
     162                $banner_url = plugin_dir_url(__FILE__) . 'widgets/eso-template-tag/assets/icon-template-tag.png';
     163            }
     164           
     165            return $banner_url;
    17166        }
    18167       
    19168    }
    20169   
    21     $class = new EchelonForSiteOrigin();
     170    $echelon_so = new EchelonSO();
    22171   
    23172}
  • echelon-so/trunk/readme.txt

    r1983790 r2063345  
    1 === Echelon for SiteOrigin ===
     1=== Echelon SiteOrigin Widgets and Features ===
    22Contributors: echelonso
    33Requires at least: 4.9
    4 Tested up to: 4.9
     4Tested up to: 5.1
    55Requires PHP: 7
    66Stable tag: trunk
     
    88License URI: https://www.gnu.org/licenses/gpl-3.0.txt
    99
    10 Echelon for SiteOrigin
     10Additional widgets, features and enhancements for SiteOrigin Page Builder.
    1111
    1212== Description ==
    1313
    14 Echelon for SiteOrigin
     14Echelon SiteOrigin Widgets and Features enhances the functionality of the SiteOrigin Page Builder. The plugin adds both features to the framework and extra available widgets.
     15
     16[DEMO](https://echelonso.com) | [DOCS](https://echelonso.com/documentation/)
     17
     18Line Chart Widget
     19Brings the awesome Chartist JS library to SiteOrigin. The Line Chart widget is fully featured and loaded with style and display options. With support for lines, points, fills, 4 interpolation modes and unlimited series sets. Custom labels are supported along with auto and custom axis scaling.
     20
     21Animate Feature
     22Adds the Animate.css features directly into the SiteOrigin Page Builder framework. Animate works for widgets, rows and cells and includes all available animations. The effects can fire on the up or down scroll, they can fire once, toggle or repeat with different effects for entrances and exits.
     23
     24Custom Loop Widget
     25Creating loops with SiteOrigin requires the use of PHP files and some developer knowledge, we have improved the standard Post Loop widget to use the standard drag and drop interface. Simply create a layout under Appearance > Reusable Layouts, layout with the Template Tag widget (11 tags included) and select the layout for use in the loop. Simple easy to use loops you can layout how you wish.
     26
     27Reusable Layouts Feature
     28Reusable Layouts add a flexible additional system to the SiteOrigin Page Builder framework. They provide an area in the WordPress administration to store and organise layouts along with a dedicated widget for displaying the content anywhere on your website. If you update the content in the reusable layout it will update in all areas you have it displayed. They are also used to create custom content loops.
     29
     30Typewriter Widget
     31The Typewriter widget will type out a line of text, delete and write a new line in a loop. You can add unlimited lines to the Typewriter, choose a custom cursor and adjust the typing and deletion speeds.
     32
     33Counter Widget
     34Animate between two numbers either upwards or downwards. The widget simply provides the counter so you are free to combine it with with any layout or additional content such as icons and labels as we have done here.
     35
     36Animated Gradients Feature
     37Create color changing backgrounds for widgets rows and cells. Animated Gradients add an eye catching background with 2 transition states, variable speed, left-right and top-down directions.
     38
     39Inline Widgets Feature
     40Make it super easy to create sideways horizontal layouts that flow naturally in their grid cell. The feature add a check box to  grid cells that allow widgets to flow inline instead of downwards that are easy to work with than triditional columns.
     41
     42Before & After Widget
     43Is a great way to show the difference between two images. Supports custom labels, and offsets with horizontal and vertical comparison modes, selectable image sizes and custom text labels.
     44
     45Dynamic Link Widget
     46Create dynamic lists of links based on a SiteOrigin posts query. Display links inline, as blocks or any other way by adding CSS classes. With Prime you can customise the text for the links.
     47
     48JS & CSS Loader Widget
     49The JS & CSS widget loads files into your website on a per page basis. Add the widget to the footer or header to load the files on every page. You can load from remote URLs like CDNJS or from a URL relative to your websites child or parent theme. You can load from either or all of the locations and load as many files as you need.
Note: See TracChangeset for help on using the changeset viewer.