Пример #1
0
        <span class='st_linkedin' displayText='LinkedIn'></span>
        <span class='st_pinterest' displayText='Pinterest'></span>
        <span class='st_email' displayText='Email'></span>
    
        <span class='st_fblike' displayText='Facebook Like'></span>
    </div>
    <div class="content-holder add">
        <a  rel="lightbox[gallery1]" href="<?php 
echo BASE_URL . '/uploads/news/' . $data['news02file'];
?>
" title="<?php 
echo $data['news02title'];
?>
">
   <?php 
echo LoadMyImage(BASE_URL . '/uploads/news/', $data['news02file'], $data['news02title'], '');
?>
    
    </a>
    	<!--
<img src="images/img1.jpg" alt="img1" class="pull-left img-thumbnail">
-->
        <p><?php 
echo $data['news02detail'];
?>
</p>       
        
    </div>
    
</section>
    
Пример #2
0
        $order = $prefix . 'hits desc';
    } else {
        $where = $prefix . $_GET['where'];
    }
}
//echo $where;die();
//echo $page;
$objNews = new News();
$_data = $objNews->get($where, $order, $per, $page);
//var_dump($_data);die();
$uploadUrl = UPLOADS . $objNews->getUploadURL() . 'thumb/';
foreach ($_data as $row) {
    ?>
<div class="news-items  clearfix">
    <?php 
    echo LoadMyImage($uploadUrl, $row[$prefix . 'file'], $row[$prefix . 'title'], 'img-responsive');
    ?>
     
    <div class="shadow">
      <h5><a href="<?php 
    echo getSiteLink('NewsArticle', '', $row[$prefix . 'title'], $row[$prefix . 'uin']);
    ?>
">
        <?php 
    echo $row[$prefix . 'title'];
    ?>
        
        </a></h5>
      <p class="bg2"><?php 
    echo clipMyText($row[$prefix . 'detail'], 500);
    ?>
Пример #3
0
<div class="internal-news">
      <h2>हाम्रो बारेमा</h2>
</div>
<div class="about-us">
    <?php 
echo LoadMyImage(BASE_URL . 'uploads/newstype/', $data['news01image'], $data['news01title'], '');
?>
    
    
    <p><?php 
echo $data['news01detail'];
?>
</p>            	
</div>


Пример #4
0
function getSingleBlockByType($module)
{
    $objType = new NewsType();
    $cat_data = $objType->getByModuleName($module);
    //var_dump($cat_datas);
    //$cat_data='';
    $id = $cat_data['news01uin'];
    $objNews = new News();
    $prefix = $objNews->getPrefix();
    //'news02';
    $data = $objNews->getByType($id, 1, 5);
    $uploadUrl = UPLOADS . $objNews->getUploadURL() . 'thumb/';
    //var_dump($data);
    ?>
                <div class="col-md-4">
					<div class="internal-news">
						<h2>
                            <a href="<?php 
    echo getSiteLink('News', '', '', $cat_data['news01' . 'uin'], $cat_data['news01' . 'title']);
    ?>
"><?php 
    echo $cat_data['news01' . 'title'];
    ?>
</a>
                        
                        </h2>
					</div>
					<div class="news-blog">
						
						<div class="media">
                            <?php 
    $list = '';
    $list2 = '';
    ?>
                            <?php 
    $ct = 0;
    foreach ($data as $row) {
        ?>
                                <?php 
        if ($ct < 1) {
            ?>
                                    <h3>
                                        <a href="<?php 
            echo getSiteLink('News', '', '', $cat_data['news01' . 'uin'], $cat_data['news01' . 'title']);
            ?>
">
                                        <?php 
            echo $row['news02title'];
            ?>
                                        </a>
                                    </h3>
        							<div class="media-left"> 
                                    <?php 
            echo LoadMyImage($uploadUrl, $row[$prefix . 'file'], $row[$prefix . 'title']);
            ?>
                                     
                                    </div>
        							<div class="media-body"> <a href="#"></a>
        								<p>
                                            <?php 
            echo clipMyText($row[$prefix . 'detail'], 200);
            ?>
                                        </p>
        							</div>
                                <?php 
        } else {
            $list2 .= '<li><a href="' . getSiteLink('NewsArticle', '', $row[$objNews->getPrefix() . 'title'], $row[$objNews->getPrefix() . 'uin']) . '">' . $row['news02title'] . '</a></li>';
        }
        ?>
                            <?php 
        $ct++;
    }
    ?>
							<div class="news-item-blog">
								<ul>
								    <?php 
    echo $list2;
    ?>
									
                                </ul>
							</div>
						</div>
					</div>
				</div>             
<?php 
}