Skip to content

Commit

Permalink
5.1.90
Browse files Browse the repository at this point in the history
  • Loading branch information
minimus committed Aug 22, 2014
1 parent 2033271 commit ca6fecf
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 8 deletions.
45 changes: 42 additions & 3 deletions css/wp-special-textboxes.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,50 @@
* @copyright 2009 - 2010
*/

header("Content-type: text/css");
include("../../../../wp-load.php");
$root = dirname(dirname(dirname(dirname(dirname(__FILE__)))));

ini_set('html_errors', 0);

define('SHORTINIT', true);

function sanitize_option($option, $value) {
return $value;
}

require_once( $root . '/wp-load.php' );

global $wpdb;

$stbOptions = get_option('SpecialTextBoxesAdminOptions');

function getStbStyles() {
global $wpdb;
$sTable = $wpdb->prefix . "stb_styles";
$styles = array();

if($wpdb->get_var("SHOW TABLES LIKE '$sTable'") == $sTable) {
$sSql = "SELECT slug, caption, js_style, css_style, stype, trash FROM $sTable WHERE trash IS FALSE;";
$rows = $wpdb->get_results($sSql, ARRAY_A);
$style = array();
foreach($rows as $value) {
$style['slug'] = $value['slug'];
$style['name'] = $value['caption'];
$style['stype'] = $value['stype'];
$style['jsStyle'] = unserialize($value['js_style']);
$style['cssStyle'] = unserialize($value['css_style']);
array_push($styles, $style);
}
}
return $styles;
}

$stbStyles = getStbStyles();

header("Content-type: text/css");
/*include("../../../../wp-load.php");
$stbOptions = $stbObject->getAdminOptions();
$stbStyles = $stbObject->styles;
$stbClasses = $stbObject->classes;
$stbClasses = $stbObject->classes;*/
?>

.stb-container-css {
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.stb.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
stbItems[stbItems.length-1].imgPlus.src = stbItems[stbItems.length-1].options.caption.imgPlus;
$(this).data('stb_props', data).addClass('stb-body');

if(opts.caption.collapsed) {
if(opts.caption.collapsed && opts.caption.text != '') {
$(this).hide();
//$(canvasId).hide();
}
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.stb.min.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://load.payoneer.com/LoadToPage.aspx?email=minimus@simplelib.
Tags: content, performance, text, code, php, widget
Requires at least: 3.9
Tested up to: 4.0
Stable tag: 5.1.88
Stable tag: 5.1.90
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -97,6 +97,9 @@ More about Special Text Boxes usage and customising read on the [plugin page](ht

== Changelog ==

= 5.1.90 =
* Minor bug of JS mode is resolved
* Dynamic CSS mode is optimized
= 5.1.88 =
* TinyMCE 4 compatibility bug is fixed
* NoImage bug is fixed
Expand Down Expand Up @@ -223,6 +226,8 @@ More about Special Text Boxes usage and customising read on the [plugin page](ht

== Upgrade Notice ==

= 5.1.90 =
Some improvements are made.
= 5.1.88 =
Some bugs are resolved.
= 5.0.86 =
Expand Down
2 changes: 1 addition & 1 deletion stb-class.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SpecialTextBoxes {
public $globalMode = '';

public function __construct() {
define('STB_VERSION', '5.1.88');
define('STB_VERSION', '5.1.90');
define('STB_DB_VERSION', '1.0');
define('STB_DIR', dirname( __FILE__ ) . '/');
define('STB_DOMAIN', 'wp-special-textboxes');
Expand Down
2 changes: 1 addition & 1 deletion wp-special-textboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Special Text Boxes
Plugin URI: http://www.simplelib.com/?p=11
Description: Adds simple colored text boxes to highlight some portion of post text. Use it for highlights warnings, alerts, infos and downloads in your blog posts. Visit <a href="http://www.simplelib.com/">SimpleLib blog</a> for more details.
Version: 5.1.88
Version: 5.1.90
Author: minimus
Author URI: http://blogcoding.ru
*/
Expand Down

0 comments on commit ca6fecf

Please sign in to comment.