Plugin Directory

Changeset 370939


Ignore:
Timestamp:
04/09/2011 04:27:09 PM (15 years ago)
Author:
gesman
Message:

1.405, added 'width' param to [jtabs], [jaccordion] and [jbox] shortcodes.

Location:
j-shortcodes/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • j-shortcodes/trunk/j-shortcodes.php

    r368894 r370939  
    33Plugin Name: J Shortcodes
    44Plugin URI: http://www.jshortcodes.com/
    5 Version: 1.404
     5Version: 1.405
    66Author: Gleb Esman, http://www.jshortcodes.com/
    77Author URI: http://www.jshortcodes.com/
     
    99*/
    1010
    11 define('J_SHORTCODES_VERSION',  '1.404');
     11define('J_SHORTCODES_VERSION',  '1.405');
    1212
    1313include (dirname(__FILE__) . '/j-include-all.php');
     
    587587      $jbox_css_rules[] = "border-radius: {$radius_num}px;";
    588588      }
     589
     590   if ($width)
     591      $jbox_css_rules[] = "width:{$width}px;";
     592
    589593   if ($jbox_css)
    590594      $jbox_css_rules[] = rtrim ($jbox_css, ';') . ';';
     595
    591596   if ($vgradient)
    592597      {
     
    10601065/*
    10611066
    1062 [jtabs size="xxxsmall|xxsmall|xsmall|small|*normal" theme="blitzer|cupertino|overcast|*smoothness|vader"]
     1067[jtabs
     1068   size="xxxsmall|xxsmall|xsmall|small|*normal"
     1069   theme="blitzer|cupertino|overcast|*smoothness|vader"
     1070   width="*"
     1071   ]
    10631072      Hello World::
    10641073      This is hello world. This
     
    10791088         'theme'        => 'smoothness',
    10801089         'size'         => 'normal',
     1090         'width'        => '',
    10811091         ),
    10821092         $atts));
     
    10981108      }
    10991109
     1110   $jtabs_styles_css = array();
     1111   if ($width)
     1112      $jtabs_styles_css[] = "width:{$width}px";
     1113
     1114   $jtabs_styles = implode (';', $jtabs_styles_css);
     1115   if ($jtabs_styles)
     1116      $jtabs_styles = "style=\"{$jtabs_styles};\"";
     1117
    11001118$jtabs_template=<<<TTT
    1101 <div class="{$size} jayq-all jayq-{$theme}">
     1119<div class="{$size} jayq-all jayq-{$theme}" {$jtabs_styles}>
    11021120   <div class="jtabs">
    11031121      <ul>
     
    11411159/*
    11421160
    1143 [jaccordion size="xxxsmall|xxsmall|xsmall|small|*normal" theme="blitzer|cupertino|overcast|*smoothness|vader" active="*"]
     1161[jaccordion
     1162   size="xxxsmall|xxsmall|xsmall|small|*normal"
     1163   theme="blitzer|cupertino|overcast|*smoothness|vader"
     1164   width="*"
     1165   active="*"
     1166   ]
    11441167      Hello World::
    11451168      This is hello world. This
     
    11611184         'size'         => 'normal',
    11621185         'active'       => FALSE,            // 1-based active panel
     1186         'width'        => '',
    11631187         ),
    11641188         $atts));
     
    11891213      $active_pane = "";
    11901214
     1215   $jaccordion_styles_css = array();
     1216   if ($width)
     1217      $jaccordion_styles_css[] = "width:{$width}px";
     1218
     1219   $jaccordion_styles = implode (';', $jaccordion_styles_css);
     1220   if ($jaccordion_styles)
     1221      $jaccordion_styles = "style=\"{$jaccordion_styles};\"";
     1222
    11911223$jtabs_template=<<<TTT
    1192 <div class="jayq-all {$size} jayq-{$theme}">
     1224<div class="jayq-all {$size} jayq-{$theme}" {$jaccordion_styles} >
    11931225   <div {$active_pane} class="jaccordion">
    11941226       {{{DIV_ELEMENTS}}}
  • j-shortcodes/trunk/readme.txt

    r368894 r370939  
    6565== Changelog ==
    6666
     67= 1.405 =
     68* Added 'width' parameter to [jbox], [jtabs] and [jaccordion] shortcode.
     69
    6770= 1.404 =
    6871* Update from beta to general release.
Note: See TracChangeset for help on using the changeset viewer.