Changeset 1319231
- Timestamp:
- 12/31/2015 03:24:25 PM (10 years ago)
- Location:
- shk-hide-title/trunk
- Files:
-
- 1 added
- 3 edited
-
hide_title.php (modified) (2 diffs)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
theme_customization.php (added)
Legend:
- Unmodified
- Added
- Removed
-
shk-hide-title/trunk/hide_title.php
r1194578 r1319231 51 51 public function st_hide_title_css() { 52 52 global $post; 53 $class = get_theme_mod('shk_hide_title_class_name'); 53 54 $is_shown_to_be_hidden = get_post_meta($post->ID, 'st_hide_title_check_option', true); 54 55 if (empty($is_shown_to_be_hidden)) { … … 56 57 } 57 58 else { 59 if (empty($class)) { 60 ?> 61 <style type="text/css"> 62 #post-<?php echo $post->ID; ?> .entry-title, 63 #post-<?php echo $post->ID; ?> .entry-header h1 64 {display:none;} 65 </style> 66 <?php 67 } else { 58 68 ?> 59 <style type="text/css"> 60 #post-<?php echo $post->ID; ?> .entry-title, 61 #post-<?php echo $post->ID; ?> .entry-header h1 62 {display:none;} 63 </style> 69 <style type="text/css"> 70 #post-<?php echo $post->ID; ?> .<?php echo $class; ?> 71 {display:none;} 72 </style> 64 73 65 74 <?php } 75 } 66 76 67 77 } -
shk-hide-title/trunk/index.php
r1194578 r1319231 2 2 /** 3 3 * Plugin Name: SHK Hide Title 4 * Plugin URI: http://sh ekharbhandari.com.np/shk_hide_title4 * Plugin URI: http://shkthemes.com/shk-hide-title 5 5 * Description: A Plugin To disable title for pages in WordPress 6 * Version: 1.0. 17 * Author: Shekhar Bhandari 8 * Author URI: http://sh ekharbhandari.com.np/6 * Version: 1.0.2 7 * Author: Shekhar Bhandari, Shk Themes 8 * Author URI: http://shkthemes.com/ 9 9 * Text Domain: shk-hide-title 10 10 * License: GPL2 … … 14 14 include(__DIR__.'/hide_title.php'); 15 15 16 include(__DIR__.'/theme_customization.php'); 17 16 18 ?> -
shk-hide-title/trunk/readme.txt
r1194578 r1319231 1 1 === SHK Hide Title === 2 Contributors: optimistic_shekhar 2 Contributors: optimistic_shekhar, shkthemes 3 3 Tags: Hide Title, WordPress 4 4 Requires at least: 4.2 … … 20 20 -------- 21 21 22 31/122015 version 1.0.2 23 [!] Added Customizer option to enter the header class 24 25 -------- 26
Note: See TracChangeset
for help on using the changeset viewer.