| 1 |
<?php |
<?php |
| 2 |
// $Id: marksmarty.module,v 1.14 2006/03/31 23:35:35 teradome Exp $ |
// $Id: marksmarty.module,v 1.15 2006/05/16 01:23:06 teradome Exp $ |
| 3 |
|
|
| 4 |
ini_set('include_path', ini_get('include_path') . ':' . getcwd() . '/modules/marksmarty/'); |
ini_set('include_path', ini_get('include_path') . ':' . getcwd() . '/modules/marksmarty/'); |
| 5 |
|
|
| 37 |
</ul>For complete details on the Markdown syntax, see the <a href="http://daringfireball.net/projects/markdown/syntax">Markdown documentation</a>.'); |
</ul>For complete details on the Markdown syntax, see the <a href="http://daringfireball.net/projects/markdown/syntax">Markdown documentation</a>.'); |
| 38 |
} |
} |
| 39 |
else { |
else { |
| 40 |
$the_output = t('You can use '.l('Markdown syntax', 'filter/tips').' to format and style the text.'); |
$the_output = t('You can use %link to format and style the text.', array('%link' => l(t('Markdown syntax'), 'filter/tips'))); |
| 41 |
} |
} |
| 42 |
|
|
| 43 |
return $the_output; |
return $the_output; |
| 46 |
function marksmarty_help($in_section = 'admin/help#marksmarty') { |
function marksmarty_help($in_section = 'admin/help#marksmarty') { |
| 47 |
switch ($in_section) { |
switch ($in_section) { |
| 48 |
case 'admin/modules#description': |
case 'admin/modules#description': |
| 49 |
$the_output = 'Allows content to be submitted using Markdown, a simple plain-text syntax that is filtered into valid XHTML, and converts plain ASCII characters to Unicode entities using SmartyPants.'; |
$the_output = t('Allows content to be submitted using Markdown, a simple plain-text syntax that is filtered into valid XHTML, and converts plain ASCII characters to Unicode entities using SmartyPants.'); |
| 50 |
break; |
break; |
| 51 |
|
|
| 52 |
case 'admin/help#marksmarty': |
case 'admin/help#marksmarty': |
| 53 |
$the_output = '<p>The Markdown with SmartyPants module allows you to enter content using <a href="http://daringfireball.net/projects/markdown">Markdown</a>, a simple plain-text syntax that is filtered into valid XHTML, and will automatically convert plain ASCII characters to their proper Unicode entities in context ("curly quotes," et al.) using <a href="http://daringfireball.net/projects/smartypants">SmartyPants</a>.</p>'; |
$the_output = t('<p>The Markdown with SmartyPants module allows you to enter content using <a href="http://daringfireball.net/projects/markdown">Markdown</a>, a simple plain-text syntax that is filtered into valid XHTML, and will automatically convert plain ASCII characters to their proper Unicode entities in context ("curly quotes," et al.) using <a href="http://daringfireball.net/projects/smartypants">SmartyPants</a>.</p>'); |
| 54 |
break; |
break; |
| 55 |
} |
} |
| 56 |
|
|
| 57 |
return t($the_output); |
return $the_output; |
| 58 |
} |
} |
| 59 |
|
|
| 60 |
/******************************************************************** |
/******************************************************************** |