WordPress.org

Plugin Directory

Changeset 1494241


Ignore:
Timestamp:
09/11/16 22:13:41 (15 months ago)
Author:
themeblvd
Message:

1.1.4

Location:
portfolios
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • portfolios/trunk/readme.txt

    r1121693 r1494241  
    33Contributors: themeblvd 
    44Tags: bundle, Theme Blvd, themeblvd, Jason Bobich, portfolios 
    5 Stable Tag: 1.1.3 
     5Stable Tag: 1.1.4 
    66 
    77Adds a "Portfolio Item" custom post type with associated "Portfolio" and "Porfolio Tag" taxonomies. 
     
    106106== Changelog == 
    107107 
    108 = 1.1.3 = 
     108= 1.1.4 - 09/11/2016 = 
     109 
     110* Improvement: Apply archive post display option to portfolio item archives, opposed to just portfolio and portfolio tag taxonomy archives. 
     111 
     112= 1.1.3 - 02/10/2015 = 
    109113 
    110114* Changed default value for "Portfolio Info Boxes" option. 
    111115* Added Banner functionality to portfolio items (for framework 2.5+ themes). 
    112116 
    113 = 1.1.2 = 
     117= 1.1.2 - 12/16/2014 = 
    114118 
    115119* Fixed filters applied to registering the taxonomies. 
     
    117121* Added more code examples to [FAQ](https://wordpress.org/plugins/portfolios/faq/) on using these filters. 
    118122 
    119 = 1.1.1 = 
     123= 1.1.1 - 12/15/2014 = 
    120124 
    121125* Fixed Theme Blvd integration hook, from last update. 
    122126* Fixed post meta integration (for framework 2.4 themes). 
    123127 
    124 = 1.1.0 = 
     128= 1.1.0 - 12/13/2014 = 
    125129 
    126130* List associated portfolios at the bottom of the portfolio item post (for framework 2.5+ themes). 
     
    130134* GlotPress compatibility (for 2015 wordpress.org release). 
    131135 
    132 = 1.0.1 = 
     136= 1.0.1 - 07/21/2014 = 
    133137 
    134138* Fixed PHP warning on Portfolio Items breadcrumb trail when no portfolio is selected. 
    135139 
    136 = 1.0.0 = 
     140= 1.0.0 - 08/01/2013 = 
    137141 
    138142* This is the first release. 
  • portfolios/trunk/tb-portfolios.php

    r1121693 r1494241  
    33Plugin Name: Portfolios 
    44Description: Extend the Post Grid system in your Theme Blvd theme to a Portfolio custom post type. 
    5 Version: 1.1.3 
     5Version: 1.1.4 
    66Author: Theme Blvd 
    77Author URI: http://themeblvd.com 
     
    2626*/ 
    2727 
    28 define( 'TB_PORTFOLIOS_PLUGIN_VERSION', '1.1.3' ); 
     28define( 'TB_PORTFOLIOS_PLUGIN_VERSION', '1.1.4' ); 
    2929define( 'TB_PORTFOLIOS_PLUGIN_DIR', dirname( __FILE__ ) ); 
    3030define( 'TB_PORTFOLIOS_PLUGIN_URI', plugins_url( '' , __FILE__ ) ); 
     
    127127            'menu_position'         => null, 
    128128            'supports'              => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ), 
    129             'taxonomies'            => array( 'tb_portfolio', 'tb_portfolio_tag' ) 
     129            'taxonomies'            => array( 'portfolio', 'portfolio_tag' ) 
    130130        )); 
    131131 
     
    227227 
    228228        // add_filter( 'themeblvd_locals', array( $this, 'locals' ) ); 
    229         add_action( 'themeblvd_sub_meta_items', array( $this, 'sub_meta'), 11 ); // requires framework 2.5+ 
    230229        add_filter( 'themeblvd_pre_breadcrumb_parts', array( $this, 'breadcrumbs' ), 10, 2 ); 
    231230        add_filter( 'the_tags', array( $this, 'tags' ), 10, 4 ); 
     
    534533                $new_options['portfolio_mode'] = array( 
    535534                    'name'      => __('Post Display', 'portfolios'), 
    536                     'desc'      => __('When viewing a portfolio or portfolio tag archive, how do you want the posts displayed?', 'portfolios'), 
     535                    'desc'      => __('When viewing a portfolio item, portfolio, or portfolio tag archive, how do you want the posts displayed?', 'portfolios'), 
    537536                    'id'        => 'portfolio_mode', 
    538537                    'std'       => 'showcase', 
     
    601600    public function archive_mode( $mode, $q ) { 
    602601 
    603         if ( $q->is_tax('portfolio') || $q->is_tax('portfolio_tag') ) { 
     602        if ( $q->is_post_type_archive('portfolio_item') || $q->is_tax('portfolio') || $q->is_tax('portfolio_tag') ) { 
    604603 
    605604            $mode = themeblvd_get_option('portfolio_mode', null, 'showcase'); 
    606605 
    607606            if ( ! $mode || $mode == 'default' ) { 
    608                 $mode = themeblvd_get_option( 'archive_mode', null, 'blog' ); 
     607                $mode = themeblvd_get_option('archive_mode', null, 'blog'); 
    609608            } 
    610609 
Note: See TracChangeset for help on using the changeset viewer.