Plugin Directory

Changeset 3259748


Ignore:
Timestamp:
03/21/2025 01:16:13 PM (8 days ago)
Author:
wsxplugindev
Message:

tagging version 3.6

Location:
admin-dashboard-rss-feed/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • admin-dashboard-rss-feed/trunk/admin-rss-feed.php

    r3257047 r3259748  
    55Plugin URI: https://www.webstix.com
    66Author: Webstix
    7 Version:     3.5
     7Version:     3.6
    88Text Domain: admin-dashboard-rss-feed
    99Author:      Webstix, Inc.
     
    177177            <th scope="row">Number of items to display: <small style="font-weight: normal;">(You can show between 1 to 10)</small></th>
    178178            <td><input type="number" name="wsx_rss_feed_count" value="<?php
    179     echo esc_attr(get_option('wsx_rss_feed_count')); ?>" required max="10" /></td>
     179    echo esc_attr(get_option('wsx_rss_feed_count')); ?>" required min="1" max="10" /></td>
    180180        </tr>
    181181    </table>
     
    314314}
    315315
    316 
    317 
    318 /*add_action('admin_footer', 'media_selector_print_script');
    319 function media_selector_print_script()
    320 {
    321     exit;
    322 // Check if the page parameter exists and verify the nonce
    323 if (
    324     isset($_GET['page']) &&
    325     sanitize_text_field(wp_unslash($_GET['page'])) === "admin-dashboard-rss-feed/admin-rss-feed.php") {
    326 
    327     $wsx_rss_feed_image_attachment_post_id = get_option('wsx_rss_feed_image_attachment_id', 0);
    328     ?><script type='text/javascript'>
    329             jQuery( document ).ready( function( $ ) {
    330 
    331                 $(' .image-preview-wrapper').css('display', 'none');
    332                 $(' .image-preview-wrapper > img#image-preview ').css('display', 'none');
    333 
    334                 // Uploading files
    335                 var file_frame;
    336                 var wp_media_post_id = wp.media.model.settings.post.id; // Store the old id
    337                 var set_to_post_id = <?php
    338                 echo esc_html($wsx_rss_feed_image_attachment_post_id); ?>; // Set this
    339 
    340             if(set_to_post_id == 0) {
    341                 $(' .image-preview-wrapper').css('display', 'none');
    342                 $(' .image-preview-wrapper > img#image-preview ').css('display', 'none');
    343             } else {
    344                 $(' .image-preview-wrapper').css('display', 'block');
    345                 $(' .image-preview-wrapper > img#image-preview ').css('display', 'block');
    346             }
    347 
    348                 jQuery('#upload_image_button').on('click', function( event ){
    349                     event.preventDefault();
    350 
    351                     $(' .image-preview-wrapper').css('display', 'block');
    352                     $(' .image-preview-wrapper > img#image-preview ').css('display', 'block');
    353 
    354                     // If the media frame already exists, reopen it.
    355                     if ( file_frame ) {
    356 
    357                         // Set the post ID to what we want
    358                         file_frame.uploader.uploader.param( 'post_id', set_to_post_id );
    359 
    360                         // Open frame
    361                         file_frame.open();
    362                         return;
    363                     } else {
    364                         // Set the wp.media post id so the uploader grabs the ID we want when initialised
    365                         wp.media.model.settings.post.id = set_to_post_id;
    366                     }
    367 
    368                     // Create the media frame.
    369                     file_frame = wp.media.frames.file_frame = wp.media({
    370                         title: 'Select a image to upload',
    371                         button: {
    372                             text: 'Use this image',
    373                         },
    374                         multiple: false // Set to true to allow multiple files to be selected
    375                     });
    376 
    377                     // When an image is selected, run a callback.
    378                     file_frame.on( 'select', function() {
    379 
    380                     $(' .image-preview-wrapper').css('display', 'block!important');
    381                     $(' .image-preview-wrapper > img#image-preview ').show();
    382 
    383                         // We set multiple to false so only get one image from the uploader
    384                         attachment = file_frame.state().get('selection').first().toJSON();
    385 
    386                         // Do something with attachment.id and/or attachment.url here
    387                         $( '#image-preview' ).attr( 'src', attachment.url ).css( 'width', 'auto' );
    388                         $( '#image_attachment_id' ).val( attachment.id );
    389 
    390                         // Restore the main post ID
    391                         wp.media.model.settings.post.id = wp_media_post_id;
    392                     });
    393 
    394                         // Finally, open the modal
    395                         file_frame.open();
    396                 });
    397 
    398                 $("form").on('click', '#delete_image_button', function (e) {
    399                     $( '#image-preview' ).attr('src', '').hide();
    400                     $( '#image_attachment_id' ).val( "" );
    401                 });
    402 
    403                 // Restore the main ID when the add media button is pressed
    404                 jQuery( 'a.add_media' ).on( 'click', function() {
    405                     wp.media.model.settings.post.id = wp_media_post_id;
    406                 });
    407             });
    408         </script>
    409 <?php } // End of If part
    410 } */?>
     316?>
  • admin-dashboard-rss-feed/trunk/admin/css/style.css

    r3257047 r3259748  
    77.wsx-log-wrap.clearfix a {
    88    float: left;
    9     margin: 5px 0px 0 0;
     9    margin: 5px 30px 0 0;
    1010}
    1111
  • admin-dashboard-rss-feed/trunk/readme.txt

    r3257047 r3259748  
    55Requires at least: 4.7.5
    66Tested up to: 6.7
    7 Stable Tag: 3.5
     7Stable Tag: 3.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666== Changelog ==
    6767
    68 = 1.2 =
    69 * Updated the plugin to be compatible with 5.0
     68= 1.0 =
     69* Used the latest WordPress inherent image uploader function to upload the company Logo.
    7070
    7171= 1.1 =
     
    7373* Added delete option for the image upload.
    7474* Resolved appearing apostrophe/single quote issue on feed title
    75 
    76 = 1.0 =
    77 * Used the latest WordPress inherent image uploader function to upload the company Logo.
    7875
    7976= 1.2 =
     
    144141
    145142= 3.5 =
    146 * Fixed bugs 
     143* Fixed bugs
    147144* Fixed php warnings
    148145* Updated the plugin to be compatible with 6.7.2
     146
     147= 3.6 =
     148* Updated the maximum number of posts in settings
Note: See TracChangeset for help on using the changeset viewer.