<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>

<span id="sympal_content_slot_<?php echo $contentSlot->getId() ?>_editor_form" class="sympal_<?php echo sfInflector::tableize($contentSlot->getType()) ?>_content_slot_editor_form">
  <?php echo $form->renderHiddenFields() ?>

  <?php if ($contentSlot->getIsColumn()): ?>
    <?php if (sfSympalConfig::isI18nEnabled('sfSympalContentSlot') && !isset($form[$contentSlot->getName()])): ?>
      <?php echo $form[$sf_user->getCulture()][$contentSlot->getName()] ?>
    <?php else: ?>
      <?php echo $form[$contentSlot->getName()] ?>
    <?php endif; ?>
  <?php else: ?>
    <?php if (sfSympalConfig::isI18nEnabled('sfSympalContentSlot')): ?>
      <?php echo $form[$sf_user->getCulture()]['value'] ?>
    <?php else: ?>
      <?php echo $form['value'] ?>
    <?php endif; ?>
  <?php endif; ?>
</span>

<script type="text/javascript">
$('#sympal_content_slot_<?php echo $contentSlot->getId() ?>_editor_form textarea').markItUp(mySettings);
$('#sympal_content_slot_<?php echo $contentSlot->getId() ?>_editor_form').elastic();
</script>
<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>

<span id="sympal_content_slot_<?php echo $contentSlot->getId() ?>_editor_form" class="sympal_<?php echo sfInflector::tableize($contentSlot->getType()) ?>_content_slot_editor_form">
  <?php echo $form->renderHiddenFields() ?>

  <?php if ($contentSlot->getIsColumn()): ?>
    <?php if (sfSympalConfig::isI18nEnabled('sfSympalContentSlot') && !isset($form[$contentSlot->getName()])): ?>
      <?php echo $form[$sf_user->getCulture()][$contentSlot->getName()] ?>
    <?php else: ?>
      <?php echo $form[$contentSlot->getName()] ?>
    <?php endif; ?>
  <?php else: ?>
    <?php if (sfSympalConfig::isI18nEnabled('sfSympalContentSlot')): ?>
      <?php echo $form[$sf_user->getCulture()]['value'] ?>
    <?php else: ?>
      <?php echo $form['value'] ?>
    <?php endif; ?>
  <?php endif; ?>
</span>

<script type="text/javascript">

<?php if ($contentSlot->getType() == 'Markdown'): ?>
$('#sympal_content_slot_<?php echo $contentSlot->getId() ?>_editor_form textarea').markItUp(mySettings);
<?php endif; ?>

$('#sympal_content_slot_<?php echo $contentSlot->getId() ?>_editor_form textarea').elastic();
</script>
Fix so we only enable markdown editor for Markdown slot types
[1.4][sfSympalPlugin][0.7] Fix so we only enable markdown editor for Markdown slot types


git-svn-id: fb4b88f168106301dda01b59a7b997f753c86fb4@25946 ee427ae8-e902-0410-961c-c3ed070cd9f9
