コード例 #1
0
ファイル: sidebar.php プロジェクト: JamesWuChina/hhvip-ci
	<?php 
        foreach ($sidebar_news as $key => $blog) {
            ?>
		<div class="entries row">							
			<article class="type-post style-media-list media col-sm-6 col-md-12">
				<figure class="media-object pull-left" style="height:65px">
					<a href="<?php 
            echo base_url('b/' . $blog->category_title . '/' . $blog->url);
            ?>
" title="<?php 
            echo $blog->title;
            ?>
">
						<img src="<?php 
            echo blog_featured_img($blog->username, $blog->url, $blog->featured_image, 64);
            ?>
">
					</a>
				</figure>
				
				<div class="media-body">
					<h3  class="sidebar-list-title" style="font-weight:100">
						<a href="<?php 
            echo base_url('b/' . $blog->category_title . '/' . $blog->url);
            ?>
" title="<?php 
            echo $blog->title;
            ?>
">
							<?php 
コード例 #2
0
ファイル: index.php プロジェクト: JamesWuChina/hhvip-ci
				<li>LATEST NEWS</li>
			</ol>
		</div>
		<div class="news-ticker">
			<ul>
				<?php 
    foreach ($latest_news as $key => $news) {
        ?>
					<li class="hide-overflow"><a href="<?php 
        echo base_url('b/' . $news->category_title . '/' . $news->url);
        ?>
" title="Read about <?php 
        echo $news->title;
        ?>
"><img src="<?php 
        echo blog_featured_img($news->username, $news->url, $news->featured_image, 64);
        ?>
">
						<span style="color:red"><?php 
        echo ucfirst($news->category_title);
        ?>
</span> |  <?php 
        echo strtoupper($news->title);
        ?>
</a></li>
				<?php 
    }
    ?>
			</ul>
		</div>
コード例 #3
0
ファイル: index.php プロジェクト: JamesWuChina/hhvip-ci
            ?>
            </div>
            <?php 
        }
        ?>

            <article class="entry style-media media type-post">
            <figure class=" pull-left">
           <a href="<?php 
        echo base_url('b/' . $post->category_title . '/' . $post->url);
        ?>
" title="<?php 
        echo htmlspecialchars($post->title, ENT_QUOTES);
        ?>
"> <img src="<?php 
        echo blog_featured_img($post->username, $post->url, $post->featured_image, 150);
        ?>
"></a>
            </figure>
            <header class="entry-header">
            <h1 class="song-subsections-heading blog-list-title"><a href="<?php 
        echo base_url('b/' . $post->category_title . '/' . $post->url);
        ?>
" title="<?php 
        echo htmlspecialchars($post->title, ENT_QUOTES);
        ?>
"><?php 
        echo htmlspecialchars($post->title, ENT_QUOTES);
        ?>
</a></h1>                    
            <span style="color:#666;font-size:10px;">Posted on <?php