WordPress.org

Plugin Directory

Changeset 1675325


Ignore:
Timestamp:
06/10/17 07:25:56 (5 months ago)
Author:
mnmlthms
Message:

Update v1.0.1

Location:
wp-my-instagram
Files:
19 added
7 edited

Legend:

Unmodified
Added
Removed
  • wp-my-instagram/tags/1.0/readme.txt

    r1674534 r1675325  
    2626### How to use? 
    2727 
    28 ####. Using shortcode `[wp_my_instagram]`: 
     28**1. Using shortcode** `[wp_my_instagram]`: 
    2929 
    3030You can place above shortcode into your posts/pages or widget (make sure shortcode is enabled in widget) 
     
    4141`[wp_my_instagram username="wordpress" limit="12" layout="3" size="large" link=""]` 
    4242 
    43 ####. Using widget in Appearance -> Widget and look for **WP My Instagram** widget. 
     43**Using widget in Appearance -> Widget and look for **WP My Instagram** widget.** 
    4444 
    4545== Frequently Asked Questions == 
  • wp-my-instagram/trunk/inc/public/main.php

    r1674534 r1675325  
    3131 
    3232            if( empty( $args['username'] ) ) 
    33                 echo esc_html__( 'You need to input your username', 'wp-my-instaram' ); 
     33                echo esc_html__( 'You need to input your username', 'wp-my-instagram' ); 
    3434 
    3535 
     
    5050                // slice list down to required limit 
    5151                $media_array = array_slice( $media_array, 0, (int) $args['limit'] ); 
    52                 $template_part = apply_filters( 'wpmi_template_part', 'wp-my-instaram/loop.php' ); 
     52                $template_part = apply_filters( 'wpmi_template_part', 'wp-my-instagram/loop.php' ); 
    5353                ?> 
    5454                <div class="wp-my-instagram wpmi"> 
    5555                    <ul class="wpmi-list wpmi-layout-<?php echo esc_attr( $args['layout'] );?>"><?php 
    5656                    foreach ( $media_array as $item ) { 
    57                         // copy the else line into a new file (parts/wp-my-instaram.php) within your theme and customise accordingly 
     57                        // copy the else line into a new file (wp-my-instagram/loop.php) within your theme and customise accordingly 
    5858                        if ( locate_template( $template_part ) != '' ) { 
    5959                            include locate_template( $template_part ); 
  • wp-my-instagram/trunk/inc/public/widget.php

    r1674534 r1675325  
    1111        public function __construct() { 
    1212            parent::__construct( 
    13                 'wp-my-instaram', 
    14                 esc_html__( 'WP My Instagram', 'wp-my-instaram' ), 
     13                'wp-my-instagram', 
     14                esc_html__( 'WP My Instagram', 'wp-my-instagram' ), 
    1515 
    1616                array( 
    17                     'classname' => 'wp-my-instaram', 
    18                     'description' => esc_html__( 'Displays your latest Instagram photos', 'wp-my-instaram' ), 
     17                    'classname' => 'wp-my-instagram', 
     18                    'description' => esc_html__( 'Displays your latest Instagram photos', 'wp-my-instagram' ), 
    1919                    'customize_selective_refresh' => true 
    2020                ) 
     
    5050            }else{ 
    5151                if( current_user_can( 'edit_theme_options' ) ){ 
    52                     esc_html_e( 'You need to input your username!', 'wp-my-instaram' ); 
     52                    esc_html_e( 'You need to input your username!', 'wp-my-instagram' ); 
    5353                } 
    5454            } 
     
    6666            $instance = wp_parse_args( (array) $instance,  
    6767                array(  
    68                     'title'     => esc_html__( 'Instagram', 'wp-my-instaram' ),  
     68                    'title'     => esc_html__( 'Instagram', 'wp-my-instagram' ),  
    6969                    'username'  => '',  
    7070                    'size'      => 'large',  
    7171                    'layout'    => 'default',  
    72                     'link'      => esc_html__( 'Follow Me!', 'wp-my-instaram' ),  
     72                    'link'      => esc_html__( 'Follow Me!', 'wp-my-instagram' ),  
    7373                    'limit'     => 9,  
    7474                    'target'    => '_self'  
     
    8585            $preload = isset( $instance['preload'] ) ? $instance['preload'] : 0; 
    8686            ?> 
    87             <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title', 'wp-my-instaram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></label></p> 
    88             <p><label for="<?php echo esc_attr( $this->get_field_id( 'username' ) ); ?>"><?php esc_html_e( 'Username', 'wp-my-instaram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'username' ) ); ?>" type="text" value="<?php echo esc_attr( $username ); ?>" /></label></p> 
    89             <p><label for="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>"><?php esc_html_e( 'Number of photos', 'wp-my-instaram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'limit' ) ); ?>" type="text" value="<?php echo esc_attr( $limit ); ?>" /></label></p> 
    90             <p><label for="<?php echo esc_attr( $this->get_field_id( 'size' ) ); ?>"><?php esc_html_e( 'Photo size', 'wp-my-instaram' ); ?>:</label> 
     87            <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title', 'wp-my-instagram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></label></p> 
     88            <p><label for="<?php echo esc_attr( $this->get_field_id( 'username' ) ); ?>"><?php esc_html_e( 'Username', 'wp-my-instagram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'username' ) ); ?>" type="text" value="<?php echo esc_attr( $username ); ?>" /></label></p> 
     89            <p><label for="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>"><?php esc_html_e( 'Number of photos', 'wp-my-instagram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'limit' ) ); ?>" type="text" value="<?php echo esc_attr( $limit ); ?>" /></label></p> 
     90            <p><label for="<?php echo esc_attr( $this->get_field_id( 'size' ) ); ?>"><?php esc_html_e( 'Photo size', 'wp-my-instagram' ); ?>:</label> 
    9191                <select id="<?php echo esc_attr( $this->get_field_id( 'size' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'size' ) ); ?>" class="widefat"> 
    92                     <option value="thumbnail" <?php selected( 'thumbnail', $size ) ?>><?php esc_html_e( 'Thumbnail', 'wp-my-instaram' ); ?></option> 
    93                     <option value="small" <?php selected( 'small', $size ) ?>><?php esc_html_e( 'Small', 'wp-my-instaram' ); ?></option> 
    94                     <option value="large" <?php selected( 'large', $size ) ?>><?php esc_html_e( 'Large', 'wp-my-instaram' ); ?></option> 
    95                     <option value="original" <?php selected( 'original', $size ) ?>><?php esc_html_e( 'Original', 'wp-my-instaram' ); ?></option> 
     92                    <option value="thumbnail" <?php selected( 'thumbnail', $size ) ?>><?php esc_html_e( 'Thumbnail', 'wp-my-instagram' ); ?></option> 
     93                    <option value="small" <?php selected( 'small', $size ) ?>><?php esc_html_e( 'Small', 'wp-my-instagram' ); ?></option> 
     94                    <option value="large" <?php selected( 'large', $size ) ?>><?php esc_html_e( 'Large', 'wp-my-instagram' ); ?></option> 
     95                    <option value="original" <?php selected( 'original', $size ) ?>><?php esc_html_e( 'Original', 'wp-my-instagram' ); ?></option> 
    9696                </select> 
    9797            </p> 
    98             <p><label for="<?php echo esc_attr( $this->get_field_id( 'layout' ) ); ?>"><?php esc_html_e( 'Items per row', 'wp-my-instaram' ); ?>:</label> 
     98            <p><label for="<?php echo esc_attr( $this->get_field_id( 'layout' ) ); ?>"><?php esc_html_e( 'Items per row', 'wp-my-instagram' ); ?>:</label> 
    9999                <select id="<?php echo esc_attr( $this->get_field_id( 'layout' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'layout' ) ); ?>" class="widefat"> 
    100                     <option value="default" <?php selected( 'default', $layout ) ?>><?php esc_html_e( 'Default', 'wp-my-instaram' ); ?></option> 
    101                     <option value="2" <?php selected( '2', $layout ) ?>><?php esc_html_e( '2 items', 'wp-my-instaram' ); ?></option> 
    102                     <option value="3" <?php selected( '3', $layout ) ?>><?php esc_html_e( '3 items', 'wp-my-instaram' ); ?></option> 
    103                     <option value="4" <?php selected( '4', $layout ) ?>><?php esc_html_e( '4 items', 'wp-my-instaram' ); ?></option> 
    104                     <option value="5" <?php selected( '5', $layout ) ?>><?php esc_html_e( '5 items', 'wp-my-instaram' ); ?></option> 
    105                     <option value="6" <?php selected( '6', $layout ) ?>><?php esc_html_e( '6 items', 'wp-my-instaram' ); ?></option> 
    106                     <option value="8" <?php selected( '8', $layout ) ?>><?php esc_html_e( '8 items', 'wp-my-instaram' ); ?></option> 
    107                     <option value="10" <?php selected( '10', $layout ) ?>><?php esc_html_e( '10 items', 'wp-my-instaram' ); ?></option> 
     100                    <option value="default" <?php selected( 'default', $layout ) ?>><?php esc_html_e( 'Default', 'wp-my-instagram' ); ?></option> 
     101                    <option value="2" <?php selected( '2', $layout ) ?>><?php esc_html_e( '2 items', 'wp-my-instagram' ); ?></option> 
     102                    <option value="3" <?php selected( '3', $layout ) ?>><?php esc_html_e( '3 items', 'wp-my-instagram' ); ?></option> 
     103                    <option value="4" <?php selected( '4', $layout ) ?>><?php esc_html_e( '4 items', 'wp-my-instagram' ); ?></option> 
     104                    <option value="5" <?php selected( '5', $layout ) ?>><?php esc_html_e( '5 items', 'wp-my-instagram' ); ?></option> 
     105                    <option value="6" <?php selected( '6', $layout ) ?>><?php esc_html_e( '6 items', 'wp-my-instagram' ); ?></option> 
     106                    <option value="8" <?php selected( '8', $layout ) ?>><?php esc_html_e( '8 items', 'wp-my-instagram' ); ?></option> 
     107                    <option value="10" <?php selected( '10', $layout ) ?>><?php esc_html_e( '10 items', 'wp-my-instagram' ); ?></option> 
    108108                </select> 
    109109            </p> 
    110             <p><label for="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>"><?php esc_html_e( 'Open links in', 'wp-my-instaram' ); ?>:</label> 
     110            <p><label for="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>"><?php esc_html_e( 'Open links in', 'wp-my-instagram' ); ?>:</label> 
    111111                <select id="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'target' ) ); ?>" class="widefat"> 
    112                     <option value="_self" <?php selected( '_self', $target ) ?>><?php esc_html_e( 'Current window (_self)', 'wp-my-instaram' ); ?></option> 
    113                     <option value="_blank" <?php selected( '_blank', $target ) ?>><?php esc_html_e( 'New window (_blank)', 'wp-my-instaram' ); ?></option> 
     112                    <option value="_self" <?php selected( '_self', $target ) ?>><?php esc_html_e( 'Current window (_self)', 'wp-my-instagram' ); ?></option> 
     113                    <option value="_blank" <?php selected( '_blank', $target ) ?>><?php esc_html_e( 'New window (_blank)', 'wp-my-instagram' ); ?></option> 
    114114                </select> 
    115115            </p> 
    116             <p><label for="<?php echo esc_attr( $this->get_field_id( 'link' ) ); ?>"><?php esc_html_e( 'Link text', 'wp-my-instaram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'link' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'link' ) ); ?>" type="text" value="<?php echo esc_attr( $link ); ?>" /></label></p> 
    117             <p><input id="<?php echo $this->get_field_id('preload'); ?>" name="<?php echo $this->get_field_name('preload'); ?>" type="checkbox"<?php checked( $preload ); ?> />&nbsp;<label for="<?php echo $this->get_field_id('preload'); ?>"><?php esc_html_e( 'Preload/Reload cache', 'wp-my-instaram'); ?></label></p> 
    118             <p><?php esc_html_e( 'When you check "Preload/Reload cache", new cache will be generated after saving this widget, this might take a while to finish.', 'wp-my-instaram'); ?></p> 
     116            <p><label for="<?php echo esc_attr( $this->get_field_id( 'link' ) ); ?>"><?php esc_html_e( 'Link text', 'wp-my-instagram' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'link' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'link' ) ); ?>" type="text" value="<?php echo esc_attr( $link ); ?>" /></label></p> 
     117            <p><input id="<?php echo $this->get_field_id('preload'); ?>" name="<?php echo $this->get_field_name('preload'); ?>" type="checkbox"<?php checked( $preload ); ?> />&nbsp;<label for="<?php echo $this->get_field_id('preload'); ?>"><?php esc_html_e( 'Preload/Reload cache', 'wp-my-instagram'); ?></label></p> 
     118            <p><?php esc_html_e( 'When you check "Preload/Reload cache", new cache will be generated after saving this widget, this might take a while to finish.', 'wp-my-instagram'); ?></p> 
    119119            <?php 
    120120        } 
  • wp-my-instagram/trunk/langs/en_US.po

    r1674534 r1675325  
    55"Project-Id-Version: WP My Instagram\n" 
    66"Report-Msgid-Bugs-To: http://wordpress.org/tags/_s\n" 
    7 "POT-Creation-Date: 2017-06-08 15:07+0700\n" 
    8 "PO-Revision-Date: 2017-06-08 15:07+0700\n" 
     7"POT-Creation-Date: 2017-06-10 14:23+0700\n" 
     8"PO-Revision-Date: 2017-06-10 14:23+0700\n" 
    99"Last-Translator: \n" 
    1010"Language-Team: mnmlthms.com <mnmlthms@gmail.com>\n" 
     
    2121"X-Poedit-SearchPath-0: ..\n" 
    2222 
    23 #: ../inc/public/main.php:23 
     23#: ../inc/public/main.php:33 
     24msgid "You need to input your username" 
     25msgstr "" 
     26 
     27#: ../inc/public/main.php:108 
    2428msgid "Unable to communicate with Instagram." 
    2529msgstr "" 
    2630 
    27 #: ../inc/public/main.php:26 
     31#: ../inc/public/main.php:111 
    2832msgid "Instagram did not return a 200." 
    2933msgstr "" 
    3034 
    31 #: ../inc/public/main.php:33 ../inc/public/main.php:38 
    32 #: ../inc/public/main.php:42 
     35#: ../inc/public/main.php:118 ../inc/public/main.php:123 
     36#: ../inc/public/main.php:127 
    3337msgid "Instagram has returned invalid data." 
    3438msgstr "" 
    3539 
    36 #: ../inc/public/main.php:71 
     40#: ../inc/public/main.php:156 
    3741msgid "Instagram Image" 
    3842msgstr "" 
    3943 
    40 #: ../inc/public/main.php:136 
     44#: ../inc/public/main.php:221 
    4145msgid "Instagram did not return any images." 
     46msgstr "" 
     47 
     48#: ../inc/public/main.php:232 
     49msgid "This param must be array." 
    4250msgstr "" 
    4351 
     
    5058msgstr "" 
    5159 
    52 #: ../inc/public/widget.php:100 
     60#: ../inc/public/widget.php:52 
     61msgid "You need to input your username!" 
     62msgstr "" 
     63 
     64#: ../inc/public/widget.php:68 
    5365msgid "Instagram" 
    5466msgstr "" 
    5567 
    56 #: ../inc/public/widget.php:104 
     68#: ../inc/public/widget.php:72 
    5769msgid "Follow Me!" 
    5870msgstr "" 
    5971 
    60 #: ../inc/public/widget.php:119 
     72#: ../inc/public/widget.php:87 
    6173msgid "Title" 
    6274msgstr "" 
    6375 
    64 #: ../inc/public/widget.php:120 
     76#: ../inc/public/widget.php:88 
    6577msgid "Username" 
    6678msgstr "" 
    6779 
    68 #: ../inc/public/widget.php:121 
     80#: ../inc/public/widget.php:89 
    6981msgid "Number of photos" 
    7082msgstr "" 
    7183 
    72 #: ../inc/public/widget.php:122 
     84#: ../inc/public/widget.php:90 
    7385msgid "Photo size" 
    7486msgstr "" 
    7587 
    76 #: ../inc/public/widget.php:124 
     88#: ../inc/public/widget.php:92 
    7789msgid "Thumbnail" 
    7890msgstr "" 
    7991 
    80 #: ../inc/public/widget.php:125 
     92#: ../inc/public/widget.php:93 
    8193msgid "Small" 
    8294msgstr "" 
    8395 
    84 #: ../inc/public/widget.php:126 
     96#: ../inc/public/widget.php:94 
    8597msgid "Large" 
    8698msgstr "" 
    8799 
    88 #: ../inc/public/widget.php:127 
     100#: ../inc/public/widget.php:95 
    89101msgid "Original" 
    90102msgstr "" 
    91103 
    92 #: ../inc/public/widget.php:130 
    93 msgid "Item per row" 
     104#: ../inc/public/widget.php:98 
     105msgid "Items per row" 
    94106msgstr "" 
    95107 
    96 #: ../inc/public/widget.php:132 
     108#: ../inc/public/widget.php:100 
    97109msgid "Default" 
    98110msgstr "" 
    99111 
    100 #: ../inc/public/widget.php:133 
    101 msgid "2 cols" 
     112#: ../inc/public/widget.php:101 
     113msgid "2 items" 
    102114msgstr "" 
    103115 
    104 #: ../inc/public/widget.php:134 
    105 msgid "3 cols" 
     116#: ../inc/public/widget.php:102 
     117msgid "3 items" 
    106118msgstr "" 
    107119 
    108 #: ../inc/public/widget.php:135 
    109 msgid "4 cols" 
     120#: ../inc/public/widget.php:103 
     121msgid "4 items" 
    110122msgstr "" 
    111123 
    112 #: ../inc/public/widget.php:136 
    113 msgid "5 cols" 
     124#: ../inc/public/widget.php:104 
     125msgid "5 items" 
    114126msgstr "" 
    115127 
    116 #: ../inc/public/widget.php:137 
    117 msgid "6 cols" 
     128#: ../inc/public/widget.php:105 
     129msgid "6 items" 
    118130msgstr "" 
    119131 
    120 #: ../inc/public/widget.php:138 
    121 msgid "8 cols" 
     132#: ../inc/public/widget.php:106 
     133msgid "8 items" 
    122134msgstr "" 
    123135 
    124 #: ../inc/public/widget.php:141 
     136#: ../inc/public/widget.php:107 
     137msgid "10 items" 
     138msgstr "" 
     139 
     140#: ../inc/public/widget.php:110 
    125141msgid "Open links in" 
    126142msgstr "" 
    127143 
    128 #: ../inc/public/widget.php:143 
     144#: ../inc/public/widget.php:112 
    129145msgid "Current window (_self)" 
    130146msgstr "" 
    131147 
    132 #: ../inc/public/widget.php:144 
     148#: ../inc/public/widget.php:113 
    133149msgid "New window (_blank)" 
    134150msgstr "" 
    135151 
    136 #: ../inc/public/widget.php:147 
     152#: ../inc/public/widget.php:116 
    137153msgid "Link text" 
    138154msgstr "" 
    139155 
    140 #: ../inc/public/widget.php:148 
     156#: ../inc/public/widget.php:117 
    141157msgid "Preload/Reload cache" 
    142158msgstr "" 
    143159 
    144 #: ../inc/public/widget.php:149 
     160#: ../inc/public/widget.php:118 
    145161msgid "" 
    146162"When you check \"Preload/Reload cache\", new cache will be generated after " 
  • wp-my-instagram/trunk/readme.txt

    r1674534 r1675325  
    44Tags: instagram, widget 
    55Requires at least: 3.9 
    6 Tested up to: 4.7.5 
     6Tested up to: 4.8 
    77Stable tag: 1.0.0 
    88License: GPLv2 or later 
     
    2626### How to use? 
    2727 
    28 ####. Using shortcode `[wp_my_instagram]`: 
     28**1. Using shortcode** `[wp_my_instagram]`: 
    2929 
    3030You can place above shortcode into your posts/pages or widget (make sure shortcode is enabled in widget) 
     
    4141`[wp_my_instagram username="wordpress" limit="12" layout="3" size="large" link=""]` 
    4242 
    43 ####. Using widget in Appearance -> Widget and look for **WP My Instagram** widget. 
     43**Using widget in Appearance -> Widget and look for **WP My Instagram** widget.** 
    4444 
    4545== Frequently Asked Questions == 
     
    6666== Changelog == 
    6767 
    68 = 1.0 = 
     68= 1.0.1 = 
     69* Fix Minor bugs 
     70* Tested Up to WP 4.8 
     71 
     72= 1.0.0 = 
    6973* Initial Release 
    7074 
  • wp-my-instagram/trunk/wp-my-instagram.php

    r1674534 r1675325  
    44Plugin URI: https://wordpress.org/plugins/wp-my-instagram 
    55Description: A better version of WP Instagram Widget, allow you get more than 12 images from instagram 
    6 Version: 1.0.0 
     6Version: 1.0.1 
    77Author: mnmlthms 
    88Author URI: http://mnmlthms.com 
     
    2929if ( ! defined( 'ABSPATH' ) ) exit; 
    3030 
    31 define( 'WP_MY_INSTAGRAM_VERSION', '1.0' ); 
     31define( 'WP_MY_INSTAGRAM_VERSION', '1.0.1' ); 
    3232define( 'WP_MY_INSTAGRAM_OPTION', 'wp_my_instagram_instagram' ); 
    3333 
Note: See TracChangeset for help on using the changeset viewer.