Changeset 730632
- Timestamp:
- 06/24/2013 04:34:10 AM (11 years ago)
- Location:
- genesis-post-navigation
- Files:
-
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
genesis-post-navigation/tags/3.0.2/gpn-deploy.php
r697751 r730632 1 1 <?php 2 3 2 function gpn_custom_css() { 4 // design settings array 5 $gpn_design = get_option('gpn-settings'); 3 // design settings array 4 $gpn_design = get_option('gpn-settings'); 6 5 $gpn_bg = $gpn_design['gpn_bg']; 7 6 $gpn_bg_hover = $gpn_design['gpn_bg_hover']; 8 7 $text_color = $gpn_design['text_color']; 9 8 $text_hover = $gpn_design['text_hover']; 10 11 12 // Stores CSS in a string and hooks it in head tag 13 14 $gpn_css = ' 15 9 $cat_exclude = $gpn_design['gpn_cat_exclude']; 10 11 12 // Stores CSS in a string and hooks it in head tag 13 $gpn_css = " 16 14 #after-post-nav { 17 15 height:45px; 18 margin:10px;} 16 margin:30px; 17 display:inline-block; 18 } 19 19 20 .gps-nav-next{ 21 22 background: none repeat scroll 0 0 '.$gpn_bg.'; 20 .gps-nav-next{ 21 background: none repeat scroll 0 0 ".$gpn_bg."; 23 22 border-radius: 0 30px 30px 0; 24 23 -webkit-border-radius: 0 30px 30px 0; … … 30 29 display : block; 31 30 cursor : pointer; 32 } 33 34 31 } 35 32 36 33 .gps-nav-prev{ 37 34 38 background: none repeat scroll 0 0 '.$gpn_bg.';35 background: none repeat scroll 0 0 ; 39 36 border-radius:30px 0 0 30px; 40 37 -moz-border-radius:30px 0 0 30px; … … 50 47 .gps-nav-prev a, .gps-nav-next a{ 51 48 display : block; 52 color: '.$text_color.'!important;49 color: !important; 53 50 text-decoration: none;} 54 51 55 52 .gps-nav-next:hover, .gps-nav-prev:hover{ 56 53 57 background: '.$gpn_bg_hover.';54 background: ; 58 55 padding-left:20px; 59 56 -webkit-transition: all 0.5s ease-in-out; … … 63 60 64 61 .gps-nav-prev a:hover{ 65 color: '.$text_hover.'!important;62 color: !important; 66 63 padding-left:20px; 67 64 -webkit-transition: all 0.5s ease-in-out; … … 73 70 74 71 padding-right:20px; 75 color: '.$text_hover.'!important;72 color: !important; 76 73 -webkit-transition: all 0.5s ease-in-out; 77 74 -moz-transition: all 0.5s ease-in-out; 78 75 -o-transition: all 0.5s ease-in-out; 79 76 -ms-transition: all 0.5s ease-in-out; 80 }'; 77 }"; 78 79 81 80 82 81 return $gpn_css; … … 87 86 88 87 function gpn_generate_css(){ 88 89 89 90 if(is_singular()) { 90 echo '<style>'. gpn_custom_css() .'</style>' ; 91 echo '<style>'; 92 echo gpn_custom_css(); 93 //Adds style for Squared edges 94 if($gpn_squared_edges == 1){ 95 echo " 96 .gps-nav-next, .gps-nav-prev{ 97 border-radius: 0 ; 98 -webkit-border-radius: 0 ; 99 -moz-border-radius: 0 ; 100 -o-border-radius: 0 ;}";} 101 echo '</style>' ; 91 102 } 92 103 } … … 102 113 103 114 function gpn_after_post() { 104 105 115 $gpn_design = get_option('gpn-settings'); 106 116 $cat_nav = $gpn_design['cat_nav']; 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 107 134 108 if ( ! is_singular( 'post' ) ) 109 110 return; 111 112 113 if ( $cat_nav == "1") {?> 114 115 <div id="after-post-nav"> 116 <span class="gps-nav-prev"> 117 <?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'gpn') . '</span> %title', true ); ?></span> 118 <span class="gps-nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'gpn`' ) . '</span>', true ); ?> 119 </span> 120 </div><!-- #nav-single --> 121 122 <?php } else { 123 124 125 ?> 126 <div id="after-post-nav"> 127 <span class="gps-nav-prev"> 128 <?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'gpn') . '</span> %title'); ?></span> 129 <span class="gps-nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'gpn`' ) . '</span>'); ?> 130 </span> 131 </div><!-- #nav-single --> 132 133 <?php } 135 <?php } else { ?> 136 <div id="after-post-nav"> 137 <span class="gps-nav-prev"> 138 <?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'gpn') . '</span> %title'); ?></span> 139 <span class="gps-nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'gpn`' ) . '</span>'); ?> 140 </span> 141 </div><!-- #nav-single --> 142 <?php } 143 } 134 144 135 145 } -
genesis-post-navigation/tags/3.0.2/gpn-design.php
r634710 r730632 73 73 'text_color' => '#666666', 74 74 75 'text_hover' => '#F5F5F5' 75 'text_hover' => '#F5F5F5', 76 77 'cat_nav' => '0', 78 'gpn_cat_exclude' => '' 76 79 77 80 ); … … 176 179 echo '</p>'; 177 180 178 179 180 181 echo '<p><label id="bg-hover">BackGround Hover</label>'; 181 182 … … 185 186 186 187 187 188 188 echo '<p><label id="text">Text</label>'; 189 189 … … 199 199 200 200 echo '</p>'; 201 202 201 202 echo '<p><label id="Squared-edges">Squared edges : </label>';?> 203 204 <input type="checkbox" name="<?php echo $this->get_field_name( 'gpn_squared_edges' ); ?>" id="<?php echo $this->get_field_id( 'gpn_squared_edges' ); ?>" value="1"<?php esc_attr( checked( $this->get_field_value( 'gpn_squared_edges' ) )); ?> /> 205 206 <?php echo '</p>'; 207 208 echo '<p><label id="cat-nav">Navigate posts with in Category : </label>';?> 209 210 <input type="checkbox" name="<?php echo $this->get_field_name( 'cat_nav' ); ?>" id="<?php echo $this->get_field_id( 'cat_nav' ); ?>" value="1"<?php esc_attr( checked( $this->get_field_value( 'cat_nav' ) )); ?> /> 211 212 <?php echo '</p>'; 213 214 215 216 echo '<p><label id="cat-exclude">Exclude Post-Navigaion in the following Category IDs: </label>';?> 217 218 <input type="text" name="<?php echo $this->get_field_name( 'gpn_cat_exclude' ); ?>" id="<?php echo $this->get_field_id( 'gpn_cat_exclude' ); ?>" 219 value="<?php echo esc_attr( $this->get_field_value( 'gpn_cat_exclude' ) );?>" /> 220 <br /><small><strong><?php _e( 'Comma separated - 1,2,3 for example', 'genesis' ); ?></strong></small> 221 <?php echo '</p>'; 222 203 223 echo '</div>'; 204 224 … … 221 241 222 242 gpn_generate_css(); 243 223 244 } 224 245 } -
genesis-post-navigation/tags/3.0.2/plugin.php
r651605 r730632 3 3 Plugin Name: Genesis Post navigation 4 4 Plugin URI: http://iniyan.in/plugins/genesis-post-navigation/ 5 Description: This plugin adds a previous and next post links on a single post in a conventional way. This plugin creates a new Genesis settings page (Genesis Post Navigation) that allows you to Customize the post navigation colors. Requires the Genesis framework. 6 7 Animations - On mouseover the previous and next links can travel from north pole to south pole :) But, I put just 20px. 8 Version: 1.0.0 5 Description: Genesis Post navigation plugin adds a previous and next post links on a single post in a conventional way. From the plugin settings page, you can customize the post navigation colors and also it provides an additional option to navigate posts within category. This plugin requires Genesis framework. 6 Animations- On mouseover the previous and next links can travel from north pole to south pole :) But, I put just 20px. 7 Version: 3.0.1 9 8 Author: Iniyan 10 9 Author URI: http://iniyan.in … … 47 46 48 47 /** 49 50 48 * Load admin menu and helper functions. Hooked to `genesis_init`. 51 52 49 * 53 54 * @since 1.8.055 56 50 */ 57 51 … … 75 69 } 76 70 77 //Adds Post Navigation Below every single post page78 71 79 add_action( 'genesis_after_post_content', 'gpn_after_post' );80 72 81 function gpn_after_post() {82 83 if ( ! is_singular( 'post' ) )84 85 return;?>86 87 <div id="after-post-nav">88 89 <span class="gps-nav-prev"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'gpn' ) . '</span> %title' ); ?></span>90 91 <span class="gps-nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'gpn`' ) . '</span>' ); ?></span>92 93 </div><!-- #nav-single -->94 95 <?php }96 -
genesis-post-navigation/tags/3.0.2/readme.txt
r700750 r730632 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5 7 Stable tag: 3.0. 17 Stable tag: 3.0. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 11 12 12 13 == Description == 13 14 14 This plugin adds a previous and next post links on a single post in a conventional way. This plugin creates a new Genesis settings page (Genesis Post Navigation) that allows you to Customize the post navigation colors. 15 This plugin adds a previous and next post links on a single post in a conventional way. This plugin creates a new Genesis settings page (Genesis Post Navigation) that allows you to Customize the post navigation colors and to navigate posts within category. 16 15 17 Requires the Genesis framework. 16 18 … … 18 20 But, I put just 20px. 19 21 22 23 20 24 *We really thank Andrew Norcross.* We get color selection options from Andrew Norcross's plugin Genesis design pallete. 25 21 26 22 27 == Installation == … … 41 46 == Screenshots == 42 47 43 1. This is a snapshot of the plugin.44 48 45 49 == Changelog == 46 50 51 52 53 54 47 55 Fixed bug - Conflict with message section 48 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 49 73 == Upgrade Notice == 74 75 76 77 78 79 -
genesis-post-navigation/trunk/readme.txt
r700750 r730632 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5 7 Stable tag: 3.0. 17 Stable tag: 3.0. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.