Changeset 1671756
- Timestamp:
- 06/06/2017 12:17:06 PM (9 years ago)
- Location:
- genesis-connect-for-woothemes-sensei/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
genesis-connect-for-woothemes-sensei.php (modified) (6 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
genesis-connect-for-woothemes-sensei/trunk/README.md
r1264530 r1671756 1 1 # Genesis Connect for Woothemes Sensei 2 Plugin wrapper to easily integrate the Woothemes Sensei plugin with the Genesis Framework.3 2 4 The code for the integration is taken from https://support.woothemes.com/hc/en-us/articles/204428855-StudioPress-Genesis. 3 Contributors: christophherr 4 Donate link: https://www.christophherr.com/donate/ 5 Tags: woothemes sensei, woothemes, genesis, genesis connect, studiopress 6 Requires at least: 4.1 7 Tested up to: 4.8 8 Stable tag: 1.1.1 9 License: GPL-2.0+ 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt 11 12 This plugin integrates the Genesis Framework from Studiopress with the Woothemes Sensei plugin. 13 14 ## Description 15 16 The base for this plugin is code taken from [WooThemes Support](https://support.woothemes.com/hc/en-us/articles/204428855-StudioPress-Genesis). 17 18 You will need the [WooThemes Sensei](https://woocommerce.com/products/sensei/) plugin and the [Genesis Framework from Studiopress](https://www.studiopress.com) and/or one of its child themes. 5 19 6 20 In other words, if you are not trying to integrate the Woothemes Sensei plugin with the Genesis Framework and/or one of its child themes, this plugin is pretty much useless for you... 7 21 8 This plugin will only work (i.e. activate) with the Genesis Framework and its child themes. 22 This plugin will only work (i.e. activate) if the Genesis Framework and its child themes and Woothemes Sensei are activated. 23 24 Version 1.1.0 forces a content-sidebar layout on course, lesson and question posts to avoid the sidebar showing underneath the main content. 25 26 To change this new feature, you have to use a remove_action on the code the plugin is adding. 27 Add <code>remove_action( 'genesis_meta', 'gcfws_force_content_sidebar_layout' );</code> to your functions.php. 28 If you want to use a different layout, the [Studiopress Snippets](https://my.studiopress.com/snippets/admin-management/) should help to get you started. 29 30 ## Installation 31 32 1. Upload the entire `Genesis-Connect-for-Woothemes-Sensei` folder to your `/wp-content/plugins` directory. 33 2. Activate the plugin through the 'Plugins' menu in WordPress. 34 35 Alternatively, you can 36 37 1. Click on 'Add new' in the 'Plugins' menu 38 2. Type (or copy and paste) the name of this plugin into the search box 39 3. Click on 'Install Now' 40 41 ## Frequently Asked Questions 42 43 ### Does this work with any WordPress theme? 44 45 No. This plugin only works with the Genesis Framework and its child themes. 46 47 ### Does this work with any Genesis child theme? 48 49 Yes and no. Technically, it does. 50 However, depending on other factors such as the individual theme's styling and layout, the output may be unexpected, and require some tweaking. 51 52 Case in point, if the full-width layout is selected in the Genesis settings, lessons, course and question posts are showing a sidebar underneath the main content. 53 That´s why a content-sidebar layout is forced on single course, lesson and questions posts since version 1.1.0. 54 To remove this behaviour, add <code>remove_action( 'genesis_meta', 'gcfws_force_content_sidebar_layout' );</code> to your functions.php. 55 56 ### Are there any settings? 57 58 No. You simply activate the plugin and the necessary wrappers are inserted into your Genesis child theme. 59 60 ### How can I change how the plugin works? 61 62 There are no settings and no settings screen. You would have to change the code directly in the source. 63 64 ## Changelog 65 66 ### 1.1.1 67 68 * Better Code Standards. 69 * Removes unnecessary code. 70 * Updates Readme Urls. 71 72 ### 1.1.0 73 74 * Adds check to only activate if Woothemes Sensei is already active. 75 * Forces a content-sidebar layout on single course, lesson and question posts. 76 To change this behaviour add <code>remove_action( 'genesis_meta', 'gcfws_force_content_sidebar_layout' );</code> to your functions.php. 77 * After Woothemes Sensei changed their code base dramatically in the 1.9 update, 78 the previous method of removing the sensei wrappers started to throw error messages. 79 This update introduces a version check to use the appropriate array for removing the sensei wrappers. 80 81 ### 1.0.3 82 83 * Corrected oversight in the original code. First closing tag should be `</main>` instead of `</div>` 84 see: [Cobalt Apps Forum] (http://cobaltapps.com/forum/forum/main-category/main-forum/81542-woo-sensei?p=82210#post82210) 85 86 ### 1.0.2 87 88 * POT file added 89 90 ### 1.0.1 91 92 * Loading textdomain for i18n 93 94 ### 1.0 95 96 * Initial release on Github 97 98 ## Upgrade Notice 99 100 ### 1.1.1 101 102 This version removes unnecessary code, follows WordPress Coding Standards better and updates links in the readme. 103 104 ### 1.1.0 105 106 This version adds a version check for Woothemes Sensei to use the appropriate array when removing the standard Sensei wrappers. 107 Version 1.1.0 also forces a content-sidebar layout on single course, lesston and question posts to avoid the sidebar showing underneath the main content. 108 Please refer to the readme.txt if you want to remove this feature. 109 Woothemes Sensei has to be already active before the plugin will activate. 110 111 ### 1.0.3 112 113 This version corrects an oversight in the original code 114 that caused issues with Cobalt Apps' Dynamik theme. 115 116 ### 1.0.2 117 118 This version adds a POT file for translations. 119 120 ### 1.0.1 121 122 This version loads the textdomain to enable translations. -
genesis-connect-for-woothemes-sensei/trunk/genesis-connect-for-woothemes-sensei.php
r1369562 r1671756 6 6 * Author: Christoph Herr 7 7 * Author URI: http://www.christophherr.com 8 * Version: 1.1. 08 * Version: 1.1.1 9 9 * Text Domain: genesis-connect-for-woothemes-sensei 10 10 * Domain Path: /languages … … 14 14 * @package GenesisConnectforWoothemesSensei 15 15 * @author Christoph Herr 16 * @version 1.1. 016 * @version 1.1.1 17 17 * @license GPL-2.0+ 18 18 * … … 47 47 deactivate_plugins( plugin_basename( __FILE__ ) ); 48 48 add_action( 'admin_notices', 'gcfws_admin_notice_message' ); 49 }50 if ( ! class_exists( ('Sensei_Main' ) || ( 'WooThemes_Sensei' ) ) ) {51 // Deactivate.52 deactivate_plugins( plugin_basename( __FILE__ ) );53 add_action( 'admin_notices', 'gcfws_admin_notice_message_sensei' );54 49 } 55 50 } … … 90 85 91 86 /** 92 * Error message if you're not using Woothemes Sensei.93 *94 * @since 1.195 */96 function gcfws_admin_notice_message_sensei() {97 $error = sprintf( _e( 'Sorry, you can\'t use the Genesis Connect for Woothemes Sensei Plugin unless the <a href="%s">Sensei Plugin</a> is active. The plugin has been deactivated.', 'gcfws' ), 'http://senseilms.com' );98 99 echo '<div class="error"><p>' . $error . '</p></div>';100 101 if ( isset( $_GET['activate'] ) ) {102 unset( $_GET['activate'] );103 }104 }105 106 /**107 87 * Load plugin textdomain. 108 88 * … … 129 109 /** 130 110 * Force content-sidebar layout on Woothemes Sensei Course, Lesson and Question pages. 111 * 131 112 * @since 1.1 132 113 */ … … 143 124 * Checks which version of Woothemes Sensei is running 144 125 * and removes the wrappers accordingly. 126 * 145 127 * @since 1.1 146 128 */ -
genesis-connect-for-woothemes-sensei/trunk/readme.txt
r1369608 r1671756 5 5 Tags: woothemes sensei, woothemes, genesis, genesis connect, studiopress 6 6 Requires at least: 4.1 7 Tested up to: 4. 58 Stable tag: 1.1. 07 Tested up to: 4.8 8 Stable tag: 1.1.1 9 9 License: GPL-2.0+ 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 16 16 The base for this plugin is code taken from [WooThemes Support](https://support.woothemes.com/hc/en-us/articles/204428855-StudioPress-Genesis). 17 17 18 You will need the [WooThemes Sensei](http ://www.woothemes.com/products/sensei/) plugin and the [Genesis Framework from Studiopress](http://www.studiopress.com) and/or one of its child themes.18 You will need the [WooThemes Sensei](https://woocommerce.com/products/sensei/) plugin and the [Genesis Framework from Studiopress](https://www.studiopress.com) and/or one of its child themes. 19 19 20 20 In other words, if you are not trying to integrate the Woothemes Sensei plugin with the Genesis Framework and/or one of its child themes, this plugin is pretty much useless for you... … … 26 26 To change this new feature, you have to use a remove_action on the code the plugin is adding. 27 27 Add <code>remove_action( 'genesis_meta', 'gcfws_force_content_sidebar_layout' );</code> to your functions.php. 28 If you want to use a different layout, the [Studiopress Snippets](https://my.studiopress.com/snippets/admin-management/) should help to get you started. 28 If you want to use a different layout, the [Studiopress Snippets](https://my.studiopress.com/snippets/admin-management/) should help to get you started. 29 29 30 30 == Installation == … … 63 63 == Changelog == 64 64 65 = 1.1.1 = 66 67 * Better Code Standards. 68 * Removes unnecessary code. 69 * Updates Readme Urls. 70 65 71 = 1.1.0 = 66 72 67 73 * Adds check to only activate if Woothemes Sensei is already active. 68 * Forces a content-sidebar layout on single course, lesson and question posts. 74 * Forces a content-sidebar layout on single course, lesson and question posts. 69 75 To change this behaviour add <code>remove_action( 'genesis_meta', 'gcfws_force_content_sidebar_layout' );</code> to your functions.php. 70 * After Woothemes Sensei changed their code base dramatically in the 1.9 update, 76 * After Woothemes Sensei changed their code base dramatically in the 1.9 update, 71 77 the previous method of removing the sensei wrappers started to throw error messages. 72 78 This update introduces a version check to use the appropriate array for removing the sensei wrappers. 73 74 79 75 80 = 1.0.3 = … … 92 97 == Upgrade Notice == 93 98 94 = 1.1.0 = 99 = 1.1.1 = 100 101 This version removes unnecessary code, follows WordPress Coding Standards better and updates links in the Readme. 102 103 = 1.1.0 = 104 95 105 This version adds a version check for Woothemes Sensei to use the appropriate array when removing the standard Sensei wrappers. 96 Version 1.1.0 also forces a content-sidebar layout on single course, lesston and question posts to avoid the sidebar showing underneath the main content. 106 Version 1.1.0 also forces a content-sidebar layout on single course, lesston and question posts to avoid the sidebar showing underneath the main content. 97 107 Please refer to the readme.txt if you want to remove this feature. 98 108 Woothemes Sensei has to be already active before the plugin will activate.
Note: See TracChangeset
for help on using the changeset viewer.