Changeset 845901
- Timestamp:
- 01/26/2014 10:07:07 PM (12 years ago)
- Location:
- shownotes/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (2 diffs)
-
shownotes.php (modified) (8 diffs)
-
snsettings.php (modified) (3 diffs)
-
static/style_three.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shownotes/trunk/readme.txt
r841367 r845901 73 73 == Changelog == 74 74 75 = 0.5.1 = 76 * a few fixes 77 * performance improvements 78 75 79 = 0.5.0 = 76 80 * analyze osf shownotes … … 215 219 == Upgrade Notice == 216 220 221 = 0.5.1 = 222 a few fixes and performance improvements 223 217 224 = 0.5.0 = 218 225 This version is recommended for all podcasters outside of metaebene. It delivers searchable shownotes, a osf validity indicator, wordpress multisite support, small fixes and many new icons -
shownotes/trunk/shownotes.php
r841367 r845901 4 4 /** 5 5 * @package Shownotes 6 * @version 0.5. 06 * @version 0.5.1 7 7 */ 8 8 … … 12 12 Description: Convert OSF-Shownotes to HTML for your Podcast 13 13 Author: Simon Waldherr 14 Version: 0.5. 014 Version: 0.5.1 15 15 Author URI: http://waldherr.eu 16 16 License: MIT License … … 21 21 include_once 'micromarkdown/micromarkdown.php'; 22 22 $shownotes_options = get_option('shownotes_options'); 23 $shownotes_cache = array(); 23 24 24 25 function shownotesshortcode_add_styles() { … … 39 40 'style_five' 40 41 ); 41 wp_enqueue_style('shownotesstyle', plugins_url('static/' . $css_styles[$shownotes_options['css_id']] . '.css', __FILE__), array(), '0.5. 0');42 wp_enqueue_style('shownotesstyle', plugins_url('static/' . $css_styles[$shownotes_options['css_id']] . '.css', __FILE__), array(), '0.5.1'); 42 43 } 43 44 } … … 122 123 function osf_shownotes_shortcode($atts, $content = '') { 123 124 global $shownotes_options; 125 global $shownotes_cache; 124 126 $export = ''; 125 127 $post_id = get_the_ID(); … … 215 217 } 216 218 217 $shownotesArray = osf_parser($shownotesString, $data); 219 if (isset($shownotes_cache[$post_id])) { 220 $shownotesArray = $shownotes_cache[$post_id]; 221 } else { 222 $shownotesArray = osf_parser($shownotesString, $data); 223 } 224 218 225 if (($mode == 'block style') || ($mode == 'button style')) { 219 226 $export = osf_export_block($shownotesArray['export'], $fullint, $mode); … … 239 246 } 240 247 if (!is_feed()) { 241 $export = '<div style="display:none;visibility:hidden;" class="mp4chaps">' . trim(osf_export_chapterlist($shownotesArray['export'])) . '</div>' . $export;248 $export .= '<div style="display:none;visibility:hidden;" class="mp4chaps">' . trim(osf_export_chapterlist($shownotesArray['export'])) . '</div>'; 242 249 } 243 250 } … … 280 287 function shownotesshortcode_add_admin_scripts() { 281 288 if (!is_feed()) { 282 wp_enqueue_script('majax', plugins_url('static/majaX/majax.js', __FILE__), array(), '0.5. 0', false);283 wp_enqueue_script('importPad', plugins_url('static/shownotes_admin.js', __FILE__), array(), '0.5. 0', false);284 wp_enqueue_script('tinyosf', plugins_url('static/tinyOSF/tinyosf.js', __FILE__), array(), '0.5. 0', false);285 wp_enqueue_script('tinyosf_exportmodules', plugins_url('static/tinyOSF/tinyosf_exportmodules.js', __FILE__), array(), '0.5. 0', false);289 wp_enqueue_script('majax', plugins_url('static/majaX/majax.js', __FILE__), array(), '0.5.1', false); 290 wp_enqueue_script('importPad', plugins_url('static/shownotes_admin.js', __FILE__), array(), '0.5.1', false); 291 wp_enqueue_script('tinyosf', plugins_url('static/tinyOSF/tinyosf.js', __FILE__), array(), '0.5.1', false); 292 wp_enqueue_script('tinyosf_exportmodules', plugins_url('static/tinyOSF/tinyosf_exportmodules.js', __FILE__), array(), '0.5.1', false); 286 293 } 287 294 } 288 295 function shownotesshortcode_add_scripts() { 289 296 if (!is_feed()) { 290 wp_enqueue_script('importPad', plugins_url('static/shownotes.js', __FILE__), array(), '0.5. 0', false);297 wp_enqueue_script('importPad', plugins_url('static/shownotes.js', __FILE__), array(), '0.5.1', false); 291 298 } 292 299 } -
shownotes/trunk/snsettings.php
r841367 r845901 96 96 97 97 $options = get_option('shownotes_options'); 98 $version = '0.5. 0';98 $version = '0.5.1'; 99 99 100 100 if(isset($options['version'])) { … … 102 102 if($version != $lastversion) { 103 103 print '<h3>Version</h3><p>Congratulations, you just upgraded the <b>shownotes</b> plugin from <b>version '.$lastversion.'</b> to <b>version '.$version.'</b></p>'; 104 if(versionInt($lastversion) < versionInt('0.5.1')) { 105 print '<p><b>0.5.1: </b>a few fixes and performance improvements</p>'; 106 } 104 107 if(versionInt($lastversion) < versionInt('0.5.0')) { 105 108 print '<p><b>0.5.0: </b>shownotes are searchable, show validity of shownotes, multisite bugfix, small fixes, many new icons, ...</p>'; … … 300 303 $scriptname = explode('/wp-admin', $_SERVER['SCRIPT_FILENAME']); 301 304 $dirname = explode('/wp-content', dirname(__FILE__)); 302 print '<p>This is <strong>Version 0.5. 0</strong> of the <strong> Shownotes</strong>.<br>305 print '<p>This is <strong>Version 0.5.1</strong> of the <strong> Shownotes</strong>.<br> 303 306 The <strong>Including file</strong> is: <code>wp-admin' . $scriptname[1] . '</code><br> 304 307 The <strong>plugin-directory</strong> is: <code>wp-content' . $dirname[1] . '</code></p> -
shownotes/trunk/static/style_three.css
r841367 r845901 1 /* https://github.com/SimonWaldherr/wp-osf-shownotes/blob/master/static/style_three.css 0.5. 0*/1 /* https://github.com/SimonWaldherr/wp-osf-shownotes/blob/master/static/style_three.css 0.5.1 */ 2 2 3 3 .osf_chaptertime { … … 17 17 .osf_chaptertime, 18 18 .osf_chapter { 19 display: inline -block;20 vertical-align: text-top; 21 } 22 23 .osf_chaptertime { 24 vertical-align: middle;19 display: inline; 20 } 21 22 .osf_items { 23 padding-top: 5px; 24 padding-bottom: 5px; 25 25 } 26 26
Note: See TracChangeset
for help on using the changeset viewer.