예제 #1
0
파일: newPreview.php 프로젝트: voota/voota
    ?>
          	<?php 
    if ($form['enlace_n4']['url']->getValue()) {
        ?>
    		      <li><?php 
        echo link_to(toShownUrl(urldecode($form['enlace_n4']['url']->getValue())), toUrl($form['enlace_n4']['url']->getValue()));
        ?>
</li>
          	<?php 
    }
    ?>
          	<?php 
    if ($form['enlace_n5']['url']->getValue()) {
        ?>
    		      <li><?php 
        echo link_to(toShownUrl(urldecode($form['enlace_n5']['url']->getValue())), toUrl($form['enlace_n5']['url']->getValue()));
        ?>
</li>
          	<?php 
    }
    ?>
          </ul>
      	<?php 
}
?>
      </div>
    </div>

  </div>
</div>
예제 #2
0
파일: showSuccess.php 프로젝트: voota/voota
    </div>
    
    <?php 
if (count($activeEnlaces) > 0) {
    ?>
      <div id="external-links">
        <h3><?php 
    echo __('Enlaces externos');
    ?>
</h3>
        <ul>
          <?php 
    foreach ($activeEnlaces as $enlace) {
        ?>
    	      <li><?php 
        echo link_to(toShownUrl(urldecode($enlace->getUrl())), toUrl($enlace->getUrl()));
        ?>
</li>
          <?php 
    }
    ?>
        </ul>
      </div>
    <?php 
}
?>
    
    <div id="etiquetas">
      <?php 
include_partial('global/etiquetas', array('entity' => $partido));
?>
예제 #3
0
function _autolink_create_html_tags(&$value, $key, $other = null)
{
    $target = $nofollow = null;
    if (is_array($other)) {
        //$target      =  ( $other['target']   ? " target=\"$other[target]\"" : null );
        // see: http://www.google.com/googleblog/2005/01/preventing-comment-spam.html
        $nofollow = $other['nofollow'] ? ' rel="nofollow"' : null;
    }
    $value = "<a href=\"" . toUrl($key) . "\"{$target}{$nofollow}>" . toShownUrl($key) . "</a>";
}