Ejemplo n.º 1
0
        include 'bookmarks-vote.inc.tpl.php';
        echo '  <div' . $adminBgClass . '>' . "\n";
        echo '   <div class="link">' . '<a href="' . htmlspecialchars($address) . '"' . $rel . ' class="taggedlink">' . filter($row['bTitle']) . '</a>' . $adminStar . "</div>\n";
        if ($row['bDescription'] == '') {
            $bkDescription = $GLOBALS['blankDescription'];
        } else {
            // Improve description display (anchors, links, ...)
            $bkDescription = preg_replace('|\\[\\/.*?\\]|', '', filter($row['bDescription']));
            // remove final anchor
            $bkDescription = preg_replace('|\\[(.*?)\\]|', ' <span class="anchorBookmark">$1</span> » ', $bkDescription);
            // highlight starting anchor
            $bkDescription = preg_replace('@((http|https|ftp)://.*?)( |\\r|$)@', '<a href="$1" rel="nofollow">$1</a>$3', $bkDescription);
            // make url clickable
        }
        echo '   <div class="description">' . nl2br($bkDescription) . "</div>\n";
        echo '   <div class="address">' . htmlspecialchars(shortenString($oaddress)) . "</div>\n";
        echo '   <div class="meta">' . $cats . "\n" . $copy . "\n" . $edit . "\n" . $update . "\n" . "  </div>\n";
        echo $privateNoteField != '' ? '    <div class="privateNote" title="' . T_('Private Note on this bookmark') . '">' . $privateNoteField . "</div>\n" : '';
        echo '  ';
        include 'bookmarks-vote-horizontal.inc.tpl.php';
        echo " </div>\n";
        echo " </li>\n";
    }
    ?>

</ol>

	<?php 
    if (getPerPageCount($currentUser) > 7) {
        echo '<p class="backToTop"><a href="#header" title="' . T_('Come back to the top of this page.') . '">' . T_('Top of the page') . '</a></p>';
    }
Ejemplo n.º 2
0
                break;
            case 'image':
                ?>
									<div class="element1 image" id="element_<?php 
                echo rawurlencode($repertoire_courant . "/" . $element['nom.extension']), "&amp;orderby=nom&amp;order=", $order;
                ?>
" title="<?php 
                echo $element['nom.extension'];
                ?>
">
										<div class="element1_1"><img alt="image" src="themes/original/images/48/<?php 
                echo strtolower($element['extension']);
                ?>
.png" /></div>				
										<div class="element1_2"><span><?php 
                echo shortenString(normalizeString($element['nom.extension']), 35);
                ?>
</span></div>						
										<div class="element1_3"><span><?php 
                echo $t_extensions[strtolower($element['extension'])];
                ?>
</span></div>	
										<div class="element1_4"><span><?php 
                echo formatSize($element['taille']);
                ?>
</span></div>										
									</div>								
									<?php 
                break;
        }
    }
Ejemplo n.º 3
0
				  <img class="ipad" style="margin-bottom: 20px" src="<?php 
            echo $featured_thumb;
            ?>
" width="750" alt="" data-ix="scroll-fade-from-right">
				</div>
				<?php 
        }
        ?>
				<div class="w-col w-col-5 col" data-ix="scroll-fade-from-left">
				  <h2 class="lft h2-features"><?php 
        the_title();
        ?>
</h2>
				  <div class="hero-line left"></div>
				  <div class="left features-content-left"><?php 
        echo shortenString(strip_tags($content, '<p>'), 300);
        ?>
</div>
				  <div class="div-left"><a class="button black btn-hero-about" href="<?php 
        the_permalink();
        ?>
">Read More</a>
				  </div>
				</div>
				<?php 
        if ($counter % 2 == 1) {
            ?>
				<div class="w-col w-col-7">
				  <img class="ipad" src="<?php 
            echo $featured_thumb;
            ?>
Ejemplo n.º 4
0
function Feed_filterItem(&$item)
{
    $item['title'] = shortenString($item['title'], 175);
    $item['summary'] = shortenString(strip_tags(str_replace(array('<br>', '<br/>'), ' ', $item['summary'])), 250);
    return;
}