WordPress.org

Plugin Directory

Changeset 1744056


Ignore:
Timestamp:
10/10/17 16:07:53 (2 months ago)
Author:
petersplugins
Message:

v 1.5 - improved UI

Location:
smart-archive-page-remove
Files:
16 added
9 edited

Legend:

Unmodified
Added
Removed
  • smart-archive-page-remove/trunk/assets/css/smart-archive-page-remove-ui.css

    r1686911 r1744056  
    55 
    66#pp-smart-archive-page-remove-settings .form-table th { 
    7   padding: 20px 10px 0 0; 
     7  padding: 0; 
     8  font-weight: normal; 
    89} 
    910 
    1011#pp-smart-archive-page-remove-settings .form-table td { 
    11   padding: 6px 10px 0 0; 
     12  padding: 0; 
     13  margin-bottom: 20px; 
     14} 
     15 
     16#pp-smart-archive-page-remove-settings .form-table td p { 
     17  padding: 0; 
     18  line-height: 1.2; 
     19  margin-bottom: 20px; 
     20} 
     21 
     22#pp-seetings-advanced .form-table th { 
     23  display: none; 
    1224} 
    1325 
     
    1729 
    1830#pp-smart-archive-page-remove-settings input[type="checkbox"] + label.check { 
    19   display: inline-block;   
    20   border: 2px solid #DDD; 
    21   box-shadow: 0px 0px 5px 0px rgba(42,42,42,.75);  
    22   border-style:solid;  
    23   border-radius:5px;  
    24   width: 30px; 
    25   height: 30px; 
    26   line-height: 30px; 
    27   text-align: center; 
    28   font-family: dashicons; 
    29   font-size: 2em; 
    30   margin-right: 10px; 
     31  cursor: pointer; 
     32    text-indent: -9999px; 
     33    width: 80px; 
     34    height: 40px; 
     35    background: grey; 
     36    display: block; 
     37    border-radius: 40px; 
     38    position: relative; 
     39  float: left; 
     40  margin-right: 40px; 
    3141} 
    3242 
    33 #pp-smart-archive-page-remove-settings input[type="checkbox"] + label.check:before { 
    34   content: "";   
     43# pp-smart-archive-page-remove-settings input[type="checkbox"]:disabled + label.check { 
     44  background-color: #DDD; 
    3545} 
    3646 
    37 #pp-smart-archive-page-remove-settings input[type="checkbox"]:checked + label.check:before { 
    38   content: "\f147"; 
     47#pp-smart-archive-page-remove-settings input[type="checkbox"] + label.check:after { 
     48    content: ''; 
     49    position: absolute; 
     50    top: 5px; 
     51    left: 5px; 
     52    width: 30px; 
     53    height: 30px; 
     54    background: #fff; 
     55    border-radius: 30px; 
     56    transition: 0.3s; 
    3957} 
    4058 
    41 #pp-smart-archive-page-remove-settings td p:last-child { 
    42   padding: 0 0 0 40px; 
     59#pp-smart-archive-page-remove-settings input[type="checkbox"]:enabled:checked + label.check { 
     60  background: #104060; 
    4361} 
     62 
     63#pp-smart-archive-page-remove-settings input[type="checkbox"]:enabled:checked + label.check:after { 
     64  left: calc(100% - 5px); 
     65    transform: translateX(-100%); 
     66} 
  • smart-archive-page-remove/trunk/assets/js/smart-archive-page-remove-ui.js

    r1686911 r1744056  
    11jQuery( document ).ready( function( $ ) { 
    2   $( '#pp-smart-archive-page-remove-admin-notice-1' ).on( 'click', '.notice-dismiss', function ( event ) { 
     2   
     3  $( '.pp-smart-archive-page-remove-admin-notice' ).on( 'click', '.notice-dismiss', function ( event ) { 
    34    event.preventDefault(); 
    45        data = { 
    56            action: 'pp_smart_archive_page_remove_dismiss_admin_notice', 
    6             pp_smart_archive_page_remove_dismiss_admin_notice: pp_smart_archive_page_remove.pp_smart_archive_page_remove_dismiss_admin_notice_number 
     7            pp_smart_archive_page_remove_dismiss_admin_notice: $( this ).parent().attr( 'id' ) 
    78        }; 
    89        $.post( ajaxurl, data ); 
    910        return false; 
    1011    }); 
     12   
    1113}); 
  • smart-archive-page-remove/trunk/inc/class-smart-archive-page-remove.php

    r1687507 r1744056  
    4040      $this->plugin_name = 'smart Archive Page Remove'; 
    4141      $this->plugin_slug = 'smart-archive-page-remove'; 
    42       $this->version = '1.4'; 
     42      $this->version = '1.5'; 
    4343      $this->option_name = 'smart_archive_page_remove'; 
    4444      $this->init(); 
     
    5353       
    5454      $this->wp_url = 'https://wordpress.org/plugins/' . $this->plugin_slug; 
    55       $this->my_url = 'http://petersplugins.com/free-wordpress-plugins/' . $this->plugin_slug; 
    56       $this->dc_url = 'http://petersplugins.com/docs/' . $this->plugin_slug; 
     55      $this->my_url = 'https://petersplugins.com/free-wordpress-plugins/' . $this->plugin_slug; 
     56      $this->dc_url = 'https://petersplugins.com/docs/' . $this->plugin_slug; 
    5757       
    5858      add_action( 'wp', array( $this, 'archive_remove' ) ); 
     
    285285      ?> 
    286286      <div class="wrap" id="pp-smart-archive-page-remove-settings"> 
    287         <h1 id="pp-plugin-info-smart-archive-page-remove"><?php echo $this->plugin_name; ?><span><a class="dashicons dashicons-star-filled" href="https://wordpress.org/support/plugin/<?php echo $this->plugin_slug; ?>/reviews/" title="<?php _e( 'Please rate plugin', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-wordpress" href="<?php echo $this->wp_url; ?>/" title="<?php _e( 'wordpress.org plugin directory', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-admin-home" href="http://petersplugins.com/" title="<?php _e( 'Author homepage', 'smart-archive-page-remove' );?>"></a> <a class="dashicons dashicons-googleplus" href="http://g.petersplugins.com/" title="<?php _e( 'Authors Google+ Page', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-facebook-alt" href="http://f.petersplugins.com/" title="<?php _e( 'Authors facebook Page', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-editor-help" href="http://wordpress.org/support/plugin/<?php echo $this->plugin_slug; ?>/" title="<?php _e( 'Support', 'smart-archive-page-remove'); ?>"></a> <a class="dashicons dashicons-admin-comments" href="http://petersplugins.com/contact/" title="<?php _e( 'Contact Author', 'smart-archive-page-remove' ); ?>"></a></span></h1> 
     287        <h1 id="pp-plugin-info-smart-archive-page-remove"><?php echo $this->plugin_name; ?><span><a class="dashicons dashicons-star-filled" href="https://wordpress.org/support/plugin/<?php echo $this->plugin_slug; ?>/reviews/" title="<?php _e( 'Please rate plugin', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-wordpress" href="<?php echo $this->wp_url; ?>/" title="<?php _e( 'wordpress.org plugin directory', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-admin-home" href="https://petersplugins.com/" title="<?php _e( 'Author homepage', 'smart-archive-page-remove' );?>"></a> <a class="dashicons dashicons-googleplus" href="https://plus.google.com/+petersplugins" title="<?php _e( 'Authors Google+ Page', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-facebook-alt" href="https://www.facebook.com/petersplugins/" title="<?php _e( 'Authors facebook Page', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-editor-help" href="https://wordpress.org/support/plugin/<?php echo $this->plugin_slug; ?>/" title="<?php _e( 'Support', 'smart-archive-page-remove'); ?>"></a> <a class="dashicons dashicons-admin-comments" href="https://petersplugins.com/contact/" title="<?php _e( 'Contact Author', 'smart-archive-page-remove' ); ?>"></a></span></h1> 
    288288      
    289289        <form method="post" action="options.php"> 
     
    319319    function admin_js() { 
    320320         
    321       wp_enqueue_script( 'smart-archive-page-remove-ui', plugins_url( 'assets/js/smart-archive-page-remove-ui.js', $this->_file ), array( 'jquery' ) ); 
    322        
    323       wp_localize_script( 'smart-archive-page-remove-ui', 'pp_smart_archive_page_remove', array( 'pp_smart_archive_page_remove_dismiss_admin_notice_number' => 'pp-smart-archive-page-remove-admin-notice-1' ) ); 
     321      wp_enqueue_script( 'smart-archive-page-remove-ui', plugins_url( 'assets/js/smart-archive-page-remove-ui.js', $this->_file ), array( 'jquery' ), $this->version, true ); 
    324322       
    325323    } 
     
    359357      if ( current_user_can( 'manage_options' ) && get_user_meta( get_current_user_id(), 'pp-smart-archive-page-remove-admin-notice-1', true ) != 'dismissed' ) { 
    360358        ?> 
    361         <div class="notice is-dismissible" id="pp-smart-archive-page-remove-admin-notice-1"> 
    362           <p><img src="<?php echo plugins_url( 'assets/pluginicon.png', $this->_file ); ?>" style="width: 48px; height: 48px; float: left; margin-right: 20px" /><strong><?php _e( 'Do you like the smart Archive Page Remove plugin?', 'smart-archive-page-remove' ); ?></strong><br /><?php _e( 'Follow me:', 'smart-archive-page-remove' ); ?> <a class="dashicons dashicons-googleplus" href="http://g.petersplugins.com/" title="<?php _e( 'Authors Google+ Page', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-facebook-alt" href="http://f.petersplugins.com/" title="<?php _e( 'Authors facebook Page', 'smart-archive-page-remove' ); ?>"></a><div class="clear"></div></p> 
     359        <div class="notice is-dismissible pp-smart-archive-page-remove-admin-notice" id="pp-smart-archive-page-remove-admin-notice-1"> 
     360          <p><img src="<?php echo plugins_url( 'assets/pluginicon.png', $this->_file ); ?>" style="width: 48px; height: 48px; float: left; margin-right: 20px" /><strong><?php _e( 'Do you like the smart Archive Page Remove plugin?', 'smart-archive-page-remove' ); ?></strong><br /><?php _e( 'Follow me:', 'smart-archive-page-remove' ); ?> <a class="dashicons dashicons-googleplus" href="https://plus.google.com/+petersplugins/" title="<?php _e( 'Authors Google+ Page', 'smart-archive-page-remove' ); ?>"></a> <a class="dashicons dashicons-facebook-alt" href="https://www.facebook.com/petersplugins/" title="<?php _e( 'Authors facebook Page', 'smart-archive-page-remove' ); ?>"></a><div class="clear"></div></p> 
    363361        </div> 
    364362        <?php 
     363      } 
     364       
     365      // ask for rating 
     366      // in 30 days at the earliest 
     367      // @since 1.5 
     368      if ( ! get_option( 'pp-smart-archive-page-remove-admin-notice-2-start' ) ) { 
     369        update_option( 'pp-smart-archive-page-remove-admin-notice-2-start', time() + 30 * 24 * 60 * 60 ); 
     370      } 
     371      if ( get_option( 'pp-smart-archive-page-remove-admin-notice-2-start' ) <= time() ) { 
     372        if ( current_user_can( 'manage_options' ) && get_user_meta( get_current_user_id(), 'pp-smart-archive-page-remove-admin-notice-2', true ) != 'dismissed' ) { 
     373          ?> 
     374          <div class="notice is-dismissible pp-smart-archive-page-remove-admin-notice" id="pp-smart-archive-page-remove-admin-notice-2"> 
     375            <p><img src="<?php echo plugins_url( 'assets/pluginicon.png', $this->_file ); ?>" style="width: 48px; height: 48px; float: left; margin-right: 20px" /><?php _e( 'If you like the smart Archive Page Remove plugin please support my work with giving it a good rating so that other users know it is helpful for you. Thanks.', 'smart-archive-page-remove' ); ?><br /><a href="https://wordpress.org/support/plugin/<?php echo $this->plugin_slug; ?>/reviews/#new-post" title="<?php _e( 'Please rate plugin', 'smart-archive-page-remove' ); ?>"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></a><div class="clear"></div></p> 
     376          </div> 
     377          <?php 
     378        } 
    365379      } 
    366380       
  • smart-archive-page-remove/trunk/readme.txt

    r1687507 r1744056  
    11=== smart Archive Page Remove === 
    2 Contributors: petersplugins, smartware.cc 
    3 Donate link:http://petersplugins.com/make-a-donation/ 
     2Contributors: petersplugins 
     3Donate link: https://petersplugins.com/make-a-donation/ 
    44Tags: archive page, archive pages, remove archive, remove archive pages, delete archive, delete archive pages, hide archive, hide archive pages 
    55Requires at least: 3.0 
    66Tested up to: 4.8 
    7 Stable tag: 1.4 
     7Stable tag: 1.5 
     8Requires PHP: 5.4 
    89License: GPLv2+ 
    910License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1516This Plugin allows you to remove Archive Pages automatically generated by WordPress 
    1617 
     18<blockquote> 
     19If you like this plugin please do me favor and leave a review here on wordpress.org so that other people know it is helpful for you. Thanks! 
     20</blockquote> 
     21 
    1722= Usage = 
    1823 
     
    2126The smart Archive Page Remove Plugin adds an item 'Archive Pages' in the 'Settings' section of your WordPress Admin. Here you can select which Archive Pages you want to **remove**. Removed Archive Pages are no longer accessible and cause a 404 page not found error. They can be restored anytime. 
    2227 
    23 = Need more information? = 
     28= Docs & Support = 
    2429 
    25 **See also [Plugin Homepage](http://petersplugins.com/free-wordpress-plugins/smart-archive-page-remove/) and [Plugin Doc](http://petersplugins.com/docs/smart-archive-page-remove/)** 
    26  
    27 = Do you like the smart Archive Page Remove Plugin? = 
    28  
    29 Thanks, I appreciate that. You don’t need to make a donation. No money, no beer, no coffee. Please, just [tell the world that you like what I’m doing](http://petersplugins.com/make-a-donation/)! And that’s all. 
     30More detailed information about the smart Archive Page Remove plugin can be found in the [Plugin Manual](https://petersplugins.com/docs/smart-archive-page-remove/). For support check the [Support Forum](https://wordpress.org/support/plugin/smart-archive-page-remove/). 
    3031 
    3132= More plugins from Peter = 
    3233 
    33 * **[404page](https://wordpress.org/plugins/404page/)** Define any of your WordPress pages as 404 error page  
     34* **[404page](https://wordpress.org/plugins/404page/)** - Define any of your WordPress pages as 404 error page  
    3435* **[smart User Slug Hider](https://wordpress.org/plugins/smart-user-slug-hider/)** - Hide usernames in author pages URLs to enhance security  
    3536* **[hashtagger](https://wordpress.org/plugins/hashtagger/)** - Tag your posts by using #hashtags 
     
    4748 
    4849== Changelog == 
     50 
     51= 1.5 (2017-10-10) = 
     52* improved UI 
    4953 
    5054= 1.4 (2017-06-29) = 
     
    6973== Upgrade Notice == 
    7074 
     75= 1.5 = 
     76improved UI 
     77 
    7178= 1.4 = 
    7279show admin message only to users with the manage_options capability 
  • smart-archive-page-remove/trunk/smart-archive-page-remove.php

    r1687507 r1744056  
    88 * @wordpress-plugin 
    99 * Plugin Name: smart Archive Page Remove 
    10  * Plugin URI: http://petersplugins.com/free-wordpress-plugins/smart-archive-page-remove/ 
     10 * Plugin URI: https://petersplugins.com/free-wordpress-plugins/smart-archive-page-remove/ 
    1111 * Description: Completely remove unwanted Archive Pages from your Blog 
    12  * Version: 1.4 
     12 * Version: 1.5 
    1313 * Author: Peter Raschendorfer 
    1414 * Author URI: http://petersplugins.com 
Note: See TracChangeset for help on using the changeset viewer.