Ejemplo n.º 1
0
<?php

if (SubfolioFiles::have_features()) {
    ?>

	<div id="features">
	  <ul>
			<?php 
    foreach (SubfolioFiles::features() as $feature) {
        $style = 'style="';
        if (isset($feature['width'])) {
            $style .= ' width: ' . $feature['width'] . 'px; ';
        }
        if (isset($feature['height'])) {
            $style .= ' height: ' . $feature['height'] . 'px; ';
        }
        $style .= '"';
        $target = "";
        if (isset($feature['target']) && $feature['target'] !== NULL) {
            $target = 'target="' . $feature['target'] . '"';
        }
        ?>
		    <li>
				  <a <?php 
        echo $target;
        ?>
 href="<?php 
        echo $feature['link'];
        ?>
" <?php 
        echo $style;