Changeset 2687312
- Timestamp:
- 03/02/2022 08:43:15 AM (4 years ago)
- Location:
- shorthand-connect
- Files:
-
- 14 added
- 4 edited
-
tags/1.3.10 (added)
-
tags/1.3.10/README.txt (added)
-
tags/1.3.10/config.default.php (added)
-
tags/1.3.10/includes (added)
-
tags/1.3.10/includes/api-v2.php (added)
-
tags/1.3.10/includes/api.php (added)
-
tags/1.3.10/includes/icon.png (added)
-
tags/1.3.10/includes/index.php (added)
-
tags/1.3.10/includes/shorthand_options.php (added)
-
tags/1.3.10/index.php (added)
-
tags/1.3.10/shorthand_connect.php (added)
-
tags/1.3.10/templates (added)
-
tags/1.3.10/templates/abstract.php (added)
-
tags/1.3.10/templates/single-shorthand_story.php (added)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/config.default.php (modified) (1 diff)
-
trunk/includes/api-v2.php (modified) (1 diff)
-
trunk/includes/shorthand_options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shorthand-connect/trunk/README.txt
r2602717 r2687312 4 4 Tags: shorthand, api 5 5 Requires at least: 4 6 Tested up to: 5. 8.17 Stable tag: 1.3. 96 Tested up to: 5.9.1 7 Stable tag: 1.3.10 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 17 17 == Installation == 18 18 19 1a. Install the search for the plugin and install it within wp-admin: 20 1b. Or, Upload `shorthand_connect` to the `/wp-content/plugins/` directory 21 2. Activate the plugin through the 'Plugins' menu in WordPress 22 3. Add your credentials: 23 V1 - Go to Settings > Shorthand and enter in your user ID and API Key (get these from your account page in the Shorthand editor). 24 v2 - Go to your organisation in the top right, and click the cog to get to settings. Scroll to the bottom, and generate a new key. Go to Settings > Shorthand and enter in your Token. 19 1. Install the search for the plugin and install it within wp-admin. 20 - Or alternately upload `shorthand_connect` to the `/wp-content/plugins/` directory. 21 2. Activate the plugin through the 'Plugins' menu in WordPress. 22 3. Go to Settings -> Shorthand to add your Shorthand API Token retrieved in the next step. 23 3. Get your API token from Shorthand.com: (Only Admin/Owners will have access to generate API Tokens) 24 - Open the workspace settings; either by clicking your organisation name from the dashboard OR from the top right menu when editing a story. 25 - Under the sub-heading API Tokens generate either a Team Token or Workspace Token. 26 - A Team Token only has access to published/prepared stories under the associated team. 27 - A Workspace Token has access to all published/prepared stories. 25 28 4. Optionally change the CSS settings in the options to best present stories within your theme. 26 29 5. Optionally your theme can override the display of Shorthand stories via `single-shorthand_story.php` in your theme directory. … … 34 37 35 38 == Changelog == 39 40 = 1.3.10 = 41 * Updated Installation instructions (Documentation only) 36 42 37 43 = 1.3.9 = … … 134 140 - In your wp-config.php file, add `define('FS_CHMOD_DIR', 0777 )`; 135 141 - Contact [email protected] and [email protected] for further support and feedback 142 - Some WP Plugins can aggressively cache or control how content is displayed at the theme-level; check page templates to ensure nothing is conflicting. -
shorthand-connect/trunk/config.default.php
r2483930 r2687312 1 1 <?php 2 2 3 $serverURL = 'https://ap p.shorthand.com';3 $serverURL = 'https://api.shorthand.com'; 4 4 $serverv2URL = 'https://api.shorthand.com'; 5 5 $allowversionswitch = true; -
shorthand-connect/trunk/includes/api-v2.php
r2602709 r2687312 6 6 global $serverv2URL; 7 7 $token = get_option('sh_v2_token'); 8 8 9 9 if (!$token) { 10 10 return false; -
shorthand-connect/trunk/includes/shorthand_options.php
r2009514 r2687312 70 70 if ($sh_css == '') { 71 71 $no_css = true; 72 update_option('sh_css', $default_site_css); 72 if(isset($default_site_css)){ 73 update_option('sh_css', $default_site_css); 74 } 73 75 $sh_css = $default_sh_site_css; 74 76 } … … 105 107 <td><input type="text" id="sh_v2_token" name="sh_v2_token" value="<?php echo esc_attr($v2_token); ?>" size="28"></td> 106 108 </tr> 107 <?php if($showServerURL || $serverURL != "https://app.shorthand.com") { ?>108 <tr class="v1row">109 <th scope="row"><?php _e("Service v1 URL" ); ?></th>110 <td><input type="text" disabled value="<?php echo esc_attr($serverURL); ?>" size="28"></td>111 </tr>112 <?php } ?>113 <?php if($showServerURL || $serverv2URL != "https://api.shorthand.com") { ?>114 <tr class="v2row">115 <th scope="row v1row"><?php _e("Service v2 URL" ); ?></th>116 <td><input type="text" disabled value="<?php echo esc_attr($serverv2URL); ?>" size="28"></td>117 </tr>118 <?php } ?>119 109 </tbody></table> 120 110 <p class="submit">
Note: See TracChangeset
for help on using the changeset viewer.