WordPress.org

Plugin Directory

Changeset 577495


Ignore:
Timestamp:
07/26/12 03:56:08 (21 months ago)
Author:
jaredatch
Message:

v 0.8.2 release

Location:
bbpress-genesis-extend/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bbpress-genesis-extend/trunk/bbpress-genesis-extend-settings.php

    r511503 r577495  
    44 * 
    55 * Registers a few bbPress-Genesis specific options on the Genesis Setting page. 
     6 *  
     7 * @package  bbPressGenesisExtend 
     8 * @since    0.8 
    69 */ 
    710class bbpge_settings { 
    811     
    912    /** 
    10      * __construct() 
     13     * construct ALL THE THINGS 
     14     * 
     15     * @since 0.8 
    1116     */ 
    12     function __construct() { 
    13          
     17    function __construct() {     
    1418        // Option default values 
    1519        add_filter( 'genesis_theme_settings_defaults',  array( $this, 'options_defaults'      ) ); 
     
    2327 
    2428    /** 
    25      * options_defaults() 
     29     * Set defaults 
     30     * 
     31     * @since 0.8 
     32     * @param array $defaults 
     33     * @return array new defaults 
    2634     */ 
    2735    function options_defaults( $defaults ) { 
     
    3240 
    3341    /** 
    34      * sanitization_filters() 
     42     * Set sanitizations 
     43     * 
     44     * @since 0.8 
    3545     */ 
    3646    function sanitization_filters() { 
     
    4252 
    4353    /** 
    44      * register_settings_box() 
     54     * Register the settings metabox 
     55     * 
     56     * @since 0.8 
     57     * @param $_genesis_theme_settings_pagehook 
    4558     */ 
    4659    function register_settings_box( $_genesis_theme_settings_pagehook ) { 
     
    4962 
    5063    /** 
    51      * settings_box() 
     64     * Render the settings metabox 
     65     * 
     66     * @since 0.8 
    5267     */ 
    5368    function settings_box() {    
  • bbpress-genesis-extend/trunk/bbpress-genesis-extend.php

    r512709 r577495  
    11<?php 
    22/** 
    3  * Main bbPress Genesis Extender Class 
     3 * Main bbPress Genesis Extend class, this does the heavy lifting 
     4 * 
     5 * @package  bbPressGenesisExtend 
     6 * @since    0.8 
    47 */ 
    58 
    6 // Exit if accessed directly 
    7 if ( !defined( 'ABSPATH' ) ) exit; 
    8  
    99if ( !class_exists( 'BBP_Genesis' ) ) : 
    10 /** 
    11  * Loads Genesis extension 
    12  */ 
     10 
     11// If class doesn't exist (bbP 2.1+), let's roll 
    1312class BBP_Genesis { 
    1413 
     
    1817     * The main bbPress Genesis loader 
    1918     * 
    20      * @uses BBP_Genesis::setup_actions() 
     19     * @since 0.8 
    2120     */ 
    2221    public function __construct() { 
     
    2726     * Setup the Genesis actions 
    2827     * 
    29      * @uses add_action() To add 'the_content' back 
     28     * @since 0.8 
    3029     */ 
    3130    private function setup_actions() { 
     
    3433        $this->register_genesis_forum_sidebar(); 
    3534 
    36         /** 
    37          * We hook into 'genesis_before' because it is the most reliable hook 
    38          * available to bbPress in the Genesis page load process. 
    39          */ 
     35        // We hook into 'genesis_before' because it is the most reliable hook 
     36        // available to bbPress in the Genesis page load process. 
    4037        add_action( 'genesis_before',           array( $this, 'genesis_post_actions'        ) ); 
    4138        add_action( 'genesis_before',           array( $this, 'check_genesis_forum_sidebar' ) ); 
     
    4643        // Add Layout and SEO options to Forums 
    4744        add_post_type_support( 'forum', 'genesis-layouts' ); 
    48         add_post_type_support( 'forum', 'genesis-seo' ); 
     45        add_post_type_support( 'forum', 'genesis-seo'     ); 
     46 
    4947    } 
    5048 
     
    5351     * 
    5452     * @access private 
    55      * 
    56      * @uses remove_action() To remove various Genesis actions 
    57      * @uses add_filter() To add a filter for fuss-width mode 
    58      * @uses add_action() To add 'the_content' back 
     53     * @since 0.8 
    5954     */ 
    6055    public function genesis_post_actions() { 
     
    122117    /** 
    123118     * Register forum specific sidebar if enabled 
     119     * 
     120     * @since 0.8 
    124121     */ 
    125122    public function register_genesis_forum_sidebar() { 
     123 
    126124        if ( genesis_get_option( 'bbp_forum_sidebar' ) ) { 
    127125            genesis_register_sidebar( array(  
    128                 'id'            => 'sidebar-genesis-bbpress',  
    129                 'name'          => __( 'Forum Sidebar', 'bbpress-genesis-extend' ),  
    130                 'description'   => __( 'This is the primary sidebar used on the forums.', 'bbpress-genesis-extend' ) 
     126                'id'          => 'sidebar-genesis-bbpress',  
     127                'name'        => __( 'Forum Sidebar', 'bbpress-genesis-extend' ),  
     128                'description' => __( 'This is the primary sidebar used on the forums.', 'bbpress-genesis-extend' ) 
    131129                 )  
    132130            ); 
    133131        } 
     132 
    134133    } 
    135134     
    136135    /** 
    137136     * Setup forum specific sidebar on bbPress pages if enabled 
     137     * 
     138     * @since 0.8 
    138139     */ 
    139140    public function check_genesis_forum_sidebar() { 
     
    144145            remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); 
    145146             
    146             // If Genesis Simple Sidebar plugin is in place, we remove that too 
    147             // otherwise stuff explodes. 
    148             remove_action( 'genesis_sidebar', 'ss_do_sidebar_custom' ); 
     147            // If Genesis Simple Sidebar plugin is in place, nuke it 
     148            remove_action( 'genesis_sidebar', 'ss_do_sidebar'      ); 
    149149             
    150150            // Load up the Genisis-bbPress sidebar 
    151151            add_action( 'genesis_sidebar', array( $this, 'load_genesis_forum_sidebar' ) ); 
    152152        }    
     153 
    153154    } 
    154155     
    155156    /** 
    156157     * Loads the forum specific sidebar 
     158     * 
     159     * @since 0.8 
    157160     */ 
    158161    public function load_genesis_forum_sidebar() { 
     
    169172            echo '</div></div>'; 
    170173        } 
     174 
    171175    } 
    172176     
     
    187191        // Set some defaults 
    188192        $forum_id = bbp_get_forum_id( $forum_id ); 
    189         $retval   = genesis_get_option( 'site_layout', null, false ); 
     193        // For some reason, if we use the cached version, weird things seem to happen. 
     194        // This needs more investigation, for now we pass false as a work around. 
     195        $retval   = genesis_get_option( 'site_layout', null, false );  
    190196        $parent   = false; 
    191197 
     
    206212        // Filter the return value 
    207213        return apply_filters( 'bbp_genesis_layout', $retval, $forum_id, $parent ); 
     214 
    208215    } 
    209216     
     
    213220/** 
    214221 * Loads Genesis helper inside bbPress global class 
     222 * 
     223 * @since 0.8 
    215224 */ 
    216225function bbpge_setup() { 
    217  
    218226    // Instantiate Genesis for bbPress 
    219227    new BBP_Genesis(); 
  • bbpress-genesis-extend/trunk/init.php

    r512709 r577495  
    11<?php 
    2 /* 
    3 Plugin Name: bbPress Genesis Extend 
    4 Plugin URI: http://jaredatchison.com/ 
    5 Description: Provides basic compaitibility between bbPress and the Genesis Framework. 
    6 Version: 0.8.1 
    7 Author: Jared Atchison 
    8 Author URI: http://jaredatchison.com  
    9 */ 
    10  
    112/** 
     3 * Plugin Name: bbPress Genesis Extend 
     4 * Plugin URI: http://wordpress.org/extend/plugins/bbpress-genesis-extend/ 
     5 * Description: Provides basic compaitibility between bbPress and the <a href="http://jaredatchison.com/go/genesis/">Genesis Framework</a>. 
     6 * Version: 0.8.2 
     7 * Author: Jared Atchison 
     8 * Author URI: http://www.jaredatchison.com  
     9 * 
    1210 * This program is free software; you can redistribute it and/or modify 
    1311 * it under the terms of the GNU General Public License as published by 
     
    2018 * GNU General Public License for more details. 
    2119 * 
    22  * @version 0.8.1 
    23  * @author Jared Atchison 
    24  * @copyright Copyright (c) 2012, Jared Atchison 
    25  * @link http://jaredatchison.com 
    26  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     20 * @author     Jared Atchison 
     21 * @version    0.8.2 
     22 * @package    bbPressGenesisExtend 
     23 * @copyright  Copyright (c) 2012, Jared Atchison 
     24 * @link       http://jaredatchison.com 
     25 * @license    http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    2726 */ 
    2827 
    2928/** 
    30  * Main bbPress Genesis Extend init class 
     29 * bbPress Genesis Extend init class 
    3130 */ 
    3231class bbpge_init { 
    3332 
    3433    /** 
    35      * __construct() 
    36      * 
    3734     * We hook into bbp_after_setup_theme, this way if bbPress 
    3835     * isn't activated we won't load the plugin. 
     36     * 
     37     * @since 0.8 
    3938     */ 
    4039    function __construct() { 
     
    4342     
    4443    /** 
    45      * genesis_check 
     44     * Check to see if  a Genesis child theme is in place. 
    4645     * 
    47      * Check to see if  a Genesis child theme is in place. 
    48      * If it's not then we won't load the plugin. 
     46     * @since 0.8 
    4947     */ 
    5048    function genesis_check() { 
     
    5553            add_action( 'init', array( $this, 'pe_init' ) ); 
    5654 
    57             // The meat of things 
    58             require_once( dirname( __FILE__ )  . '/bbpress-genesis-extend.php' ); 
    59  
    60             // Register admin settings 
     55            // The meat and gravy 
     56            require_once( dirname( __FILE__ )  . '/bbpress-genesis-extend.php'          ); 
    6157            require_once( dirname( __FILE__ )  . '/bbpress-genesis-extend-settings.php' ); 
    6258 
     
    6864 
    6965    /** 
    70      * pe_init() 
     66     * Load the textdomain so we can support other languages 
    7167     * 
    72      * Make sure to load the textdomain so we can support other languages :) 
     68     * @since 0.8 
    7369     */ 
    7470    function pe_init() { 
  • bbpress-genesis-extend/trunk/readme.txt

    r571136 r577495  
    55Requires at least: 3.3 
    66Tested up to: 3.4.x 
    7 Stable tag: trunk 
     7Stable tag: 0.8.2 
    88  
    99Provides basic compatibility with bbPress and the Genesis Framework with a few extra goodies. 
     
    5656== Changelog == 
    5757 
     58= 0.8.2 = 
     59* Fixed compatibility issue with the Genesis Simple Sidebar plugin 
     60* Cleaned up documentation 
     61 
    5862= 0.8.1 = 
    5963* A few CSS tweaks 
Note: See TracChangeset for help on using the changeset viewer.