Plugin Directory

Changeset 845901


Ignore:
Timestamp:
01/26/2014 10:07:07 PM (12 years ago)
Author:
simonwaldherr
Message:

commit v0.5.1

Location:
shownotes/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • shownotes/trunk/readme.txt

    r841367 r845901  
    7373== Changelog ==
    7474
     75= 0.5.1 =
     76* a few fixes
     77* performance improvements
     78
    7579= 0.5.0 =
    7680* analyze osf shownotes
     
    215219== Upgrade Notice ==
    216220
     221= 0.5.1 =
     222a few fixes and performance improvements
     223
    217224= 0.5.0 =
    218225This 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  
    44/**
    55 * @package Shownotes
    6  * @version 0.5.0
     6 * @version 0.5.1
    77 */
    88
     
    1212Description: Convert OSF-Shownotes to HTML for your Podcast
    1313Author: Simon Waldherr
    14 Version: 0.5.0
     14Version: 0.5.1
    1515Author URI: http://waldherr.eu
    1616License: MIT License
     
    2121include_once 'micromarkdown/micromarkdown.php';
    2222$shownotes_options = get_option('shownotes_options');
     23$shownotes_cache = array();
    2324
    2425function shownotesshortcode_add_styles() {
     
    3940      'style_five'
    4041    );
    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');
    4243  }
    4344}
     
    122123function osf_shownotes_shortcode($atts, $content = '') {
    123124  global $shownotes_options;
     125  global $shownotes_cache;
    124126  $export = '';
    125127  $post_id = get_the_ID();
     
    215217    }
    216218
    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
    218225    if (($mode == 'block style') || ($mode == 'button style')) {
    219226      $export = osf_export_block($shownotesArray['export'], $fullint, $mode);
     
    239246    }
    240247    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>';
    242249    }
    243250  }
     
    280287function shownotesshortcode_add_admin_scripts() {
    281288  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);
    286293  }
    287294}
    288295function shownotesshortcode_add_scripts() {
    289296  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);
    291298  }
    292299}
  • shownotes/trunk/snsettings.php

    r841367 r845901  
    9696
    9797  $options = get_option('shownotes_options');
    98   $version = '0.5.0';
     98  $version = '0.5.1';
    9999
    100100  if(isset($options['version'])) {
     
    102102    if($version != $lastversion) {
    103103      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      }
    104107      if(versionInt($lastversion) < versionInt('0.5.0')) {
    105108        print '<p><b>0.5.0: </b>shownotes are searchable, show validity of shownotes, multisite bugfix, small fixes, many new icons, ...</p>';
     
    300303  $scriptname = explode('/wp-admin', $_SERVER['SCRIPT_FILENAME']);
    301304  $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>
    303306  The <strong>Including file</strong> is: <code>wp-admin' . $scriptname[1] . '</code><br>
    304307  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 */
    22
    33.osf_chaptertime {
     
    1717.osf_chaptertime,
    1818.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;
    2525}
    2626
Note: See TracChangeset for help on using the changeset viewer.