Plugin Directory

Changeset 996451


Ignore:
Timestamp:
09/25/2014 05:47:20 AM (12 years ago)
Author:
yatendra16
Message:

New Version1.1

Location:
instapic/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • instapic/trunk/feeds/instagram/instagram-feed.php

    r831379 r996451  
    11<?php
     2
    23class Instafeeds {
    34
     
    5657
    5758ob_start();
    58  $feed;
     59$feed;
     60$hashtag;
    5961
    6062
    6163
    62 $hashtag;
    63 $accessToken = "407330243.8ec8a5b.b239a1bd95904a2cb34bc6ad851160b8";
    64     if($feed)
     64 $accessToken = get_option('user_acc_token');
     65   
     66if($feed && $accessToken)
    6567    {
    6668
     
    109111    }   
    110112       
    111     if($hashtag)
     113    if($hashtag && $accessToken)
    112114    {
    113         $insta_url = $this->fetchData("https://api.instagram.com/v1/tags/{$hashtag}/media/recent/?access_token={$accessToken}");
     115
     116
     117    $insta_url = $this->fetchData("https://api.instagram.com/v1/tags/{$hashtag}/media/recent/?access_token={$accessToken}");
    114118        $insta_data = json_decode($insta_url);
     119
    115120        ?><div class="fts-instagram">
    116121        <?php
  • instapic/trunk/instapic.php

    r831379 r996451  
    44Plugin URI: http://phpwords.wordpress.com/
    55Description: A Plugin For Showing InstaGram Images on Your Site From Your Username, Hashtag(#) or Both
    6 Version: 1.0
     6Version: 1.1
    77Author: Yatendra
    88Author URI: http://phpwords.wordpress.com/
  • instapic/trunk/readme.txt

    r900655 r996451  
    44Tags:instagram,images, pictures
    55Requires at least: 3.5
    6 Tested up to: 3.9
     6Tested up to: 4.0
    77Stable tag: 1.1
    88License: GPLv2 or later
     
    4343
    4444= 1.1 =
     45* Fixed Some bugs.
     46
     47= 1.0 =
    4548
    4649== Upgrade Notice ==
  • instapic/trunk/setting_insta.php

    r831379 r996451  
    11<?php
    2 
     2require_once 'instagram.class.php';
    33$cont_choice = $_REQUEST['pl_cont_choice'];
    44$username = $_REQUEST['pl_username'];
     
    1212    update_option('pl_username', $username);
    1313    update_option('pl_hashtag', $hashtag);
    14     echo '<div class="updated">
     14    echo '<div class="updated settings-error">
    1515        <p>'.__("Options Saved Successfully.").'</p>
    1616        </div>';
     
    2626$pl_hashtag =get_option('pl_hashtag');
    2727?>
     28
     29<div class="wrap">
     30<?php include_once('admin_settings.php');?>
    2831     
    29  <div id="widgets-left">
    30             <div class="widgets-holder-wrap">
    31                 <div class="sidebar-name">
    32                     <h3>Display Options</h3>
    33                 </div>
    34                 <div class="widget-holder"  style="border-width:0px 0px 0px 0px !important;">
    35                     <div class="content-column">
    36                         <form name="inf1" id="inf1" method="post" action="">
     32
     33
     34
     35
     36<div class="space-tab"></div>
     37
     38
     39<form name="inf1" id="inf1" method="post" action="">
    3740                           
    3841                            <input type="hidden" name="hidf" id="hidf" value='1'>
    3942                            <table class="widefat">
     43                <thead>
     44                    <tr>
     45                      <th class="inst-th"><strong>Display Options</strong></th>
     46                      <th>&nbsp;</th>
     47                    </tr>
     48                </thead>
     49                   
    4050                                <tbody>
    4151                                    <tr valign="top">
     
    5161                                    <tr valign="top">
    5262                                        <th scope="row"><label for="username">Username</label></th>
    53                                         <td><input name="pl_username" type="text" id="pl_username" value="<?php echo $pl_username;?>" class="regular-text"></td>
     63                                        <td><input name="pl_username" type="text" id="pl_username" value="<?php echo $pl_username;?>" class="regular-text" >&nbsp;{Your Instagram Username from which you want feed display.}</td>
    5464                                    </tr>
    5565
     
    5868                                    <tr valign="top">
    5969                                        <th scope="row"><label for="hashtag">Hashtag</label></th>
    60                                         <td><input name="pl_hashtag" type="text" id="pl_hashtag" value="<?php echo $pl_hashtag;?>" class="regular-text"></td>
     70                                        <td><input name="pl_hashtag" type="text" id="pl_hashtag" value="<?php echo $pl_hashtag;?>" class="regular-text">&nbsp;{Your Instagram Hashtag from which you want feed display.}</td>
    6171                                    </tr>
    6272
     
    103113                            </table>
    104114                           </form>
    105                     </div>
    106                 </div>
    107                 <br class="clear">
    108             </div>
    109         </div>
     115
     116
     117
     118
     119
     120</div>
Note: See TracChangeset for help on using the changeset viewer.