Ejemplo n.º 1
0
function bits_list($article_id, $type = 0)
{
    /**
    * Bits List Printing
    *
    * Prints Bits in list templates
    *
    * Arguments ( $article_id )
    * --------------------------------------
    *
    * $article_id 		 -> Article ID
    *
    **/
    if (isset($article_id) == true) {
        $data = article_data($article_id);
        if ($type == 0) {
            echo '<a href="' . static_url('main', 1) . $data->ar_url . '">';
            echo '	<h3 class="bit-title">' . $data->ar_title . '</h3>';
            echo '	<span class="section-link">' . $data->ar_sub_section . '</span>';
            echo '</a>';
        } else {
            echo '<a href="' . static_url('main', 1) . $data->ar_url . '">';
            echo '	<h3 class="bit-title">' . $data->ar_title . '</h3>';
            echo '</a>';
        }
    } else {
        echo '<a href="#">';
        echo '	<h3 class="bit-title">No Data Found</h3>';
        echo '	<span class="section-link">No data Found</span>';
        echo '</a>';
    }
}
Ejemplo n.º 2
0
									            	</div><!-- end of class ="overlay-box" -->							            	
									            <?php 
}
?>
									            </div><!-- end of class="atticle-image" -->
									        </div> <!-- end of column -1 -->
									        <div class="column-small-5 padd0-small">
									        	<div class="bits-container center-small">
									        		<h2 class="section-heading"><i class="fa fa-clipboard fa-2"></i>  Bits</h2>
									        		<div class="bits">
									        			<ul class="bit">
									        			<?php 
if (article_exist()) {
    $article_list = article_published(3, 0, True, 'Bits');
    while ($article_id = mysql_fetch_array($article_list, MYSQL_ASSOC)) {
        $data = article_data($article_id['SL_NO']);
        ?>
									        				<li>
									        					<a href="<?php 
        static_url('main');
        $data->article_url();
        ?>
">
									        						<h3 class="bit-title"><?php 
        $data->article_title();
        ?>
</h3>
									        						<span class="section-link">in <?php 
        $data->article_sub_section();
        ?>
</span>
Ejemplo n.º 3
0
<?php

/* 
	Header Include include.

	$title -> The page title of serving webpage, if not set Default value will be printed.
	$template -> Used to load Custome CSS/JS or any additional files. If not set Default styles will only be loaded.
*/
include '_core/init.php';
$template = 1;
$article_id = 145;
$data = article_data($article_id);
include '_includes/header.php';
?>
		<div class="content">
			<div class="content-inner">
				<header id="content-header">
					<div class="inner-container">
						<div class="row">
							<div class="column-small-11 center">
								<div class="row">
									<div class="column-small-8 cat-desc">
										<h1 class="article-heading"><?php 
$data->article_title();
?>
</h1>
										<p><?php 
$data->article_description();
?>
</p>
									</div>