Example #1
0
function home()
{
    $r['top5'] = top5();
    $r['pense'] = pense();
    $r['videos'] = videos();
    $r['vn'] = vn();
    $r['ppr'] = ppr();
    return $r;
}
Example #2
0
        $output[] = array("id" => $item->snippet->resourceId->videoId, "title" => preg_replace("!\\s+!", " ", preg_replace("/\\x{25ba}/u", "", $item->snippet->title)));
    }
    if (empty($output)) {
        return null;
    }
    return $output;
}
$list = array();
$temp = GKP_ROOT . "assets" . DIRECTORY_SEPARATOR . "temp" . DIRECTORY_SEPARATOR . "videos";
if (filemtime($temp) <= strtotime("-2 hours")) {
    unlink($temp);
}
if (file_exists($temp)) {
    $list = json_decode(file_get_contents($temp), true);
} else {
    $list = videos(GKP_Y_COUNT, GKP_Y_USER, GKP_Y_KEY);
    file_put_contents($temp, json_encode($list));
}
?>
		<style type="text/css">
			body { margin-top: 50px }
		</style>
		<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
			<ol class="carousel-indicators">
<?php 
for ($i = 0; $i < count($list); $i++) {
    ?>
				<li data-target="#carousel-example-generic" data-slide-to="<?php 
    echo $i;
    ?>
"<?php 
} else {
    if (count($kol) == 3) {
        text_help(4);
        videos(2);
        course(2);
        faq(4);
    } else {
        if (count($kol) == 2) {
            text_help(8);
            videos(2);
            course(2);
            faq(8);
        } else {
            if (count($kol) == 1) {
                text_help(8);
                videos(2);
                course(2);
                faq(4);
            }
        }
    }
}
?>
                                </div>
                        </div>
<!--overview Content-repalce End--> 
                    </div>
                </div>
            </div> 
        </div>
    </div>