Example #1
0
  Testing tip</p>
</blockquote>



<blockquote class="note"><p>
  Testing note</p>
</blockquote>



<blockquote class="quote"><p>
  Testing quote</p>
</blockquote>

<pre class="php"><span class="kw2">&lt;?php</span>
&nbsp;
<span class="kw3">echo</span> <span class="st0">\'test\'</span>;
&nbsp;
<span class="kw2">?&gt;</span></pre>



<pre><code class="yaml"><span class="yaml_top_dashes">---</span>
<span class="yaml_keys">User</span><span class="yaml_colon">:</span>
<span class="yaml_keys">  columns</span><span class="yaml_colon">:</span>
<span class="yaml_keys">    username</span><span class="yaml_colon">:</span><span class="yaml_string"> string(255)</span>
</code></pre>
</div>';
$t->is(sfSympalMarkdownRenderer::convertToHtml($markdown), $html);
Example #2
0
    ?>
</h1>

<div class="sympal_new_version_box">
  A new version of Sympal was detected! Read below for directions on how to upgrade
  from your current version of <?php 
    echo $currentVersion;
    ?>
 to <?php 
    echo $latestVersion;
    ?>
.
</div>

<?php 
    echo sfSympalMarkdownRenderer::convertToHtml("\n\nYour installation of `sfSympalPlugin` can be found here:\n\n    " . ($rootDir = $sf_context->getConfiguration()->getPluginConfiguration('sfSympalPlugin')->getRootDir()) . "\n\nTo begin the upgrade, we need to first change to the directory where `sfSympalPlugin` is located:\n\n    \$ " . $commands['cd'] . "\n\nBefore upgrading to {$latestVersion} lets move the current version to a backup location:\n\n    \$ " . $commands['backup'] . "\n\nNow checkout the code for {$latestVersion}:\n\n    \$ " . $commands['download'] . "\n\nOnce we've done that we need to clear our cache and run the `sympal:upgrade` task:\n\n    \$ cd " . sfConfig::get('sf_root_dir') . "\n    \$ php symfony cc\n    \$ php symfony sympal:upgrade\n\nThe above executed tasks can be automated by Sympal for you if you wish. We show you\nthe individual steps to help you get a better understanding of what Sympal will be\ndoing to upgrade your version of Sympal!\n\nTo check if a new version exists on the web use the `--download-new` option. It will\nupgrade the Sympal source code to the latest version then run any new available\nupgrade tasks.\n\n    \$ php symfony sympal:upgrade --download-new\n\n");
    ?>

<p>
  You can also run the upgrade process directly from this page! Click <?php 
    echo link_to('here', '@sympal_upgrade');
    ?>
 to begin
  the upgrade process!
</p>

<?php 
} else {
    ?>
  <h1>No Updates Found</h1>
 public function render()
 {
     return sfSympalMarkdownRenderer::convertToHtml($this->getRenderedValue());
 }
Example #4
0
        } else {
            ?>
              <?php 
            echo $comment['author_name'];
            ?>
.
            <?php 
        }
        ?>
          </small>
          <?php 
        echo image_tag(get_gravatar_url($comment['author_email_address']), 'align=right');
        ?>

          <?php 
        echo sfSympalMarkdownRenderer::convertToHtml($comment['body']);
        ?>
        </li>
      <?php 
    }
    ?>
    </ul>
  <?php 
} else {
    ?>
    <h3>No Comments Created. Be the first to comment.</h3>
  <?php 
}
?>
</div>
Example #5
0
<p>Continuing will update your Sympal source code by executing the following commands:</p>

<?php 
echo sfSympalMarkdownRenderer::convertToHtml("    \$ " . implode("\n    \$ ", $upgrade->getUpgradeCommands()));
?>

<p>Do you wish to continue?</p>
Example #6
0
<?php

echo sfSympalMarkdownRenderer::convertToHtml($value);