function display_post($Post) { ?> <div class="post-header"> <span class="post-date"><?php echo date('d.m.y', $Post->updated); ?> </span> <h2 class="post-heading"><a href="<?php echo posturl($Post); ?> "><?php echo $Post->title; ?> </a></h2> </div> <div class="post-image"> <a href="<?php echo posturl($Post); ?> "><img src="<?php echo $Post->mainimage; ?> "/></a> </div> <div class="post-short"> <p><?php echo $Post->subtitle; ?> </p> </div> <div class="post-meta"> <a href="<?php echo posturl($Post); ?> ">Read</a>/ <span>Share</span> <?php echo postshare($Post); ?> </div> <?php }
function postshare($Post) { ?> <a href="http://facebook.com/sharer.php?u=<?php echo posturl($Post); ?> " target="_blank"><i class="fa fa-facebook"></i></a> <a href="<?php echo twitter_link($Post->title, posturl($Post)); ?> " target="_blank"><i class="fa fa-twitter"></i></a> <!---<a href="http://facebook.com/sharer.php?u=<?php echo posturl($Post); ?> " target="_blank"><i class="fa fa-instagram"></i></a>!---> <a href="<?php echo pinterest_link(posturl($Post), IMAGE_ROOT . $Post->mainimage, $Post->title); ?> " target="_blank"><i class="fa fa-pinterest"></i></a> <?php }
<div class="row custom-page"> <article class="col-xs-9"> <div class="post-header"> <span class="post-date"><?php echo date('d.m.y', $Published->updated); ?> </span> <h2 class="post-heading"><a href="<?php echo posturl($Published); ?> "><?php echo $Published->title; ?> </a></h2> </div> <div class="post-meta clearfix"> <span>Share</span> <?php echo postshare($Published); ?> </div> <div class="post-image"> <img src="<?php echo $Published->mainimage; ?> "/> </div> <div class="post-content clearfix"> <p><?php echo $Published->data; ?>
function getLink($stream, $hd) { unlink(dirpath . "weeb.last"); unlink(dirpath . "weeb.cgi"); $weeb_last = fopen(dirpath . "weeb.last", 'w'); $welast = str_replace('&', '&', $_SERVER["QUERY_STRING"]); fwrite($weeb_last, $welast); fclose($weeb_last); if ($hd == 1 && WEEB_HD == 1) { $hd_link = 'HI'; } else { $hd_link = ''; } $strumien = posturl('http://www.weeb.tv/api/setPlayer', "cid=" . $stream . '&username='******'&userpassword='******'&platform=XBMC'); //echo $strumien; $url_parsed = parse_url('http://www.weeb.tv/?' . $strumien); parse_str($url_parsed['query'], $dane); //print_r($dane); $link = 'exec ' . dirpath . 'bin/rtmpdump -o - -r "' . $dane["10"] . '/' . $dane["11"] . $hd_link . '" -W "http://static2.weeb.tv/player.swf" -p "http://weeb.tv" -y "' . $dane["11"] . $hd_link . '" --weeb "' . $dane["73"] . ';' . WEEB_LOGIN . ';' . WEEB_HASLO . '" -v'; //echo $link; $weeb_play = fopen(dirpath . "weeb.cgi", 'w'); fwrite($weeb_play, "#!/bin/sh\ncat <<EOF\nContent-type: \"video/mp4\"\n\nEOF\n" . $link); fclose($weeb_play); chmod(dirpath . "weeb.cgi", 0755); echo webpath . 'weeb.cgi'; }
<ul> <?php foreach ($All as $OtherPost) { ?> <?php if (isset($Post) && $OtherPost->id() == $Post->id()) { continue; } ?> <li> <span class="post-date"><?php echo date('d.m.y', $Published->updated); ?> </span> <a href="<?php echo posturl($OtherPost); ?> "><img src="<?php echo $OtherPost->mainimage; ?> "/><?php echo $OtherPost->title; ?> </a> </li> <?php } ?> </ul> </div>