Plugin Directory

Changeset 704341


Ignore:
Timestamp:
04/26/2013 05:42:26 PM (13 years ago)
Author:
CobaltApps
Message:

Updated to 1.0.1, updating the bbPress specific styles to accommodate changes made in the latest version of bbPress.

Location:
catalyst-connect/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • catalyst-connect/trunk/catalyst-connect.php

    r592625 r704341  
    11<?php
    22/**
    3  * Catalyst Connect is a simple plugin that allows you to add Twitter Bootstrap functionality to you site.
     3 * Catalyst Connect is a simple plugin that makes integrating the BuddyPress, BBPress and WooCommerce Plugins with Catalyst a breeze.
    44 *
    55 * @author The Catalyst Team <info@catalysttheme.com>
    6  * @version 1.0
     6 * @version 1.0.1
    77 * @package catalyst-connect
    88 */
     
    1212    Plugin URI:   http://catalysttheme.com/plugins/catalyst-connect/
    1313    Description:  Catalyst Connect is a simple, yet powerful Plugin that makes integrating the BuddyPress, BBPress and WooCommerce Plugins with Catalyst a breeze.
    14     Version:      1.0
     14    Version:      1.0.1
    1515    Author:       The Catalyst Team
    1616    Author URI:   http://catalysttheme.com
     
    2121
    2222define( 'CATALYSTCONNECT_OPTIONS_NAME', 'catalyst_connect' );
    23 define( 'CATALYSTCONNECT_VERSION', '1.0' );
     23define( 'CATALYSTCONNECT_VERSION', '1.0.1' );
    2424define( 'CATALYSTCONNECT_MIN_WP_VERSION', '3.0' );
    2525
  • catalyst-connect/trunk/inc/admin.php

    r592625 r704341  
    5151    function validate_options($options) {
    5252        // see http://codex.wordpress.org/Data_Validation for more info
    53         $options['post_text'] = $options['post_text'] ;
    54         $options['add_to_all'] = wp_filter_nohtml_kses( $options['add_to_all'] );
    55         $options['text_position'] = wp_filter_nohtml_kses( $options['text_position'] );
     53        $options['disable_buddypress_connect_css'] = $options['disable_buddypress_connect_css'];
     54        $options['disable_buddypress_connect'] = $options['disable_buddypress_connect'];
     55        $options['disable_bbpress_connect_css'] = $options['disable_bbpress_connect_css'];
     56        $options['disable_bbpress_connect'] = $options['disable_bbpress_connect'];
     57        $options['woocommerce_breadcrumbs'] = $options['woocommerce_breadcrumbs'];
     58        $options['disable_woocommerce_connect_css'] = $options['disable_woocommerce_connect_css'];
     59        $options['disable_woocommerce_connect'] = $options['disable_woocommerce_connect'];
    5660        return $options;
    5761    }
  • catalyst-connect/trunk/inc/frontend.php

    r592625 r704341  
    1616
    1717        if ( class_exists( 'BuddyPress' ) && ! $this->get_option('disable_buddypress_connect') ) {
    18             add_action( 'wp', 'catalyst_connnect_buddypress_actions' );
     18            add_action( 'wp', 'catalyst_connect_buddypress_actions' );
    1919
    2020            if ( ! $this->get_option('disable_buddypress_connect_css') ) {
    2121                // Add Catalyst/BuddyPress Custom CSS code
    22                 add_action( 'wp_head', 'catalyst_connnect_buddypress_custom_css' );
     22                add_action( 'wp_head', 'catalyst_connect_buddypress_custom_css' );
    2323            }
    2424        }
     
    2626         * Add/Remove Action certain elements to make Catalyst more compatible with BuddyPress
    2727         */
    28         function catalyst_connnect_buddypress_actions() {
     28        function catalyst_connect_buddypress_actions() {
    2929            // Re-position the Catalyst Custom Layout globals so they still take effect when BuddyPress is active
    3030            remove_action( 'wp','catalyst_layout_globals' );
     
    3939
    4040            // Wrap the BuddyPress "primary" Div ID around the Catalyst "content-wrap" div
    41             add_action( 'catalyst_hook_before_content_wrap', 'catalyst_connnect_buddypress_open_primary' );
    42             add_action( 'catalyst_hook_after_content_wrap', 'catalyst_connnect_buddypress_close_primary' );
     41            add_action( 'catalyst_hook_before_content_wrap', 'catalyst_connect_buddypress_open_primary' );
     42            add_action( 'catalyst_hook_after_content_wrap', 'catalyst_connect_buddypress_close_primary' );
    4343        }
    4444
     
    4646         * Echo Custom CSS to address some Catalyst/BuddyPress styling issues
    4747         */
    48         function catalyst_connnect_buddypress_custom_css() {
     48        function catalyst_connect_buddypress_custom_css() {
    4949echo "\n" . '<!-- Begin Catalyst/BuddyPress Custom CSS -->' . "\n";
    5050echo '<style type="text/css">' . "\n";
     
    5757         * Echo opening BuddyPress "primary" div ID
    5858         */
    59         function catalyst_connnect_buddypress_open_primary() {
     59        function catalyst_connect_buddypress_open_primary() {
    6060            echo '<div id="primary">' . "\n";
    6161        }
     
    6464         * Echo closing BuddyPress "primary" div ID
    6565         */
    66         function catalyst_connnect_buddypress_close_primary() {
     66        function catalyst_connect_buddypress_close_primary() {
    6767            echo '</div><!-- end #primary -->' . "\n";
    6868        }
    6969       
    7070        if ( class_exists( 'bbPress' ) && ! $this->get_option('disable_bbpress_connect') ) {
    71             add_action( 'wp', 'catalyst_connnect_bbpress_actions' );
     71            add_action( 'wp', 'catalyst_connect_bbpress_actions' );
    7272
    7373            if ( ! $this->get_option('disable_bbpress_connect_css') ) {
    7474                // Add Catalyst/BBPress Custom CSS code
    75                 add_action( 'wp_head', 'catalyst_connnect_bbpress_custom_css' );
     75                add_action( 'wp_head', 'catalyst_connect_bbpress_custom_css' );
    7676            }
    7777        }
     
    7979         * Remove common Catalyst post elements that don't quite fit in the BBPress pages
    8080         */
    81         function catalyst_connnect_bbpress_actions() {
     81        function catalyst_connect_bbpress_actions() {
    8282            if ( is_bbpress() ) {
    8383                remove_action( 'catalyst_hook_before_loop', 'catalyst_build_breadcrumbs' );
     
    9191         * Echo Custom CSS to address some Catalyst/BBPress styling issues
    9292         */
    93         function catalyst_connnect_bbpress_custom_css() {
     93        function catalyst_connect_bbpress_custom_css() {
    9494echo "\n" . '<!-- Begin Catalyst/BBPress Custom CSS -->' . "\n";
    9595echo '<style type="text/css">' . "\n";
    96 echo '.bbPress #content article p { padding: 0; } .bbPress #content article ul li p { padding: 0 0 20px; } .bbPress #content article ul { padding: 0; } .bbPress #content article ul li { margin: 0; list-style: none; } .bbPress .post-format-icon { display: none; }' . "\n";
     96echo '.bbPress #content article p, .bbpress #content article p { padding: 0; } .bbPress #content article ul li p, .bbpress #content article ul li p { padding: 0 0 20px; } .bbPress #content article ul, .bbpress #content article ul { padding: 0; } .bbPress #content article ul li, .bbpress #content article ul li { margin: 0; list-style: none; } .bbPress .post-format-icon, .bbpress .post-format-icon { display: none; }' . "\n";
    9797echo '</style>' . "\n";
    9898echo '<!-- End Catalyst/BBPress Custom CSS -->' . "\n\n";
     
    100100       
    101101        if ( class_exists( 'Woocommerce' ) && ! $this->get_option('disable_woocommerce_connect') ) {
    102             add_action( 'wp', 'catalyst_connnect_woocommerce_actions' );
     102            add_action( 'wp', 'catalyst_connect_woocommerce_actions' );
    103103
    104104            if ( $this->get_option('woocommerce_breadcrumbs') == 'cat' ) {
     
    233233            if ( ! $this->get_option('disable_woocommerce_connect_css') ) {
    234234                // Add Catalyst/WooCommerce Custom CSS code
    235                 add_action( 'wp_head', 'catalyst_connnect_woocommerce_custom_css' );
     235                add_action( 'wp_head', 'catalyst_connect_woocommerce_custom_css' );
    236236            }
    237237        }
     
    239239         * Add/Remove Action certain elements to make Catalyst more compatible with WooCommerce
    240240         */
    241         function catalyst_connnect_woocommerce_actions() {
     241        function catalyst_connect_woocommerce_actions() {
    242242            // Remove WooCommerce content wrappers.
    243243            remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
     
    271271         * Echo Custom CSS to address some Catalyst/WooCommerce styling issues
    272272         */
    273         function catalyst_connnect_woocommerce_custom_css() {
     273        function catalyst_connect_woocommerce_custom_css() {
    274274echo "\n" . '<!-- Begin Catalyst/WooCommerce Custom CSS -->' . "\n";
    275275echo '<style type="text/css">' . "\n";
     
    285285    function load_frontend_custom() {
    286286        if( !empty($this->frontend_css) ) {
    287             $this->load_admin_css();           
     287            $this->load_frontend_css();         
    288288        }
    289289       
    290290        if( !empty($this->frontend_js) ) {
    291             $this->load_admin_scripts();
     291            $this->load_frontend_scripts();
    292292        }
    293293    }
  • catalyst-connect/trunk/readme.txt

    r592776 r704341  
    33Tags: catalyst, catalystwp, dynamik, cobaltapps, buddypress, bbpress, woocommerce
    44Requires at least: 3.0
    5 Tested up to: 3.4.1
    6 Stable tag: 1.0
     5Tested up to: 3.5.1
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6565
    66661.0 Initial release
     67
     681.0.1 Updated bbPress specific styles to work with the latest bbPress release
Note: See TracChangeset for help on using the changeset viewer.