From 711d677984829719fe75266827df97ed87386be4 Mon Sep 17 00:00:00 2001 From: Stuart Palmer Date: Tue, 31 Jul 2012 16:04:10 +0200 Subject: [PATCH 1/7] 2.3 compatibility Update to remove depreciated parent key --- extension.driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.driver.php b/extension.driver.php index 2430ca3..a5d1caf 100755 --- a/extension.driver.php +++ b/extension.driver.php @@ -71,7 +71,7 @@ public function addGuideBelowTextArea($context) { } public function initaliseAdminPageHead($context) { - $page = $context['parent']->Page; + $page = Administration::instance()->Page; $page->addScriptToHead(URL . '/extensions/markdown_guide/assets/toggle_guide.js', 900200); } } From 85dc2b20f7825542a498c28f1561cea739d01475 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Nov 2014 10:01:38 +0000 Subject: [PATCH 2/7] Add XML meta file --- extension.meta.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 extension.meta.xml diff --git a/extension.meta.xml b/extension.meta.xml new file mode 100644 index 0000000..44c572d --- /dev/null +++ b/extension.meta.xml @@ -0,0 +1,21 @@ + + + Markdown Guide + Provides markdown text formatter syntax explanation + https://github.com/stuartgpalmer/markdown_guide + + + Text Formatters + + + + Stuart Palmer, Carson Sasser + http://getsymphony.com + + + + + - Compatibility with Symphony 2.4+ + + + From bc713f2d1dbf5761ba96097ebd161231dce946dc Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Nov 2014 10:07:42 +0000 Subject: [PATCH 3/7] Update readme --- README.markdown | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index 54680a6..8075270 100755 --- a/README.markdown +++ b/README.markdown @@ -1,10 +1,10 @@ Markdown Guide Extension ======================= -* Version: 1.5 -* Author: Carson Sasser (sassercw@cox.net) -* Build Date: 17 January 2012 -* Requirements: Tested on Symphony CMS versions 2.0.6, 2.0.7 and 2.1.1. Requires version 1.11 of the Markdown Text Formatter extension. +* Version: 1.6 +* Author: Stuart Palmer, Carson Sasser +* Build Date: 11 November 2014 +* Requirements: Tested on Symphony CMS version 2.5+. Requires version 1.11 of the Markdown Text Formatter extension. Installation ------------ @@ -23,6 +23,10 @@ TODO Change Log ---------- +Version 1.6 - 11 November 2014 + +- Add XML meta file + Version 1.5 - 17 January 2012 - Corrected a typographical error found by Martin Janiczek From f7e044cd08cf70e075d5eabaf48e9821f39e0430 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Nov 2014 10:09:24 +0000 Subject: [PATCH 4/7] Update extension driver --- extension.driver.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extension.driver.php b/extension.driver.php index a5d1caf..d99fbc5 100755 --- a/extension.driver.php +++ b/extension.driver.php @@ -6,13 +6,13 @@ public function about() { $info = array( 'author' => array( - 'email' => 'sassercw@cox.net', - 'name' => 'Carson Sasser', - 'website' => 'http://carsonsasser.com/' + 'email' => 'stuart@eyes-down.net', + 'name' => 'Stuart Palmer, Carson Sasser', + 'website' => 'http://www.eyes-down.net' ), 'name' => 'Markdown Guide', - 'release-date' => '2010-09-28', - 'version' => '1.3' + 'release-date' => '2014-11-12', + 'version' => '1.6' ); return $info; } From c33ab744e51e7d0c555ac24a4c62a48fa62d10e3 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Nov 2014 10:15:10 +0000 Subject: [PATCH 5/7] Update meta file with compatibility --- extension.meta.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extension.meta.xml b/extension.meta.xml index 44c572d..efb07c3 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -14,8 +14,11 @@ - + - Compatibility with Symphony 2.4+ + + + From c1ac0685679fec8315c70a46ceb91815820eeee3 Mon Sep 17 00:00:00 2001 From: Kruno H Date: Wed, 12 Nov 2014 22:49:05 +0100 Subject: [PATCH 6/7] fixed typo --- assets/markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/markdown.php b/assets/markdown.php index 0af2c53..8ebcafa 100644 --- a/assets/markdown.php +++ b/assets/markdown.php @@ -2,7 +2,7 @@ $description = array( array(__('Headers'), __('Precede with a # for each level desired as in: ### This is an h3 header')), - array(__('Paragraphs'), __('Seperate with a blank line')), + array(__('Paragraphs'), __('Separate with a blank line')), array(__('Blockquotes'), __('Precede with a > (two >> will produce a quote within a quote)')), array(__('Unordered lists'), __('Precede list items with a *, + or -')), array(__('Ordered lists'), __('Precede list items with a number followed by a period')), From e4f31dac7b1ad628b87af8f55dd6b294a1ce6b82 Mon Sep 17 00:00:00 2001 From: Bernardo Dias Date: Fri, 16 Jan 2015 04:54:27 -0200 Subject: [PATCH 7/7] chage the way to set , when not find the formatter file return default --- extension.driver.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/extension.driver.php b/extension.driver.php index d99fbc5..9662883 100755 --- a/extension.driver.php +++ b/extension.driver.php @@ -45,19 +45,10 @@ public function addGuideBelowTextArea($context) { $context['textarea'] = Widget::Label(''); //retrieve the guide and append it - switch($formatter){ - case 'markdown': - $file = EXTENSIONS . '/markdown_guide/assets/markdown.php'; - break; - case 'markdown_extra': - $file = EXTENSIONS . '/markdown_guide/assets/markdown_extra.php'; - break; - case 'markdown_extra_with_smartypants': - $file = EXTENSIONS . '/markdown_guide/assets/markdown_extra_with_smartypants.php'; - break; - case 'markdown_with_purifier': - $file = EXTENSIONS . '/markdown_guide/assets/markdown_with_purifier.php'; - break; + if (file_exists(EXTENSIONS . '/markdown_guide/assets/' . $formatter . '.php')) { + $file = EXTENSIONS . '/markdown_guide/assets/' . $formatter . '.php'; + } else { + $file = EXTENSIONS . '/markdown_guide/assets/markdown.php'; } include($file);