Changeset 871277
- Timestamp:
- 03/07/2014 03:57:32 PM (12 years ago)
- Location:
- pushquote/trunk
- Files:
-
- 5 edited
-
functions.php (modified) (2 diffs)
-
includes/core.php (modified) (1 diff)
-
js/pullquote.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
realtidbits-pushquote.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pushquote/trunk/functions.php
r653743 r871277 64 64 register_setting( 'general', 'realtidbitsPushquote_options' ); 65 65 add_settings_field('pushquotes_show_credits', '<label for="show_credits">'.__('Show PushQuotes credits text?' ).'</label>' , array(&$this, 'fields_html') , 'general' ); 66 add_settings_field('pushquotes_login', '<label for="login">'.__('Bit.ly Login' ).'</label>' , array(&$this, 'login') , 'general' ); 67 add_settings_field('pushquotes_api_key', '<label for="api_key">'.__('Bit.ly Api Key' ).'</label>' , array(&$this, 'api_key') , 'general' ); 66 68 } 67 69 function fields_html() { … … 74 76 echo '<input type="checkbox" id="realtidbitsPushquote_options[show_credits]" name="realtidbitsPushquote_options[show_credits]" value="1" '.($value ? "checked='checked'" : "").' />'; 75 77 } 78 function login() { 79 global $realtidbitsPushquote; 80 if(is_array($realtidbitsPushquote)) { 81 $value = $realtidbitsPushquote['login']; 82 } else { 83 $value = ""; 84 } 85 echo '<input type="text" id="realtidbitsPushquote_options[login]" name="realtidbitsPushquote_options[login]" value="'.$value.'" />'; 86 } 87 function api_key() { 88 global $realtidbitsPushquote; 89 if(is_array($realtidbitsPushquote)) { 90 $value = $realtidbitsPushquote['api_key']; 91 } else { 92 $value = ""; 93 } 94 echo '<input type="text" id="realtidbitsPushquote_options[api_key]" name="realtidbitsPushquote_options[api_key]" value="'.$value.'" />'; 95 } 76 96 } 77 97 ?> -
pushquote/trunk/includes/core.php
r653743 r871277 20 20 wp_enqueue_script( 'realtidbitsPushquote', realtidbitsPushquote_plugin_url( 'js/pullquote.js' ), 21 21 array('jquery'), REALPUSHQUOTE_VER, false); 22 wp_localize_script( 'realtidbitsPushquote', 'PushquoteAjax', array( 'show_credits' => (is_array($realtidbitsPushquote) ? $realtidbitsPushquote['show_credits'] : 0 ) ) );22 wp_localize_script( 'realtidbitsPushquote', 'PushquoteAjax', array( 'show_credits' => (is_array($realtidbitsPushquote) ? $realtidbitsPushquote['show_credits'] : 0 ), 'login' => $realtidbitsPushquote['login'], 'api_key' => $realtidbitsPushquote['api_key'] ) ); 23 23 } 24 24 } -
pushquote/trunk/js/pullquote.js
r653743 r871277 7 7 8 8 jQuery(document).ready(function() { 9 var login = "kga245",10 api_key = "R_156fc6d6bba784a8b3cab2e574fc61db",9 var login = PushquoteAjax.login, 10 api_key = PushquoteAjax.api_key, 11 11 pathname = window.location.href, 12 12 pagetitle = document.title, -
pushquote/trunk/readme.txt
r653750 r871277 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 26 26 == Changelog == 27 27 28 = 1.1 = 29 * Added Bit.ly credentials option 30 28 31 = 1.0 = 29 32 * Release -
pushquote/trunk/realtidbits-pushquote.php
r653743 r871277 3 3 Plugin Name: PushQuote Plugin 4 4 Description: Add pullquotes easily. 5 Version: 1. 05 Version: 1.1 6 6 Author: Realtidbits 7 7 Author URI: http://realtidbits.com/ … … 15 15 $realtidbitsPushquote = get_option('realtidbitsPushquote_options'); 16 16 17 define("REALPUSHQUOTE_VER","1. 0",false);//Current Version of this plugin17 define("REALPUSHQUOTE_VER","1.1",false);//Current Version of this plugin 18 18 if ( ! defined( 'REALPUSHQUOTE_PLUGIN_BASENAME' ) ) 19 19 define( 'REALPUSHQUOTE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.