Plugin Directory

Changeset 730632

Timestamp:
06/24/2013 04:34:10 AM (11 years ago)
Author:
iniyan
Message:

tagging version 3.0.2

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  
    11<?php
    2 
    32function 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');
    65    $gpn_bg = $gpn_design['gpn_bg'];
    76    $gpn_bg_hover   = $gpn_design['gpn_bg_hover'];
    87    $text_color = $gpn_design['text_color'];
    98    $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 = "
    1614#after-post-nav {
    1715    height:45px;
    18     margin:10px;}
     16    margin:30px;
     17    display:inline-block;
     18    }
    1919
    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.";
    2322    border-radius:  0 30px 30px 0;
    2423   -webkit-border-radius:  0 30px 30px 0;
     
    3029    display : block;
    3130    cursor : pointer;
    32     }
    33 
    34    
     31    }   
    3532
    3633.gps-nav-prev{
    3734
    38      background: none repeat scroll 0 0 '.$gpn_bg.';
     35     background: none repeat scroll 0 0 ;
    3936     border-radius:30px 0 0 30px;
    4037     -moz-border-radius:30px 0 0 30px;
     
    5047.gps-nav-prev a, .gps-nav-next a{
    5148         display : block;
    52          color: '.$text_color.' !important;
     49         color: !important;
    5350         text-decoration: none;}
    5451
    5552.gps-nav-next:hover, .gps-nav-prev:hover{
    5653   
    57          background: '.$gpn_bg_hover.' ;
     54         background: ;
    5855         padding-left:20px;
    5956        -webkit-transition: all 0.5s ease-in-out;
     
    6360
    6461.gps-nav-prev a:hover{
    65         color: '.$text_hover.' !important;
     62        color: !important;
    6663        padding-left:20px;
    6764       -webkit-transition: all 0.5s ease-in-out;
     
    7370   
    7471        padding-right:20px;
    75         color: '.$text_hover.' !important;
     72        color: !important;
    7673       -webkit-transition: all 0.5s ease-in-out;
    7774       -moz-transition: all 0.5s ease-in-out;
    7875       -o-transition: all 0.5s ease-in-out;
    7976       -ms-transition: all 0.5s ease-in-out;
    80         }';
     77        }";
     78       
     79       
    8180
    8281return $gpn_css;
     
    8786
    8887function gpn_generate_css(){
     88
     89
    8990    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>' ;   
    91102    }
    92103}
     
    102113
    103114function gpn_after_post() {
    104 
    105115    $gpn_design = get_option('gpn-settings');   
    106116    $cat_nav = $gpn_design['cat_nav'];
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
    107134
    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( '&larr;', '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( '&rarr;', '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( '&larr;', 'Previous post link', 'gpn') . '</span> %title'); ?></span>
    129                   <span class="gps-nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', '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( '&larr;', 'Previous post link', 'gpn') . '</span> %title'); ?></span>
     139      <span class="gps-nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'gpn`' ) . '</span>'); ?>
     140      </span>
     141      </div><!-- #nav-single -->
     142     <?php }
     143   }
    134144
    135145}
  • genesis-post-navigation/tags/3.0.2/gpn-design.php

    r634710 r730632  
    7373            'text_color'        => '#666666',
    7474
    75             'text_hover'        => '#F5F5F5'   
     75            'text_hover'        => '#F5F5F5',
     76
     77            'cat_nav'           => '0',
     78            'gpn_cat_exclude'   => ''
    7679
    7780        );
     
    176179        echo '</p>';
    177180
    178 
    179 
    180181        echo '<p><label  id="bg-hover">BackGround Hover</label>';
    181182
     
    185186
    186187
    187 
    188188        echo '<p><label  id="text">Text</label>';
    189189
     
    199199
    200200        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       
    203223        echo '</div>';
    204224       
     
    221241
    222242            gpn_generate_css();
     243
    223244    }   
    224245}
  • genesis-post-navigation/tags/3.0.2/plugin.php

    r651605 r730632  
    33Plugin Name: Genesis Post navigation
    44Plugin 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
     5Description: 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.
     6Animations- On mouseover the previous and next links can travel from north pole to south pole :) But, I put just 20px.
     7Version: 3.0.1
    98Author: Iniyan
    109Author URI: http://iniyan.in
     
    4746
    4847/**
    49 
    5048 * Load admin menu and helper functions. Hooked to `genesis_init`.
    51 
    5249 *
    53 
    54  * @since 1.8.0
    55 
    5650 */
    5751
     
    7569}
    7670
    77 //Adds Post Navigation Below every single post page
    7871
    79 add_action( 'genesis_after_post_content', 'gpn_after_post' );
    8072
    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( '&larr;', '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( '&rarr;', '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  
    55Requires at least: 3.3
    66Tested up to: 3.5
    7 Stable tag: 3.0.1
     7Stable tag: 3.0.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
     11
    1112
    1213== Description ==
    1314
    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.
     15This 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
    1517Requires the Genesis framework.
    1618
     
    1820But, I put just 20px.
    1921
     22
     23
    2024*We really thank Andrew Norcross.* We get color selection options from Andrew Norcross's plugin Genesis design pallete.
     25
    2126
    2227== Installation ==
     
    4146== Screenshots ==
    4247
    43 1. This is a snapshot of the plugin.
    4448
    4549== Changelog ==
    4650
     51
     52
     53
     54
    4755Fixed bug - Conflict with message section
    4856
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     72
    4973== Upgrade Notice ==
     74
     75
     76
     77
     78
     79
  • genesis-post-navigation/trunk/readme.txt

    r700750 r730632  
    55Requires at least: 3.3
    66Tested up to: 3.5
    7 Stable tag: 3.0.1
     7Stable tag: 3.0.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.