예제 #1
0
<meta property="og:image" content="<?php 
echo BASE_URL . '/uploads/news/' . $data['news02file'];
?>
"/>
<meta property="og:title" content="<?php 
echo $data['news02title'];
?>
"/>
<meta property="og:detail" content="<?php 
echo clipMyText($data['news02detail'], 500);
?>
"/>
<section id="content" class="add">
    <h1><?php 
echo $data['news02title'];
?>
</h1>
    <div class="social-sharing">
               	<script type="text/javascript">var switchTo5x=true;</script>
        <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
        <script type="text/javascript">stLight.options({publisher: "9873e8fe-4151-4e35-9577-0646980dbb39", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
        <span class='st_sharethis' displayText='ShareThis'></span>
        <span class='st_googleplus' displayText='Google +'></span>
        <span class='st_facebook' displayText='Facebook'></span>
        <span class='st_twitter' displayText='Tweet'></span>
        <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>
예제 #2
0
//$SQL='select COUNT(*) as rowCount from news02news where news02uin>0 ';
///$data=Query($SQL);
//$page='News';
//$objCat= new NewsType();
$obj = new NewsType();
$objNews = new News();
$activity_type = $obj->getByModuleName('activity');
//var_dump($activity_type);
$activity = $objNews->getByType($activity_type['news01uin'], 1, 1);
//var_dump($activity);
$plan = $obj->getByModuleName('plans');
$donation = $obj->getByModuleName('donation');
//var_dump($donation);
//var_dump($activity);
if (!empty($activity)) {
    $list['activity'] = clipMyText($activity[0]['news02detail'], 500);
} else {
    $list['activity'] = '';
}
$list['plan'] = clipMyText($plan['news01detail'], 500);
$list['donation'] = clipMyText($donation['news01detail'], 200);
//echo ($list->rowCount());
//var_dump($list);
//$Cat=$objCat->getById($id);
$data['title'] = "ताजा खबर";
$data['data'] = $list;
//var_dump($data);
//$data['tot_page']=ceil(($list->rowCount())/NEWS_PER_PAGE);
//echo $list->rowCount();
echo defaultModule($strModuleName, $data);
예제 #3
0
    <?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);
    ?>
</p>
	  <a class="" href="<?php 
    echo getSiteLink('NewsArticle', '', $row[$prefix . 'title'], $row[$prefix . 'uin']);
    ?>
">Read More..</a>
       </div>
  </div>

<?php 
}
?>
<div class="clearfix"></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 
}