Plugin Directory

Changeset 2450551


Ignore:
Timestamp:
01/05/2021 11:39:21 AM (5 years ago)
Author:
aiwatech
Message:

v-1.1.1

Location:
wp-image-sizes
Files:
14 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-image-sizes/trunk/assets/css/wpis-style.css

    r2449936 r2450551  
    11.text-red{
    22    color: #e80000 !important;
     3}
     4.text-green{
     5    color: #2b9d0b !important;
    36}
    47.fw-5{
  • wp-image-sizes/trunk/readme.txt

    r2449936 r2450551  
    44Requires at least: 4.7
    55Requires PHP: 5.2.4
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77Tested up to: 5.6
    88License: GPLv2 or later
     
    6666
    6767== Changelog ==
     68= 1.1.1 =
     69* Code changes for compatibility with pro version
     70
    6871= 1.1.0 =
    6972* Media uploader image size checkboxes position changed
  • wp-image-sizes/trunk/wp-image-sizes.php

    r2449936 r2450551  
    44 * Plugin URI: https://aiwatech.com/wp-image-sizes
    55 * Description: Save server space by creating selected image sizes for every post type. It allows to select registered image sizes in media uploader and helps to avoid creation of unneccessary images.
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Requires at least: 4.7
    88 * Tested up to: 5.6
     
    5555}
    5656
     57//==== Add Plugin Menu Page ===//
     58if(!function_exists("wpis_menu_pages")):
     59    add_action("admin_menu", "wpis_menu_pages", 80 );
     60    function wpis_menu_pages(){
     61        add_options_page(
     62            __("WP Image Sizes", "wpis"),
     63            __("WP Image Sizes", "wpis"),
     64            "manage_options",
     65            "wpis",
     66            "draw_wpis_page"
     67        );     
     68    }
     69   
     70    function draw_wpis_page(){
     71        include_once( WPIS_PLUGIN_PATH . "includes/wpis-settings.php" );   
     72    }
     73endif;
     74
    5775include_once( "wpis-init.php" );
  • wp-image-sizes/trunk/wpis-init.php

    r2449936 r2450551  
    2424endif;
    2525
    26 
    27 //==== Add Plugin Menu Page ===//
    28 if(!function_exists("wpis_menu_pages")):
    29     add_action("admin_menu", "wpis_menu_pages", 80 );
    30     function wpis_menu_pages(){
    31         add_options_page(
    32             __("WP Image Sizes", "wpis"),
    33             __("WP Image Sizes", "wpis"),
    34             "manage_options",
    35             "wpis",
    36             "draw_wpis_page"
    37         );     
    38     }
    39    
    40     function draw_wpis_page(){
    41         include_once( WPIS_PLUGIN_PATH . "includes/wpis-settings.php" );   
    42     }
    43 endif;
    4426
    4527if(!function_exists("wpis_get_attachment_image_src")):
     
    288270endif;
    289271
     272//=== Load Image Sizes Uploader UI ===//
     273if( !function_exists("wpis_load_uploader_sizes")):
    290274add_action("wp_ajax_wpis_load_uploader_sizes", "wpis_load_uploader_sizes");
    291275function wpis_load_uploader_sizes(){
     
    414398    die( json_encode($res));
    415399}
     400endif;
    416401
    417402//=== Hooked update wpis settings
Note: See TracChangeset for help on using the changeset viewer.