Exemple #1
0
                <div class="main-more"><a href="http://<?php 
echo $_SERVER['SERVER_NAME'];
?>
/<?php 
echo $registry['main-article'][0]['cat_chpu'];
?>
/<?php 
echo $registry['main-article'][0]['chpu'];
?>
/">ვრცლად</a></div>
                <br>
                <div class="main-time"><span><?php 
echo gedate('l H:i', $registry['main-article'][0]['date']);
?>
 </span> / <span> <?php 
echo gedate('d.m.Y', $registry['main-article'][0]['date']);
?>
</span></div>
                <?php 
if ($registry['deviceType'] == 'computer') {
    ?>
<br><?php 
}
?>
                <div class="fb-like" data-href="http://<?php 
echo $_SERVER['SERVER_NAME'];
?>
/<?php 
echo $registry['main-article'][0]['cat_chpu'];
?>
/<?php 
Exemple #2
0
?>
" width="535" height="1115" alt="<?php 
echo $registry['post'][0]['alt_search'];
?>
"/>
    </div>

    <div class="post-time">
        <span><?php 
echo gedate('l', $registry['post'][0]['date']);
?>
</span> <span><?php 
echo gedate('H:i', $registry['post'][0]['date']);
?>
</span> <span><?php 
echo gedate('d.m.Y', $registry['post'][0]['date']);
?>
</span>
    </div>
    <div class="post-author">
        <div class="post-avatar" align="center">
            <div style="background:url('/forum/img/avatars/<?php 
echo $registry['post'][0]['user'];
?>
.jpg') 50% 40% no-repeat;"></div>
        </div>
        <br><br>
        <div><span>ავტორი:</span> <span><?php 
echo $registry['post'][0]['realname'];
?>
</span></div>
Exemple #3
0
    echo $item['title'];
    ?>
" align="left"> <?php 
    $str = get_serie($item['title']);
    $title = str_replace('(' . $str . ')', '', $item['title']);
    echo $title;
    if (!empty($str)) {
        echo '<br>(' . $str . ')';
    }
    ?>
 </a>
                                <br><div class="two-time"><span><?php 
    echo gedate('H:i', $item['date']);
    ?>
 </span> / <span> <?php 
    echo gedate('d.m.Y', $item['date']);
    ?>
</span></div>
                            </li>
                        <?php 
}
?>
                    </ul>
                </div>
            </td>
        </tr>
    </table>



    <?php 
Exemple #4
0
 function loadMore($args = array())
 {
     global $theme;
     $time = time();
     $last_id = intval($args['last_id']);
     $num = intval($args['num']);
     $out = '';
     $last = $this->DB->getOne("SELECT {$this->p}news.id FROM {$this->p}news WHERE {$this->p}news.moderate=1 and {$this->p}news.date <= {$time} order by {$this->p}news.date ASC");
     if ($last == $last_id) {
         echo $last_id;
     } else {
         if ($last_id > 0) {
             $registry['more_articles'] = $this->DB->getAll('SELECT osr_news.*,osr_users.realname,osr_category.name,osr_category.cat_chpu FROM osr_news
                                      LEFT JOIN osr_users ON osr_users.id = osr_news.user
                                      LEFT JOIN osr_category ON osr_category.id = osr_news.cat
                                      WHERE osr_news.moderate = 1 and osr_category.test = 0 and osr_category.section = "post" and osr_news.date <= ' . $time . ' ORDER BY osr_news.date DESC LIMIT ' . $num . ',5');
             if (count($registry['more_articles']) > 0) {
                 $out .= '<ul>';
                 foreach ($registry['more_articles'] as $item) {
                     $th['slide'] = get_serialize($item['slide']);
                     $out .= '<li class="web" data-id="' . $item['id'] . '"><div class="five-rubric">';
                     $out .= '<a href="http://' . $_SERVER['SERVER_NAME'] . '/' . $item['cat_chpu'] . '/">' . $item['name'] . '</a><br>';
                     $out .= '<div class="five-time">' . gedate('d.m.Y', $item['date']) . '</div><br><br>';
                     $out .= '<div class="fb-like" data-href="http://' . $_SERVER['SERVER_NAME'] . '/' . $item['cat_chpu'] . '/' . $item['chpu'] . '/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div></div>';
                     $out .= '<div class="five-title"><a href="http://' . $_SERVER['SERVER_NAME'] . '/' . $item['cat_chpu'] . '/' . $item['chpu'] . '/">' . $item['title'] . '</a><br><br>';
                     if (strlen($item['text_short']) > 160) {
                         $out .= mb_substr(strip_tags($item['text_short']), 0, 160, "utf-8") . " ...";
                     } else {
                         $out .= strip_tags($item['text_short']);
                     }
                     $out .= '<div class="fix"></div></div>';
                     $out .= '<div class="five-image">';
                     $out .= '<a href="http://' . $_SERVER['SERVER_NAME'] . '/' . $item['cat_chpu'] . '/"><h3 style="';
                     if (count($th['slide']['img']) > 1) {
                         $out .= "background-image:url('/" . $theme . "images/main_icon.png');background-repeat:no-repeat;background-size:30px 30px;background-position:right 10px center;padding:10px 50px 7px 10px;";
                     } elseif ($item['style'] == 12) {
                         $out .= "background-image:url('/" . $theme . "images/vcam.png');background-repeat:no-repeat;background-size:30px 26px;background-position:right 10px center;padding:10px 50px 7px 10px;";
                     } else {
                         $out .= "padding:10px 10px 7px 10px;";
                     }
                     $out .= '">' . $item['name'] . '</h3></a>';
                     $out .= '<a href="http://' . $_SERVER['SERVER_NAME'] . '/' . $item['cat_chpu'] . '/' . $item['chpu'] . '/"><img src="' . substr($item['thumbs'], 2) . '" width="400"></a></div></li>';
                 }
                 $out .= '</ul>';
                 echo $out;
             } else {
                 echo 0;
             }
         }
     }
     die;
 }