/**
     * @see sfWebDebugPanel
     */
    public function getPanelContent()
    {
        $this->compiler = sfSassCompilerDefault::getInstance(sfContext::getInstance()->getEventDispatcher());
        $status = $this->compiler->getStatus();
        $stdout = $this->compiler->getStdOut();
        $cmd = $this->compiler->getCommand();
        $content = <<<DEBUG
    <h2>Command</h2>
    <p style="display: block; border: 1px solid black; padding: 5px; background-color: white;">{command}</p>
    <h2>Status</h2>
    <p style="display: block; border: 1px solid black; padding: 5px; background-color: white;">{status}</p>
DEBUG;
        if (!empty($stdout)) {
            $content .= <<<STDOUT
    <h2>Output</h2>
    <div style="display: block; border: 1px solid black; padding: 5px; background-color: white;">
    {stdout}
    </div>
STDOUT;
        }
        require_once sfConfig::get('sf_symfony_lib_dir') . '/helper/TextHelper.php';
        $content = strtr($content, array('{command}' => htmlentities($cmd), '{stdout}' => simple_format_text(htmlentities($stdout)), '{status}' => $status));
        if (!empty($stdout)) {
            $this->setStatus(preg_match('/error /mi', $stdout) === 1 ? sfLogger::ERR : sfLogger::WARNING);
        } else {
            $this->setStatus(sfLogger::INFO);
        }
        return $content . "<br/>";
    }
Beispiel #2
0
  <?php 
}
?>
  <?php 
if ($project['Client']['id']) {
    ?>
    | for <?php 
    echo link_to($project['Client'], 'contacts_show', $project['Client']);
    ?>
  <?php 
}
?>
  </p>

  <?php 
echo simple_format_text($project['description']);
?>

  <hr />

  <?php 
include_partial('notes/show_notes', array('notes' => $project->getNotesList(), 'note_form' => $note_form));
?>

</div> <!-- /grid_8 -->

<div class="sidebar grid_4">

  <div class="milestones box">
    <h2>
      Milestones
$t->is(excerpt_text("This is a beautiful morning", "morning", 5), "...iful morning", 'text_excerpt() creates an excerpt of a text');
$t->is(excerpt_text("This is a beautiful morning", "morning", 5, '...', true), "... morning", 'text_excerpt() takes a fifth argument allowing excerpt on whitespace');
$t->is(excerpt_text("This is a beautiful morning", "beautiful", 5, '...', true), "... a beautiful ...", 'text_excerpt() takes a fifth argument allowing excerpt on whitespace');
$t->is(excerpt_text("This is a beautiful morning", "This", 5, '...', true), "This is ...", 'text_excerpt() takes a fifth argument allowing excerpt on whitespace');
$t->is(excerpt_text("This is a beautiful morning", "day"), '', 'text_excerpt() does nothing if the search string is not in input');
// wrap_text()
$t->diag('wrap_text()');
$line = 'This is a very long line to be wrapped...';
$t->is(wrap_text($line), "This is a very long line to be wrapped...\n", 'wrap_text() wraps long lines with a default of 80');
$t->is(wrap_text($line, 10), "This is a\nvery long\nline to be\nwrapped...\n", 'wrap_text() takes a line length as its second argument');
$t->is(wrap_text($line, 5), "This\nis a\nvery\nlong\nline\nto be\nwrapped...\n", 'wrap_text() takes a line length as its second argument');
// simple_format_text()
$t->diag('simple_format_text()');
$t->is(simple_format_text("crazy\r\n cross\r platform linebreaks"), "<p>crazy\n<br /> cross\n<br /> platform linebreaks</p>", 'text_simple_format() replaces \\n by <br />');
$t->is(simple_format_text("A paragraph\n\nand another one!"), "<p>A paragraph</p>\n\n<p>and another one!</p>", 'text_simple_format() replaces \\n\\n by <p>');
$t->is(simple_format_text("A paragraph\n With a newline"), "<p>A paragraph\n<br /> With a newline</p>", 'text_simple_format() wrap all string with <p>');
// text_strip_links()
$t->diag('text_strip_links()');
$t->is(strip_links_text("<a href='almost'>on my mind</a>"), "on my mind", 'text_strip_links() strips all links in input');
// auto_link_text()
$t->diag('auto_link_text()');
$email_raw = '*****@*****.**';
$email_result = '<a href="mailto:' . $email_raw . '">' . $email_raw . '</a>';
$link_raw = 'http://www.google.com';
$link_result = '<a href="' . $link_raw . '">' . $link_raw . '</a>';
$link2_raw = 'www.google.com';
$link2_result = '<a href="http://' . $link2_raw . '">' . $link2_raw . '</a>';
$t->is(auto_link_text('hello ' . $email_raw, 'email_addresses'), 'hello ' . $email_result, 'auto_link_text() converts emails to links');
$t->is(auto_link_text('Go to ' . $link_raw, 'urls'), 'Go to ' . $link_result, 'auto_link_text() converts absolute URLs to links');
$t->is(auto_link_text('Go to ' . $link_raw, 'email_addresses'), 'Go to ' . $link_raw, 'auto_link_text() takes a second parameter');
$t->is(auto_link_text('Go to ' . $link_raw . ' and say hello to ' . $email_raw), 'Go to ' . $link_result . ' and say hello to ' . $email_result, 'auto_link_text() converts emails and URLs if no second argument is given');
Beispiel #4
0
<?php 
foreach ($activities as $activity) {
    ?>
  <div class="issue-activity">
    <p class="activity-timestamp">
      <strong><?php 
    echo $activity->verb;
    ?>
 by <?php 
    echo $activity->CreatedBy;
    ?>
</strong>
      <small><?php 
    echo $activity->created_at;
    ?>
</small>
    </p>
    <blockquote class="activity-changes">
      <?php 
    echo simple_format_text($activity->changes);
    ?>
    </blockquote>
    <?php 
    echo simple_format_text($activity->body);
    ?>
  </div>
<?php 
}
?>
</div> <!-- /issue-history -->
        <?php if ($sf_user->hasCredential('superuser')): ?>
          <?php echo link_to('Delete', 'email_recipient_delete', $recipient, array( 'method' => 'delete',  'confirm' => 'Are You Sure?', 'class' => '' )) ?>
        <?php endif; ?>   


      </td>
    </tr>

<div id="<?php echo $recipient->id ?>" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel"><?php echo $ds_class_letter->getSubject() ?></h3>
  </div>
  <div class="modal-body">
    <p><?php echo simple_format_text( $recipient->getBody() ) ?></p>
  </div>
  <!--
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <button class="btn btn-primary">Save changes</button>
  </div>-->
</div>

    <?php endforeach; ?>
  </tbody>
  <?php if ($recipients->count() == 0): ?>
  <tfoot>
    <tr>
      <th colspan="3">
        -
Beispiel #6
0
">           
 <img src="/uploads/jobs/<?php 
    echo $JobeetJob->getLogo();
    ?>
"  alt="<?php 
    echo $JobeetJob->getCompany();
    ?>
 logo" /></a>
 </div>
 <?php 
}
?>
      
 <div class="description">        
 <?php 
echo simple_format_text($JobeetJob->getDescription());
?>
      </div>      
 <h4>How to apply?</h4>     
 <p class="how_to_apply">
 <?php 
echo $JobeetJob->getHowToApply();
?>
</p>     
  <div class="meta">
  <small>publicado el: <?php 
echo $JobeetJob->getCreatedAt('d/m/Y');
?>
  </small></div>
<div style="padding: 20px 0"><a href="<?php 
echo url_for('job_edit', $JobeetJob);
Beispiel #7
0
<div class="info-block">
  <dl>
    <dt>Subject</dt>
    <dd><?php echo $ds_class_letter->getSubject() ?></dd>

    <dt>From</dt>
    <dd><?php echo $ds_class_letter->getFromAsString() ?></dd>

    <dt>Class</dt>
    <dd><?php echo $ds_class_letter->getClass() ?></dd>

    <dt>Sent at</dt>
    <dd><?php echo false !== strtotime($ds_class_letter->getSentAt()) ? date('d.m.Y H:i:s', strtotime($ds_class_letter->getSentAt())) : $ds_class_letter->getSentAt() ?></dd>

    <dt>To teachers</dt>
    <dd><?php echo $ds_class_letter->getToTeachers() ?></dd>

    <dt>Sent to</dt>
    <dd><?php echo $ds_class_letter->getSentToAsString() ?></dd>

    <dt>Body</dt>
    <dd>
      <span class="monospace">
        <?php echo simple_format_text($ds_class_letter->getBody()) ?>
      </span>  
    </dd>

  </dl>
</div>
Beispiel #8
0
use_helper('Text', 'Javascript');
if (isset($poll)) {
    ?>
<div id="cmp_poll_<?php 
    echo $poll->getId();
    ?>
">
  <h2><?php 
    echo $poll->getTitle();
    ?>
</h2>
  <?php 
    if ($poll->getDescription()) {
        ?>
    <?php 
        echo simple_format_text($poll->getDescription());
        ?>
  <?php 
    }
    ?>
  <?php 
    echo form_remote_tag(array('url' => '@sf_propel_polls_vote', 'update' => 'cmp_poll_' . $poll->getId()));
    ?>
    <?php 
    include_partial('sfPolls/poll_form_elements', array('poll' => $poll));
    ?>
  </form>
</div>
<?php 
}
<fieldset id="sf_fieldset_________" class="">
<h2><?php 
echo __('解决方案');
?>
</h2>

<div class="form-row">
  <?php 
$i = 0;
foreach ($solutions as $solution) {
    $i++;
    ?>
    <div class="solution" style="margin-bottom:10px;">
      <?php 
    echo count($solutions) > 1 ? $i . "." : "";
    echo simple_format_text($solution->getSolution());
    ?>
<br/>
    </div>    
  <?php 
}
?>
     
</div>


</fieldset>    

<ul class="sf_admin_actions">
  <li><?php 
echo button_to(__('返回列表'), 'question/list?id=' . $question->getId(), array('class' => 'sf_admin_action_list'));
Beispiel #10
0
if ($website = $comment->getWebsite()) {
    ?>
    <a href="
            <?php 
    echo strstr($website, 'http://') ? $website : 'http://' . $website;
    ?>
       "><?php 
    echo $comment->getName();
    ?>
</a>
    <?php 
} else {
    ?>
      <?php 
    echo $comment->getName();
    ?>
    <?php 
}
?>
    -
    <?php 
echo distance_of_time_in_words($comment->getDateTimeObject('created_at')->format('U'), $article->getDateTimeObject('published_at')->format('U'));
?>
 later
  </dt>
  <dd>
    <?php 
echo simple_format_text($comment->getMessage());
?>
  </dd>
</dl>
<?php use_helper('Text') ?>

<div class="formulario">
<h1><?php echo $proyecto->getNombre() ?></h1>
<h3><?php echo $proyecto->getUrl() ?></h3>

<div class="descripcion"><?php echo simple_format_text($proyecto->getDescripcion()) ?>
</div>

<div class="descripcion">
<table>
	<tr>
		<th style="width:200px">Usuarios asociados</th>

		<td colspan="4">
		<table>
		<?php foreach ($proyecto->getUsers() as $usuario): ?>
			<tr>
				<td colspan="2"><?php echo $usuario?></td>
			</tr>
			<?php endforeach; ?>
		</table>

		<div id="ficheros"></div>
		</td>
	</tr>
</table>
</div>
<div class="meta"><small>created on <?php echo $proyecto->getDateTimeObject('created_at')->format('m/d/Y') ?></small>
</div>
Beispiel #12
0
              </a>
            </li>
            <li class="pull-left">
              <a href="#" class="btn btn-mini comment-deleter" rel="tooltip" title="delete" data-delete-uri="<?php 
            echo url_for('@comments-delete?id=' . $ticket->getId() . '&comment=' . $comment->getId());
            ?>
">
                <i class="icon-remove"></i>
              </a>
            </li>
          </ul>
        <?php 
        }
        ?>
        <?php 
        echo Helpdesk::replaceTicketMentionsWithLinks(Helpdesk::replaceTicketRepeaterMentionsWithLinks(simple_format_text($comment->getText())));
        ?>

        <?php 
        if ($attachment = $comment->getAttachment()) {
            ?>
<p>
          <a href="/uploads/comment-attachments/<?php 
            echo $attachment;
            ?>
" target="_blank" class="btn btn-link">
            <span class="icon icon-download"></span>
            <?php 
            echo $attachment;
            ?>
          </a>
Beispiel #13
0
use_helper('Date', 'Text');
?>

<?php 
slot('sidebar');
include_partial('menu', array('project' => $project));
end_slot();
?>

<h1><?php 
echo $project->getName();
?>
</h1>
<?php 
echo image_tag('divider.png', 'class=divider');
echo simple_format_text($project->getDescription());
?>
<dl class="prop">
    <dt>License:</dt>
    <dd><?php 
echo link_to($project->getLicense()->getName(), $project->getLicense()->getUrl(), 'target=_blank');
?>
</dd>
    <?php 
if ($project->getWiki()) {
    ?>
    <dt>Wiki:</dt>
    <dd><?php 
    echo link_to(null, $project->getWiki(), 'target=_blank');
    ?>
</dd>
<?php 
echo html_entity_decode($notes->getBreadcrumbs());
?>
&nbsp;&nbsp;<?php 
if (!$notes->isRoot()) {
    echo link_to("(Edit)", "notes/edit?id=" . $notes->getId());
}
?>
<hr>
<h1><?php 
echo $notes->getName();
?>
</h1>
<?php 
echo simple_format_text($notes->getContent());
?>
<hr>

<?php 
echo form_tag("notes/view?id=" . $notes->getId(), array("method" => "get"));
?>
View <input name=levels size=1 value=<?php 
echo $levels;
?>
><input type=submit name=submit value=Levels />
</form>
<br>
<?php 
echo form_tag_for(new NotesForm(), "notes/massoper");
?>
<?php use_helper('Text') ?>

<div class="formulario">
<h1><?php echo $linea_base->getNombre() ?></h1>
<h2><?php echo $linea_base->getId() ?></h2>
<h3><?php echo $linea_base->getProyecto() ?></h3>
<div class="descripcion"><?php echo simple_format_text($linea_base->getDescripcion()) ?>
</div>

<div class="meta"><small>created on <?php echo $linea_base->getDateTimeObject('created_at')->format('m/d/Y') ?></small>
</div>
<table class="form">
	<tr>
		<td>Versiones asociadas</td>
		<td colspan="3"><?php foreach ($linea_base->getVersiones() as $version): ?>
		<table>
			<tr>
				<td><?php echo $version->getArtefacto() ?></td>
				<td><?php echo $version->getNombre() ?></td>
				<td><?php echo $version->getDescripcion() ?></td>
			</tr>
		</table>
		<?php  endforeach; ?>
		<div id="ficheros"></div>
		</td>
	</tr>
</table>
<div style="padding: 20px 0"><a
	href="<?php echo url_for('lineaBase/edit?id='.$linea_base->getId().'&proyectoId='.$linea_base->getProyecto()->getId()) ?>">
Editar l&iacute;nea base </a>
<p />
<?php use_helper('Date', 'Number', 'Text') ?>

<div data-alert="" class="alert-box success">
  Die Anmeldung wurde gespeichert.
</div>

<div class="panel">
	<?php echo simple_format_text( $thankyou ) ?>
</div>


<hr>

<?php echo link_to(__('nav.back.homepage'), '@homepage' ) ?>
Beispiel #17
0
            <span class="_50">
              <label><?php 
echo __('Invoicing address');
?>
:</label>
              <?php 
echo simple_format_text($invoice->getInvoicingAddress());
?>
</span>
            <span class="_50 _last">
              <label><?php 
echo __('Shipping address');
?>
:</label>
              <?php 
echo simple_format_text($invoice->getShippingAddress());
?>
            </span>
          </span>
          <span class="clear"></span>
        </li>
      </ul>
    </div><!-- div#customer-data -->

    <div id="payment-data" class="block">
      <h3><?php 
echo __('Payment details');
?>
</h3>
      <p><label><?php 
echo __('Issued at');
$t->is(excerpt_text("This is a beautiful morning", "beautiful", 5, '...', true), "... a beautiful ...", 'text_excerpt() takes a fifth argument allowing excerpt on whitespace');
$t->is(excerpt_text("This is a beautiful morning", "This", 5, '...', true), "This is ...", 'text_excerpt() takes a fifth argument allowing excerpt on whitespace');
$t->is(excerpt_text("This is a beautiful morning", "day"), '', 'text_excerpt() does nothing if the search string is not in input');
// wrap_text()
$t->diag('wrap_text()');
$line = 'This is a very long line to be wrapped...';
$t->is(wrap_text($line), "This is a very long line to be wrapped...\n", 'wrap_text() wraps long lines with a default of 80');
$t->is(wrap_text($line, 10), "This is a\nvery long\nline to be\nwrapped...\n", 'wrap_text() takes a line length as its second argument');
$t->is(wrap_text($line, 5), "This\nis a\nvery\nlong\nline\nto be\nwrapped...\n", 'wrap_text() takes a line length as its second argument');
// simple_format_text()
$t->diag('simple_format_text()');
$t->is(simple_format_text("crazy\r\n cross\r platform linebreaks"), "<p>crazy\n<br /> cross\n<br /> platform linebreaks</p>", 'text_simple_format() replaces \\n by <br />');
$t->is(simple_format_text("A paragraph\n\nand another one!"), "<p>A paragraph</p><p>and another one!</p>", 'text_simple_format() replaces \\n\\n by <p>');
$t->is(simple_format_text("A paragraph\n\n\n\nand another one!"), "<p>A paragraph</p><p>and another one!</p>", 'text_simple_format() replaces \\n\\n\\n\\n by <p>');
$t->is(simple_format_text("A paragraph\n With a newline"), "<p>A paragraph\n<br /> With a newline</p>", 'text_simple_format() wrap all string with <p>');
$t->is(simple_format_text("1\n2\n3"), "<p>1\n<br />2\n<br />3</p>", 'text_simple_format() Ticket #6824');
// text_strip_links()
$t->diag('text_strip_links()');
$t->is(strip_links_text("<a href='almost'>on my mind</a>"), "on my mind", 'text_strip_links() strips all links in input');
// auto_link_text()
$t->diag('auto_link_text()');
$email_raw = '*****@*****.**';
$email_result = '<a href="mailto:' . $email_raw . '">' . $email_raw . '</a>';
$link_raw = 'http://www.google.com';
$link_result = '<a href="' . $link_raw . '">' . $link_raw . '</a>';
$link2_raw = 'www.google.com';
$link2_result = '<a href="http://' . $link2_raw . '">' . $link2_raw . '</a>';
$t->is(auto_link_text('hello ' . $email_raw, 'email_addresses'), 'hello ' . $email_result, 'auto_link_text() converts emails to links');
$t->is(auto_link_text('Go to ' . $link_raw, 'urls'), 'Go to ' . $link_result, 'auto_link_text() converts absolute URLs to links');
$t->is(auto_link_text('Go to ' . $link_raw, 'email_addresses'), 'Go to ' . $link_raw, 'auto_link_text() takes a second parameter');
$t->is(auto_link_text('Go to ' . $link_raw . ' and say hello to ' . $email_raw), 'Go to ' . $link_result . ' and say hello to ' . $email_result, 'auto_link_text() converts emails and URLs if no second argument is given');
<?php

use_helper('Date', 'Text');
?>
<tr>
  <td class="forum_name">
    <?php 
echo link_to($forum->getName(), '@forum_name?forum_name=' . $forum->getSlug());
?>
<br />
    <?php 
echo simple_format_text($forum->getDescription(), array('class' => 'forum_description'));
?>
  </td>
  <td class="forum_threads"><?php 
echo $forum->getNbTopics();
?>
</td>
  <td class="forum_posts"><?php 
echo $forum->getNbPosts();
?>
</td>
  <td class="forum_recent">
    <?php 
if ($forum->getLatestPostId()) {
    ?>
      <?php 
    $latest_post = $forum->getsfSimpleForumPost();
    ?>
      <?php 
    echo link_to($latest_post->getTitle(), '@forum_message?id=' . $latest_post->getId());
<hr>

  <dl class="dl-horizontal">

    <dt class="hidden-phone"></dt>
    
    <dd>
      <?php echo simple_format_text( $ds_email_notification->getBody() ) ?>
      <br/>

<a href="#" data-toggle="collapse" data-target="#kursinfo">
  <i class="icon-collapse"></i> Kursinfo
</a>
<div id="kursinfo" class="collapse">
      <?php echo simple_format_text( $ds_email_notification->getEnrolment()->getInfoTxt() ) ?>
</div>

<br/>

<a href="#" data-toggle="collapse" data-target="#footer">
  <i class="icon-collapse"></i>  Fusszeile
</a>
<div id="footer" class="collapse">
      <?php echo simple_format_text( $ds_email_notification->getFooter() ) ?>
</div>

    </dd>

  </dl>
Beispiel #21
0
?>
  <?php 
echo $note_form->renderHiddenFields();
?>
  <?php 
echo $note_form;
?>
  <input type="submit" value="Save" />
</div>

<div class="notes">
<?php 
foreach ($notes as $note) {
    ?>
  <div class="note">
    <p><strong><?php 
    echo $note['CreatedBy'] ? $note['CreatedBy'] : 'Anonymus';
    ?>
</strong> on <?php 
    echo $note['created_at'];
    ?>
</p>
    <?php 
    echo simple_format_text($note['body']);
    ?>
  </div>
<?php 
}
?>
</div>
<?php use_helper('Text') ?>

<div class="formulario">
<h1><?php echo $version->getNombre() ?></h1>
<h2><?php echo $version->getArtefacto() ?></h2>

<h3>Estado de la solicitud de cambio:  <?php echo $version->getEstado() ?></h3>
<div class="descripcion"><?php echo simple_format_text($version->getDescripcion()) ?>
</div>
<div class="descripcion">
<table>
	<tr>
		<th style="width: 200px">Usuarios asociados</th>

		<td colspan="4">
		<table>
		<?php foreach ($version->getUsers() as $usuario): ?>
			<tr>
				<td colspan="2"><?php echo $usuario?></td>
			</tr>
			<?php endforeach; ?>
		</table>

		<div id="ficheros"></div>
		</td>
	</tr>
</table>
</div>
			<?php
			$aux_fich = $version->getFicheros();
			if (sizeof($aux_fich) != 0){ ?>
<?php

use_helper('Text', 'I18N');
?>

<h1><?php 
echo $article['title'];
?>
</h1>

<?php 
echo simple_format_text($article['content']);
?>

<ul>
<?php 
foreach (sfConfig::get('app_cultures_available', array()) as $lang) {
    ?>
  <li>
    <?php 
    echo format_language($lang);
    ?>
    <?php 
    echo link_to($article['Translation'][$lang]['title'], 'article', array('sf_subject' => $article['Translation'][$lang], 'sf_culture' => $lang));
    ?>
  </li>
<?php 
}
?>
</ul>
<?php use_helper('Text') ?>

<div class="formulario">
<h1><?php echo $mensaje->getNombre() ?></h1>
<h2><?php echo $mensaje->getId() ?></h2>

<div class="descripcion"><?php echo simple_format_text($mensaje->getDescripcion()) ?>
</div>
<div class="meta"><small>creado en <?php echo $mensaje->getDateTimeObject('created_at')->format('m/d/Y') ?></small>
</div>


<hr />

<div><a
	href="<?php echo url_for('mensaje/index')?>">Volver</a></div>
</div>
Beispiel #25
0
    echo url_for('blog/show?id=' . $blog_post->getId());
    ?>
"><?php 
    echo $blog_post->getTitle();
    ?>
</a></h1></div>
            <div class="post-date"><?php 
    echo $blog_post->getCreatedAt();
    ?>
 by <a href="#"><?php 
    echo $blog_post->getAuthor();
    ?>
</a></div>
		    <div class="post-body">
		      <p><?php 
    echo simple_format_text($blog_post->getBody());
    ?>
</p>
		    </div>
            <div class="post-meta">
		      Tagged:
		      <?php 
    foreach ($blog_post->getTags() as $tag) {
        ?>
		        <a href="#"><?php 
        echo $tag;
        ?>
</a>
		      <?php 
    }
    ?>
Beispiel #26
0
        Kursinfo
      </label>
      <div class="controls">
        <span class="span6">
          <?php echo simple_format_text( $form->getObject()->getEnrolment()->getInfoTxt() ) ?>
        </span>
      </div>
    </div>

    <div class="control-group">
      <label class="control-label">
        Fusszeile
      </label>
      <div class="controls">
        <span class="span6">
          <?php echo simple_format_text( $form->getObject()->getFooter() ) ?>
        </span>
      </div>
    </div>
 
    <div class="form-actions">
      <?php echo bs_button_link_to('Zurück', 'icon-chevron-left', null, '@ds_registration_addressbook?process=waitlist&registration_id='. $registration->getId() ) ?>
      <?php echo bs_button_submit('Weiter', 'icon-chevron-right', 'btn-primary') ?>
    </div> 

  </fieldset>
</form>

<?php use_javascript('jquery.textarea-expander.js'); ?>

<script type="text/javascript">
 public function getSlotValue($slot, $settings)
 {
     return simple_format_text(auto_link_text(strip_tags($slot->getValue($settings['culture']))));
 }
Beispiel #28
0
<p class="lead"><?php echo $subject ?></p>

<p>
<?php echo simple_format_text( $body ) ?>
</p>
Beispiel #29
0
        <img src="http://www.symfony-project.org/uploads/jobs/<?php 
    echo $job->getLogo();
    ?>
" alt="<?php 
    echo $job->getCompany();
    ?>
 logo" />
      </a>
    </div>
  <?php 
}
?>

  <div class="description">
    <?php 
echo simple_format_text($job->getDescription());
?>
  </div>

  <h4>How to apply?</h4>
  
  <p class="how_to_apply"><?php 
echo $job->getHowToApply();
?>
</p>
  
  <div class="meta">
    <small>posted on <?php 
echo $job->getDateTimeObject('created_at')->format('m/d/Y');
?>
</small>
<?php use_helper('Text') ?>

<div class="formulario">
<h1><?php echo $artefacto->getNombre() ?></h1>

<h4>Validado: <?php if($artefacto->getValidado()) { echo 'VALIDADO'; } else { echo 'SIN VALIDAR'; }?></h4>
<h4>Tipo: <?php echo $artefacto->getTipo() ?></h4>
<div class="descripcion">Descripci&oacute;n: <?php echo simple_format_text($artefacto->getDescripcion()) ?>
</div>

<?php
$aux_fich = $artefacto->getFicheros();
if (sizeof($aux_fich) != 0){ ?>
<div class="descripcion">
<table class="form">
	<tr>
		<th><span>'Ficheros'</span></th>
		<td>
		<ul>
		<?php foreach ($aux_fich as $i => $fichero):
		if($fichero->getNombre() != null){ ?>
			<li><?php 

			$vector = explode(".", $fichero->getFile());
			$extension = $vector[count($vector)-1];
			$extension = strtolower($extension);


			switch($extension) {
				case "gif": echo '<img alt="'.$fichero->getDescripcion().'" width="400px" src='.url_for('version/descarga?fichero='.$fichero->getFile()).'/>'; break;
				case "jpg": echo '<img alt="'.$fichero->getDescripcion().'" width="400px" src='.url_for('version/descarga?fichero='.$fichero->getFile()).'/>'; break;