WordPress.org

Plugin Directory

Changeset 1447980


Ignore:
Timestamp:
07/03/16 08:09:03 (15 months ago)
Author:
tallythemes
Message:

Added support to Portfolio, Gallery and People slug change

Location:
tallykit/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • tallykit/trunk/components/gallery/gallery-types.php

    r967527 r1447980  
    11<?php 
     2$tk_options = get_option('tk_settings'); 
     3$tk_gallery_slug = (isset($tk_options['gallsey_slug'])) ? $tk_options['gallsey_slug'] : 'gallery-item'; 
    24/*************************** POST TYPE ************************** 
    35 * 
     
    2931    'args'               => array(), 
    3032    'labels'             => $labels, 
    31     'rewrite'            => array( 'slug' => 'gallery-item' ), 
     33    'rewrite'            => array( 'slug' => $tk_gallery_slug ), 
    3234    'supports'           => array( 'title', 'thumbnail'), 
    3335    'menu_icon'          => 'dashicons-images-alt', 
  • tallykit/trunk/components/people/people-types.php

    r967527 r1447980  
    11<?php 
     2$tk_options = get_option('tk_settings'); 
     3$tk_people_slug = (isset($tk_options['people_slug'])) ? $tk_options['people_slug'] : 'people-item'; 
    24/*************************** POST TYPE ************************** 
    35 * 
     
    2931    'args'               => array(), 
    3032    'labels'             => $labels, 
    31     'rewrite'            => array( 'slug' => 'people-item' ), 
     33    'rewrite'            => array( 'slug' => $tk_people_slug ), 
    3234    'supports'           => array( 'title', 'editor', 'thumbnail' ), 
    3335    'menu_icon'          => 'dashicons-groups', 
  • tallykit/trunk/components/portfolio/portfolio-types.php

    r967527 r1447980  
    11<?php 
     2$tk_options = get_option('tk_settings'); 
     3$tk_portfolio_slug = (isset($tk_options['portfolio_slug'])) ? $tk_options['portfolio_slug'] : 'portfolio-item'; 
    24/*************************** POST TYPE ************************** 
    35 * 
     
    2931    'args'               => array(), 
    3032    'labels'             => $labels, 
    31     'rewrite'            => array( 'slug' => 'portfolio-item' ), 
     33    'rewrite'            => array( 'slug' => apply_filters('tallykit_portfolio_slug', $tk_portfolio_slug) ), 
    3234    'supports'           => array( 'title', 'editor', 'thumbnail' ), 
    3335    'menu_icon'          => 'dashicons-portfolio', 
     
    120122    'args'      => array(), 
    121123    'labels'    => $labels, 
    122     'rewrite'   => array( 'slug' => 'portfolio_category' ), 
     124    'rewrite'   => array( 'slug' => apply_filters('portfolio_category_slug', 'portfolio_category') ), 
    123125    'hierarchical' => true, 
    124126); 
     
    149151    'args'      => array(), 
    150152    'labels'    => $labels, 
    151     'rewrite'   => array( 'slug' => 'portfolio_tag' ), 
     153    'rewrite'   => array( 'slug' => apply_filters('portfolio_tag_slug', 'portfolio_tag') ), 
    152154    'hierarchical' => false, 
    153155); 
  • tallykit/trunk/includes/custom-functions.php

    r1447713 r1447980  
    1414    'des'       => 'You will have to create a API key from <a href="https://developers.google.com/maps/documentation/javascript/get-api-key">Here</a>', 
    1515    'filter'    => '', //sanitize_text_field, esc_attr 
     16); 
     17$options[] = array( 
     18    'id'        => 'portfolio_slug', 
     19    'class'     => '', 
     20    'label'     => 'Portfolio Slug', 
     21    'type'      => 'text', 
     22    'std'       => 'portfolio-item', 
     23    'des'       => '', 
     24    'filter'    => '', 
     25); 
     26$options[] = array( 
     27    'id'        => 'people_slug', 
     28    'class'     => '', 
     29    'label'     => 'Peapule Slug', 
     30    'type'      => 'text', 
     31    'std'       => 'people-item', 
     32    'des'       => '', 
     33    'filter'    => '', 
     34); 
     35$options[] = array( 
     36    'id'        => 'gallsey_slug', 
     37    'class'     => '', 
     38    'label'     => 'Gallery Slug', 
     39    'type'      => 'text', 
     40    'std'       => 'gallery-item', 
     41    'des'       => '', 
     42    'filter'    => '', 
    1643); 
    1744$settings = array( 
  • tallykit/trunk/readme.txt

    r1447713 r1447980  
    55Requires at least: 4 
    66Tested up to: 4.5.3 
    7 Stable tag: 5.7 
     7Stable tag: 5.8 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3838 
    3939== Changelog == 
     40 
     41= 5.8 = 
     42* Added support to Portfolio, Gallery and People slug change 
    4043 
    4144= 5.7 = 
  • tallykit/trunk/tallykit.php

    r1447713 r1447980  
    44Plugin URI: https://github.com/tallythemes/tallykit 
    55Description: A collection of features and functionality for <strong>Tally Framework</strong> theme. 
    6 Version: 5.7 
     6Version: 5.8 
    77Author: TallyThemes 
    88Author URI: http://tallythemes.com/ 
     
    2525    define('TALLYKIT_URL', site_url(str_replace( $path_abs, '', $path_dir )) ); 
    2626    define('TALLYKIT_DRI', $path_dir ); 
    27     define('TALLYKIT_VERSION', 5.7 ); 
     27    define('TALLYKIT_VERSION', 5.8 ); 
    2828     
    2929    define('TALLYKIT_COMPONENTS_URL', TALLYKIT_URL.'components/' ); 
Note: See TracChangeset for help on using the changeset viewer.