<?php

namespace Yoast\YoastCom\Theme;

$categories = query_categories(array('number' => 3, 'orderby' => 'rand'));
foreach ($categories as $category) {
    ?>
	<a href="<?php 
    echo esc_url(get_category_link($category->term_id));
    ?>
" class="more more--naked color-academy">
		<div class="more__holder more__holder--naked more__holder--left">
			<div class="more__supertitle"><?php 
    echo esc_html($category->name);
    ?>
</div>
			<div class="more__sublink"><!-- Byline --></div>
		</div>
	</a>
<?php 
}
Beispiel #2
0
        youtube($d, $t, $r);
    } else {
        echo "Url:{$d}\r\nChannel:{$t}\r\nNOT SUPPORTED YET.\r\n";
        stf($d);
    }
}
$cc = new cURL();
while (true) {
    echo "*** ZopTV.com v.{$version} by nixxo ***\r\n";
    $cat = null;
    $ff = $cc->get('http://www.zoptv.com');
    get_categories($ff, $cat);
    if ($cat == null) {
        die("Website changed or down.");
    }
    $sel = query_categories($cat);
    if ($sel == null) {
        die("Bye bye...");
    }
    $ch_url = $sel;
    while (true) {
        $chn = null;
        $ff = $cc->get($ch_url[1]);
        get_channels($ff, $chn);
        if ($chn == null) {
            echo "Impossible to retrieve channels list.\r\n";
            break;
        }
        $sel = query_channels($chn, $ch_url[0]);
        if ($sel == null) {
            break;