Skip to content

Commit

Permalink
version compatibility and minor improvement
Browse files Browse the repository at this point in the history
Signed-off-by: Taggic <taggic@t-online.de>
  • Loading branch information
Taggic committed Jun 22, 2012
1 parent e17a011 commit 91f232c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ function handle($match, $state, $pos, &$handler) {
$xssnipper['from'] = $params[1];
$alpha = explode(' ',$params[2]);
$xssnipper['type'] = $alpha[0];
$xssnipper['file'] = $alpha[2];
$xssnipper['block'] = $alpha[1];
$xssnipper['file'] = $alpha[1];
$xssnipper['block'] = $alpha[2];
$xssnipper['code'] = $params[3];
}
else {
Expand All @@ -87,8 +87,8 @@ function handle($match, $state, $pos, &$handler) {
$xssnipper['until'] = $params[2];
$alpha = explode(' ',$params[3]);
$xssnipper['type'] = $alpha[0];
$xssnipper['file'] = $alpha[2];
$xssnipper['block'] = $alpha[1];
$xssnipper['file'] = $alpha[1];
$xssnipper['block'] = $alpha[2];
}
return $xssnipper;
}
Expand Down Expand Up @@ -149,7 +149,7 @@ function render($mode, &$renderer, $xssnipper) {
$img_ID = 'img_'.$clipclap_id;
$clipclap_img .= '<img id="'.$img_ID.'"
src="'.DOKU_BASE.'lib/plugins/xssnipper/images/enfold.png"
alt="show" />'.NL;
alt="show" />'.NL;

$code_block .= '<span id="'.$clipclap_id.'" style="display : none;">'.NL;
$clipclap_flag = true;
Expand All @@ -159,7 +159,7 @@ function render($mode, &$renderer, $xssnipper) {

if($clipclap_flag == true) {
$code_block .= '</span>'.NL;
$code_block .= '<div class="img_clipclap" onClick="span_open(\''.$clipclap_id.'\',\''.$img_ID.'\')"></div>'.NL;
$code_block .= '<div class="img_clipclap" title="view code" id="'.$clipclap_id.'2" onClick="span_open(\''.$clipclap_id.'\',\''.$img_ID.'\')"></div>'.NL;
}
$code_block .= '</dl>'.NL;

Expand Down

0 comments on commit 91f232c

Please sign in to comment.