예제 #1
0
파일: index.php 프로젝트: faosclass/gz_news
		<div class="row">
			<!-- Wide Column -->
			<div class="sixteen columns">
				<?php 
if (is_array($list) && !empty($list)) {
    ?>

					<?php 
    foreach ($list as $item) {
        ?>
						<!--Novedades-->
						<div class="post_item">

							<?php 
        $images = GzNewsUtils::getImagesUrl($item['gn_id']);
        ?>
							<?php 
        if ($images && isset($images['original'])) {
            ?>
								<div class="pic">
									<a href="<?php 
            echo GzNewsUtils::getItemUrl($item);
            ?>
"><img src="<?php 
            echo $images['original'];
            ?>
"/><div class="img_overlay"></div></a>
								</div>
							<?php 
        }
예제 #2
0
파일: item.php 프로젝트: faosclass/gz_news
<?php

define('ABS_PATH', dirname(dirname(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME']))))) . '/');
require_once ABS_PATH . 'oc-load.php';
$dao = GzNewsDao::newInstance();
$item_id = (int) Params::getParam('i');
$item = $dao->findByPrimaryKey($item_id);
$images = GzNewsUtils::getImagesUrl($item_id);
$model = new GzNewsModel();
if ($item) {
    Params::setParam('themeCustomtitle', $item['gn_title']);
} else {
    $model->redirectTo(GzNewsUtils::getIndexUrl());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php 
echo str_replace('_', '-', osc_current_user_locale());
?>
">
    <head>
		<?php 
osc_current_web_theme_path('head.php');
?>
        <meta name="robots" content="index, follow" />
        <meta name="googlebot" content="index, follow" />
    </head>
    <body>

		<?php 
/** Header that includes menu, logo, etc * */