Plugin Directory

Changeset 1671756


Ignore:
Timestamp:
06/06/2017 12:17:06 PM (9 years ago)
Author:
christophherr
Message:

Tested up-to 4.8, better Coding Standards, updated links in readme, removed broken conditional

Location:
genesis-connect-for-woothemes-sensei/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • genesis-connect-for-woothemes-sensei/trunk/README.md

    r1264530 r1671756  
    11# Genesis Connect for Woothemes Sensei
    2 Plugin wrapper to easily integrate the Woothemes Sensei plugin with the Genesis Framework.
    32
    4 The code for the integration is taken from https://support.woothemes.com/hc/en-us/articles/204428855-StudioPress-Genesis.
     3Contributors: christophherr 
     4Donate link: https://www.christophherr.com/donate/ 
     5Tags: woothemes sensei, woothemes, genesis, genesis connect, studiopress 
     6Requires at least: 4.1 
     7Tested up to: 4.8 
     8Stable tag: 1.1.1 
     9License: GPL-2.0+ 
     10License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     11
     12This plugin integrates the Genesis Framework from Studiopress with the Woothemes Sensei plugin.
     13
     14## Description
     15
     16The base for this plugin is code taken from [WooThemes Support](https://support.woothemes.com/hc/en-us/articles/204428855-StudioPress-Genesis).
     17
     18You 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.
    519
    620In 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...
    721
    8 This plugin will only work (i.e. activate) with the Genesis Framework and its child themes.
     22This plugin will only work (i.e. activate) if the Genesis Framework and its child themes and Woothemes Sensei are activated.
     23
     24Version 1.1.0 forces a content-sidebar layout on course, lesson and question posts to avoid the sidebar showing underneath the main content.
     25
     26To change this new feature, you have to use a remove_action on the code the plugin is adding.
     27Add <code>remove_action( 'genesis_meta', 'gcfws_force_content_sidebar_layout' );</code> to your functions.php.
     28If 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
     321. Upload the entire `Genesis-Connect-for-Woothemes-Sensei` folder to your `/wp-content/plugins` directory.
     332. Activate the plugin through the 'Plugins' menu in WordPress.
     34
     35Alternatively, you can
     36
     371. Click on 'Add new' in the 'Plugins' menu
     382. Type (or copy and paste) the name of this plugin into the search box
     393. Click on 'Install Now'
     40
     41## Frequently Asked Questions
     42
     43### Does this work with any WordPress theme?
     44
     45No. This plugin only works with the Genesis Framework and its child themes.
     46
     47### Does this work with any Genesis child theme?
     48
     49Yes and no. Technically, it does.
     50However, depending on other factors such as the individual theme's styling and layout, the output may be unexpected, and require some tweaking.
     51
     52Case 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.
     53That´s why a content-sidebar layout is forced on single course, lesson and questions posts since version 1.1.0.
     54To 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
     58No. 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
     62There 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>`
     84see: [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
     102This version removes unnecessary code, follows WordPress Coding Standards better and updates links in the readme.
     103
     104### 1.1.0
     105
     106This version adds a version check for Woothemes Sensei to use the appropriate array when removing the standard Sensei wrappers. 
     107Version 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. 
     108Please refer to the readme.txt if you want to remove this feature. 
     109Woothemes Sensei has to be already active before the plugin will activate.
     110
     111### 1.0.3
     112
     113This version corrects an oversight in the original code
     114that caused issues with Cobalt Apps' Dynamik theme.
     115
     116### 1.0.2
     117
     118This version adds a POT file for translations.
     119
     120### 1.0.1
     121
     122This version loads the textdomain to enable translations.
  • genesis-connect-for-woothemes-sensei/trunk/genesis-connect-for-woothemes-sensei.php

    r1369562 r1671756  
    66 * Author:      Christoph Herr
    77 * Author URI:  http://www.christophherr.com
    8  * Version:     1.1.0
     8 * Version:     1.1.1
    99 * Text Domain: genesis-connect-for-woothemes-sensei
    1010 * Domain Path: /languages
     
    1414 * @package   GenesisConnectforWoothemesSensei
    1515 * @author    Christoph Herr
    16  * @version   1.1.0
     16 * @version   1.1.1
    1717 * @license   GPL-2.0+
    1818 *
     
    4747        deactivate_plugins( plugin_basename( __FILE__ ) );
    4848        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' );
    5449    }
    5550}
     
    9085
    9186/**
    92  * Error message if you're not using Woothemes Sensei.
    93  *
    94  * @since 1.1
    95  */
    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 /**
    10787 * Load plugin textdomain.
    10888 *
     
    129109/**
    130110 * Force content-sidebar layout on Woothemes Sensei Course, Lesson and Question pages.
     111 *
    131112 * @since 1.1
    132113 */
     
    143124 * Checks which version of Woothemes Sensei is running
    144125 * and removes the wrappers accordingly.
     126 *
    145127 * @since 1.1
    146128 */
  • genesis-connect-for-woothemes-sensei/trunk/readme.txt

    r1369608 r1671756  
    55Tags: woothemes sensei, woothemes, genesis, genesis connect, studiopress
    66Requires at least: 4.1
    7 Tested up to: 4.5
    8 Stable tag: 1.1.0
     7Tested up to: 4.8
     8Stable tag: 1.1.1
    99License: GPL-2.0+
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    1616The base for this plugin is code taken from [WooThemes Support](https://support.woothemes.com/hc/en-us/articles/204428855-StudioPress-Genesis).
    1717
    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.
     18You 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.
    1919
    2020In 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...
     
    2626To change this new feature, you have to use a remove_action on the code the plugin is adding.
    2727Add <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. 
     28If you want to use a different layout, the [Studiopress Snippets](https://my.studiopress.com/snippets/admin-management/) should help to get you started.
    2929
    3030== Installation ==
     
    6363== Changelog ==
    6464
     65= 1.1.1 =
     66
     67* Better Code Standards.
     68* Removes unnecessary code.
     69* Updates Readme Urls.
     70
    6571= 1.1.0 =
    6672
    6773* 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.
    6975  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,
    7177  the previous method of removing the sensei wrappers started to throw error messages.
    7278  This update introduces a version check to use the appropriate array for removing the sensei wrappers.
    73  
    7479
    7580= 1.0.3 =
     
    9297== Upgrade Notice ==
    9398
    94 = 1.1.0 =
     99= 1.1.1 =
     100
     101This version removes unnecessary code, follows WordPress Coding Standards better and updates links in the Readme.
     102
     103= 1.1.0 =
     104
    95105This 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. 
     106Version 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.
    97107Please refer to the readme.txt if you want to remove this feature.
    98108Woothemes Sensei has to be already active before the plugin will activate.
Note: See TracChangeset for help on using the changeset viewer.