public function testMarkdownNegative() { $this->assertEquals(self::PLAIN_TEXT, smarty_modifier_markdown(self::PLAIN_TEXT)); }
$this->_tag_stack[] = array('block', array('name' => 'content')); $_block_repeat = true; _smarty_swisdk_process_block($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div id="itemContent"> <h2><?php echo $this->_tpl_vars['item']->title; ?> (<?php echo $this->_tpl_vars['item']->type; ?> )</h2> <p><?php echo is_array($_tmp = $this->_tpl_vars['item']->description) ? $this->_run_mod_handler('markdown', true, $_tmp) : smarty_modifier_markdown($_tmp); ?> </p> <?php if ($this->_tpl_vars['item']->_attachments) { ?> <h4>attachments</h4> <ul> <?php $_from = $this->_tpl_vars['item']->_attachments; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } if (count($_from)) { foreach ($_from as $this->_tpl_vars['filename'] => $this->_tpl_vars['data']) { ?>