Changeset 1938830
- Timestamp:
- 09/10/2018 05:34:33 PM (7 years ago)
- Location:
- socius-marketing-page-taxonomy/trunk
- Files:
-
- 4 edited
-
inc/options-page.php (modified) (1 diff)
-
inc/template-archive.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
socius-marketing-page-taxonomy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
socius-marketing-page-taxonomy/trunk/inc/options-page.php
r1875668 r1938830 99 99 ), 100 100 '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'), 101 112 ), 102 113 array( -
socius-marketing-page-taxonomy/trunk/inc/template-archive.php
r1931954 r1938830 163 163 <div class="<?php echo $right_col_widths;?>"> 164 164 <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) { 167 172 if( class_exists('acf') ) { 168 173 if(get_field(get_option('smct_alternate_page_title'))) { … … 185 190 } else { 186 191 the_title(); 187 } 192 } 193 } 188 194 //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)) { 190 196 if($matches) { 191 197 echo strip_tags($matches[0][0]); -
socius-marketing-page-taxonomy/trunk/readme.txt
r1931954 r1938830 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.9 6 Stable tag: 1.1. 56 Stable tag: 1.1.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 61 61 62 62 == Changelog == 63 = 1.1.6 = 64 * Added option to use WordPress title in place of headlines 65 63 66 = 1.1.5 = 64 67 * Simplified template-archive title query -
socius-marketing-page-taxonomy/trunk/socius-marketing-page-taxonomy.php
r1931954 r1938830 4 4 * Plugin URI: http://sociusmarketing.com 5 5 * Description: Adds custom taxonomies for product categories and areas served. Be sure to update your permalinks after activation. 6 * Version: 1.1. 56 * Version: 1.1.6 7 7 * Author: Socius Marketing 8 8 * Author URI: http://sociusmarketing.com
Note: See TracChangeset
for help on using the changeset viewer.