WordPress.org

Plugin Directory

Changeset 710788


Ignore:
Timestamp:
05/10/13 09:08:11 (5 years ago)
Author:
Skyree
Message:

Version 1.0.1 : Bug fix on title and content classes options

Location:
section-page
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • section-page/trunk/owc-section-page.php

    r709968 r710788  
    22/* 
    33Plugin Name: Section Page 
    4 Plugin URI: https://github.com/Skyree/owc-section-page 
     4Plugin URI: http://wordpress.org/extend/plugins/section-page/ 
    55Description: Section Page is a simple wordpress plugin allowing you to divide a page into sliding sections 
    6 Version: 1.0 
     6Version: 1.0.1 
    77Author: <a href="https://github.com/Skyree">Loïc B. Florin</a>  
    88Author URI: Loïc B. Florin 
     
    6060         
    6161            $options = $this->getAdminOptions(); 
    62             $content = preg_replace( '#(\[section\=)(.*?)(\])(.*?)(\[endsection\])#si', '<div class="owc-section-page '.$options['owc_sp_class'].'" data-up="'.$options['owc_sp_close_char'].'" data-down="'.$options['owc_sp_open_char'].'"><div class="owc-sp-open '.$options['owc_sp_class_title'].'"><'.$options['owc_sp_title'].'>'.($options['owc_sp_use_char']?'<span class="owc-sp-toggle-arrow">'.$options['owc_sp_close_char'].'</span> ':'').'$2</'.$options['owc_sp_title'].'></div><div class="owc-sp-content '.$options['owc_sp_class'].'">$4</div></div>', $content ); 
     62            $content = preg_replace( '#(\[section\=)(.*?)(\])(.*?)(\[endsection\])#si', '<div class="owc-section-page '.$options['owc_sp_class'].'" data-up="'.$options['owc_sp_close_char'].'" data-down="'.$options['owc_sp_open_char'].'"><div class="owc-sp-open '.$options['owc_sp_class_title'].'"><'.$options['owc_sp_title'].'>'.($options['owc_sp_use_char']?'<span class="owc-sp-toggle-arrow">'.$options['owc_sp_close_char'].'</span> ':'').'$2</'.$options['owc_sp_title'].'></div><div class="owc-sp-content '.$options['owc_sp_class_content'].'">$4</div></div>', $content ); 
    6363            return $content; 
    6464        } 
     
    6969                    'owc_sp_title' => 'h2', 
    7070                    'owc_sp_class' => '', 
    71                     'owc_sp_class_open' => '', 
     71                    'owc_sp_class_title' => '', 
    7272                    'owc_sp_class_content' => '', 
    7373                    'owc_sp_use_char' => true, 
  • section-page/trunk/readme.txt

    r709974 r710788  
    22Contributors: Skyree 
    33Donate link:  
    4 Tags: content, shortcode, section 
     4Tags: content, shortcode, section, dropdown 
    55Requires at least: 3.0 
    66Tested up to: 3.5.1 
    7 Stable tag: 1.0 
     7Stable tag: 1.0.1 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    57572. This is the tinymce button added by the plugin and the shortcode generated. 
    58583. This is how your content will look with the plugin activated and shortcodes placed. 
     59 
     60== Changelog == 
     61 
     62= 1.0.1 = 
     63* Bug fix on `HTML classes for section title` and `HTML classes for section content`. Please upgrade if you want to use your own classes on these elements. Else you can use `owc-sp-open` and `owc-sp-content` which are the default classes. 
Note: See TracChangeset for help on using the changeset viewer.