Changeset 996451
- Timestamp:
- 09/25/2014 05:47:20 AM (12 years ago)
- Location:
- instapic/trunk
- Files:
-
- 2 added
- 4 edited
-
admin_settings.php (added)
-
feeds/instagram/instagram-feed.php (modified) (3 diffs)
-
instagram.class.php (added)
-
instapic.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
setting_insta.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
instapic/trunk/feeds/instagram/instagram-feed.php
r831379 r996451 1 1 <?php 2 2 3 class Instafeeds { 3 4 … … 56 57 57 58 ob_start(); 58 $feed; 59 $feed; 60 $hashtag; 59 61 60 62 61 63 62 $hashtag;63 $accessToken = "407330243.8ec8a5b.b239a1bd95904a2cb34bc6ad851160b8"; 64 if($feed)64 $accessToken = get_option('user_acc_token'); 65 66 if($feed && $accessToken) 65 67 { 66 68 … … 109 111 } 110 112 111 if($hashtag )113 if($hashtag && $accessToken) 112 114 { 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}"); 114 118 $insta_data = json_decode($insta_url); 119 115 120 ?><div class="fts-instagram"> 116 121 <?php -
instapic/trunk/instapic.php
r831379 r996451 4 4 Plugin URI: http://phpwords.wordpress.com/ 5 5 Description: A Plugin For Showing InstaGram Images on Your Site From Your Username, Hashtag(#) or Both 6 Version: 1. 06 Version: 1.1 7 7 Author: Yatendra 8 8 Author URI: http://phpwords.wordpress.com/ -
instapic/trunk/readme.txt
r900655 r996451 4 4 Tags:instagram,images, pictures 5 5 Requires at least: 3.5 6 Tested up to: 3.96 Tested up to: 4.0 7 7 Stable tag: 1.1 8 8 License: GPLv2 or later … … 43 43 44 44 = 1.1 = 45 * Fixed Some bugs. 46 47 = 1.0 = 45 48 46 49 == Upgrade Notice == -
instapic/trunk/setting_insta.php
r831379 r996451 1 1 <?php 2 2 require_once 'instagram.class.php'; 3 3 $cont_choice = $_REQUEST['pl_cont_choice']; 4 4 $username = $_REQUEST['pl_username']; … … 12 12 update_option('pl_username', $username); 13 13 update_option('pl_hashtag', $hashtag); 14 echo '<div class="updated ">14 echo '<div class="updated settings-error"> 15 15 <p>'.__("Options Saved Successfully.").'</p> 16 16 </div>'; … … 26 26 $pl_hashtag =get_option('pl_hashtag'); 27 27 ?> 28 29 <div class="wrap"> 30 <?php include_once('admin_settings.php');?> 28 31 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=""> 37 40 38 41 <input type="hidden" name="hidf" id="hidf" value='1'> 39 42 <table class="widefat"> 43 <thead> 44 <tr> 45 <th class="inst-th"><strong>Display Options</strong></th> 46 <th> </th> 47 </tr> 48 </thead> 49 40 50 <tbody> 41 51 <tr valign="top"> … … 51 61 <tr valign="top"> 52 62 <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" > {Your Instagram Username from which you want feed display.}</td> 54 64 </tr> 55 65 … … 58 68 <tr valign="top"> 59 69 <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"> {Your Instagram Hashtag from which you want feed display.}</td> 61 71 </tr> 62 72 … … 103 113 </table> 104 114 </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.