Plugin Directory

Changeset 1938830


Ignore:
Timestamp:
09/10/2018 05:34:33 PM (7 years ago)
Author:
sociusmarketing
Message:

1.1.6 - Option to use WordPress title

Location:
socius-marketing-page-taxonomy/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • socius-marketing-page-taxonomy/trunk/inc/options-page.php

    r1875668 r1938830  
    9999                ),
    100100                'default' => array('yes'),
     101            ),
     102            array(
     103                'uid' => 'smct_page_title_source',
     104                'label' => 'Use Default WordPress Title Instead of Headlines?',
     105                'section' => 'smct_section_two',
     106                'type' => 'radio',
     107                'options' => array(
     108                    'no' => 'No',
     109                    'yes' => 'Yes',
     110                ),
     111                'default' => array('no'),
    101112            ),
    102113            array(
  • socius-marketing-page-taxonomy/trunk/inc/template-archive.php

    r1931954 r1938830  
    163163                            <div class="<?php echo $right_col_widths;?>">
    164164                                <h3 class="smct-archive-title"><a href="<?php the_permalink(); ?>" title="<?php printf( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
    165                                 <?php //Use Custom Page Title meta, if there is one
    166                                     if(get_option('smct_alternate_page_title') !== false) {
     165                                <?php //Updated 1.1.6 - Use Default Page Title Options
     166                                    $title_source = get_option('smct_page_title_source');
     167                                    if($title_source[0] == 'yes') {
     168                                        the_title();
     169                                    }
     170                                    //Use Custom Page Title meta, if there is one
     171                                    elseif(get_option('smct_alternate_page_title') !== false) {
    167172                                        if( class_exists('acf') ) {
    168173                                            if(get_field(get_option('smct_alternate_page_title'))) {
     
    185190                                        } else {
    186191                                            the_title();
    187                                         }
     192                                        }                                   
     193                                    }
    188194                                    //Check for H1 first; use H3 as a fallback
    189                                     } elseif (preg_match_all('#(<h[0-6].*?>).*?(</h[0-6]>)#', get_the_content(), $matches)) {
     195                                    elseif (preg_match_all('#(<h[0-6].*?>).*?(</h[0-6]>)#', get_the_content(), $matches)) {
    190196                                        if($matches) {
    191197                                            echo strip_tags($matches[0][0]);
  • socius-marketing-page-taxonomy/trunk/readme.txt

    r1931954 r1938830  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 1.1.5
     6Stable tag: 1.1.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6161
    6262== Changelog ==
     63= 1.1.6 =
     64* Added option to use WordPress title in place of headlines
     65
    6366= 1.1.5 =
    6467* Simplified template-archive title query
  • socius-marketing-page-taxonomy/trunk/socius-marketing-page-taxonomy.php

    r1931954 r1938830  
    44 * Plugin URI: http://sociusmarketing.com
    55 * Description: Adds custom taxonomies for product categories and areas served. Be sure to update your permalinks after activation.
    6  * Version: 1.1.5
     6 * Version: 1.1.6
    77 * Author: Socius Marketing
    88 * Author URI: http://sociusmarketing.com
Note: See TracChangeset for help on using the changeset viewer.