From 0f6c16bdc854b7bf5a1dc4b87eb30a32b8a8324b Mon Sep 17 00:00:00 2001 From: Roland Graf Date: Sat, 8 Feb 2014 20:07:02 +0100 Subject: [PATCH 1/3] Image caption - Link start slideshow --- e107_plugins/gallery/e_shortcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/gallery/e_shortcode.php b/e107_plugins/gallery/e_shortcode.php index 09a13c424..ca15fc166 100644 --- a/e107_plugins/gallery/e_shortcode.php +++ b/e107_plugins/gallery/e_shortcode.php @@ -32,7 +32,7 @@ class gallery_shortcodes extends e_shortcode function sc_gallery_caption($parm='') { $tp = e107::getParser(); - $text = "attFull)."' rel='lightbox.Gallery2' >"; + $text = "attFull)."' rel='prettyPhoto[slide]' >"; // Erase rel"lightbox.Gallery2" - Write "prettyPhoto[slide]" $text .= $this->var['media_caption']; $text .= ""; return $text; @@ -235,7 +235,7 @@ class gallery_shortcodes extends e_shortcode { $this->setVars($row) ->addVars($cat); - + $inner .= ($count == 1) ? "\n\n\n\n\n" : ""; From ca6e4d880df06b50d2d1470d107945f9bb06d2ef Mon Sep 17 00:00:00 2001 From: Roland Graf Date: Sat, 8 Feb 2014 20:09:43 +0100 Subject: [PATCH 2/3] Editing bbcode - choice heading --- e107_core/shortcodes/batch/bbcode_shortcodes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/bbcode_shortcodes.php b/e107_core/shortcodes/batch/bbcode_shortcodes.php index 1af204852..1b3b1bb68 100644 --- a/e107_core/shortcodes/batch/bbcode_shortcodes.php +++ b/e107_core/shortcodes/batch/bbcode_shortcodes.php @@ -31,12 +31,11 @@ class bbcode_shortcodes extends e_shortcode { $formats = array( 0 => array('[p][/p]','Paragraph'), - 1 => array('[h=2][/h]','Heading 1'), - 2 => array('[h=2][/h]','Heading 2'), + 2 => array('[h=2][/h]','Heading 2'), //Removed choice H1 3 => array('[h=3][/h]','Heading 3'), 4 => array('[h=4][/h]','Heading 4'), 5 => array('[h=5][/h]','Heading 5'), - 6 => array('[h=5][/h]','Heading 6'), + 6 => array('[h=6][/h]','Heading 6'), // Erase [h=5] - Write [h=6] 7 => array('[block][/block]','Block'), 8 => array('[blockquote][/blockquote]', 'Quote'), 9 => array('[code][/code]', 'Code Block'), From b72e7488a649591873dc81bd01d3143719ed2ddd Mon Sep 17 00:00:00 2001 From: Roland Graf Date: Sun, 9 Feb 2014 13:46:17 +0100 Subject: [PATCH 3/3] renumbering array --- .../shortcodes/batch/bbcode_shortcodes.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/e107_core/shortcodes/batch/bbcode_shortcodes.php b/e107_core/shortcodes/batch/bbcode_shortcodes.php index 1b3b1bb68..45b3458e4 100644 --- a/e107_core/shortcodes/batch/bbcode_shortcodes.php +++ b/e107_core/shortcodes/batch/bbcode_shortcodes.php @@ -31,15 +31,15 @@ class bbcode_shortcodes extends e_shortcode { $formats = array( 0 => array('[p][/p]','Paragraph'), - 2 => array('[h=2][/h]','Heading 2'), //Removed choice H1 - 3 => array('[h=3][/h]','Heading 3'), - 4 => array('[h=4][/h]','Heading 4'), - 5 => array('[h=5][/h]','Heading 5'), - 6 => array('[h=6][/h]','Heading 6'), // Erase [h=5] - Write [h=6] - 7 => array('[block][/block]','Block'), - 8 => array('[blockquote][/blockquote]', 'Quote'), - 9 => array('[code][/code]', 'Code Block'), - 10 => array('[code=inline][/code]', 'Code Inline') + 1 => array('[h=2][/h]','Heading 2'), + 2 => array('[h=3][/h]','Heading 3'), + 3 => array('[h=4][/h]','Heading 4'), + 4 => array('[h=5][/h]','Heading 5'), + 5 => array('[h=6][/h]','Heading 6'), + 6 => array('[block][/block]','Block'), + 7 => array('[blockquote][/blockquote]', 'Quote'), + 8 => array('[code][/code]', 'Code Block'), + 9 => array('[code=inline][/code]', 'Code Inline') );