Changeset 2063345
- Timestamp:
- 04/05/2019 01:32:49 AM (7 years ago)
- Location:
- echelon-so
- Files:
-
- 65 added
- 3 deleted
- 4 edited
-
assets/icon-128x128.png (modified) (previous)
-
assets/icon-256x256.png (modified) (previous)
-
assets/screenshot-1.jpg (deleted)
-
assets/screenshot-2.jpg (deleted)
-
assets/screenshot-3.jpg (deleted)
-
trunk/echelon-so.js (added)
-
trunk/echelon-so.php (modified) (1 diff)
-
trunk/features (added)
-
trunk/features/animate.php (added)
-
trunk/features/animated-gradients.php (added)
-
trunk/features/inc (added)
-
trunk/features/inc/granim.min.js (added)
-
trunk/features/inline-widgets.php (added)
-
trunk/features/waypoints.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widgets (added)
-
trunk/widgets/eso-before-after (added)
-
trunk/widgets/eso-before-after/assets (added)
-
trunk/widgets/eso-before-after/assets/icon-before-after.png (added)
-
trunk/widgets/eso-before-after/eso-before-after.php (added)
-
trunk/widgets/eso-before-after/tpl (added)
-
trunk/widgets/eso-before-after/tpl/tpl.php (added)
-
trunk/widgets/eso-counter (added)
-
trunk/widgets/eso-counter/assets (added)
-
trunk/widgets/eso-counter/assets/icon-counter.png (added)
-
trunk/widgets/eso-counter/eso-counter.php (added)
-
trunk/widgets/eso-counter/tpl (added)
-
trunk/widgets/eso-counter/tpl/tpl.php (added)
-
trunk/widgets/eso-custom-loop (added)
-
trunk/widgets/eso-custom-loop/assets (added)
-
trunk/widgets/eso-custom-loop/assets/icon-custom-loop.png (added)
-
trunk/widgets/eso-custom-loop/eso-custom-loop.php (added)
-
trunk/widgets/eso-custom-loop/tpl (added)
-
trunk/widgets/eso-custom-loop/tpl/tpl.php (added)
-
trunk/widgets/eso-dynamic-link (added)
-
trunk/widgets/eso-dynamic-link/assets (added)
-
trunk/widgets/eso-dynamic-link/assets/icon-dynamic-link.png (added)
-
trunk/widgets/eso-dynamic-link/eso-dynamic-link.php (added)
-
trunk/widgets/eso-dynamic-link/tpl (added)
-
trunk/widgets/eso-dynamic-link/tpl/tpl.php (added)
-
trunk/widgets/eso-js-css (added)
-
trunk/widgets/eso-js-css/assets (added)
-
trunk/widgets/eso-js-css/assets/icon-js-css.png (added)
-
trunk/widgets/eso-js-css/eso-js-css.php (added)
-
trunk/widgets/eso-js-css/tpl (added)
-
trunk/widgets/eso-js-css/tpl/tpl.php (added)
-
trunk/widgets/eso-line-chart (added)
-
trunk/widgets/eso-line-chart/assets (added)
-
trunk/widgets/eso-line-chart/assets/icon-line-chart.png (added)
-
trunk/widgets/eso-line-chart/eso-line-chart.php (added)
-
trunk/widgets/eso-line-chart/tpl (added)
-
trunk/widgets/eso-line-chart/tpl/tpl.php (added)
-
trunk/widgets/eso-reuse-layout (added)
-
trunk/widgets/eso-reuse-layout/assets (added)
-
trunk/widgets/eso-reuse-layout/assets/icon-reuse-layout.png (added)
-
trunk/widgets/eso-reuse-layout/eso-reuse-layout.php (added)
-
trunk/widgets/eso-reuse-layout/tpl (added)
-
trunk/widgets/eso-reuse-layout/tpl/tpl.php (added)
-
trunk/widgets/eso-template-tag (added)
-
trunk/widgets/eso-template-tag/assets (added)
-
trunk/widgets/eso-template-tag/assets/icon-template-tag.png (added)
-
trunk/widgets/eso-template-tag/eso-template-tag.php (added)
-
trunk/widgets/eso-template-tag/tpl (added)
-
trunk/widgets/eso-template-tag/tpl/tpl.php (added)
-
trunk/widgets/eso-typewriter (added)
-
trunk/widgets/eso-typewriter/assets (added)
-
trunk/widgets/eso-typewriter/assets/icon-typewriter.png (added)
-
trunk/widgets/eso-typewriter/eso-typewriter.php (added)
-
trunk/widgets/eso-typewriter/inc (added)
-
trunk/widgets/eso-typewriter/inc/core.js (added)
-
trunk/widgets/eso-typewriter/tpl (added)
-
trunk/widgets/eso-typewriter/tpl/tpl.php (added)
Legend:
- Unmodified
- Added
- Removed
-
echelon-so/trunk/echelon-so.php
r1983790 r2063345 2 2 /* 3 3 Plugin Name: Echelon for SiteOrigin 4 Description: Echelon for SiteOrigin 5 Version: 1.0.1 4 Plugin URI: https://echelonso.com 5 Description: Echelon widgets and features for SiteOrigin Page Builder. 6 Version: 1.0.3 6 7 Author: Echelon 8 Author URI: https://echelonso.com 7 9 License: GPL3 8 10 License URI: https://www.gnu.org/licenses/gpl-3.0.txt 9 11 */ 10 12 11 if (!class_exists('Echelon ForSiteOrigin')) {13 if (!class_exists('EchelonSO')) { 12 14 13 class Echelon ForSiteOrigin{15 class EchelonSO { 14 16 15 17 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() { 16 58 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; 17 166 } 18 167 19 168 } 20 169 21 $ class = new EchelonForSiteOrigin();170 $echelon_so = new EchelonSO(); 22 171 23 172 } -
echelon-so/trunk/readme.txt
r1983790 r2063345 1 === Echelon for SiteOrigin===1 === Echelon SiteOrigin Widgets and Features === 2 2 Contributors: echelonso 3 3 Requires at least: 4.9 4 Tested up to: 4.94 Tested up to: 5.1 5 5 Requires PHP: 7 6 6 Stable tag: trunk … … 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.txt 9 9 10 Echelon for SiteOrigin 10 Additional widgets, features and enhancements for SiteOrigin Page Builder. 11 11 12 12 == Description == 13 13 14 Echelon for SiteOrigin 14 Echelon 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 18 Line Chart Widget 19 Brings 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 21 Animate Feature 22 Adds 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 24 Custom Loop Widget 25 Creating 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 27 Reusable Layouts Feature 28 Reusable 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 30 Typewriter Widget 31 The 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 33 Counter Widget 34 Animate 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 36 Animated Gradients Feature 37 Create 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 39 Inline Widgets Feature 40 Make 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 42 Before & After Widget 43 Is 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 45 Dynamic Link Widget 46 Create 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 48 JS & CSS Loader Widget 49 The 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.