本文整理汇总了PHP中disqus函数的典型用法代码示例。如果您正苦于以下问题:PHP disqus函数的具体用法?PHP disqus怎么用?PHP disqus使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了disqus函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
"><i class="fa fa-link"></i> Read more</a>
</div><!--//content-->
</div>
<?php
}
?>
</div>
<?php
}
?>
</div>
</div><!--//section-inner-->
</aside><!--//section-->
<?php
if (disqus()) {
?>
<aside class="comments aside section">
<div class="section-inner">
<h2 class="heading">Comments</h2>
<div class="content">
<?php
echo recent_comments();
?>
<style>.dsq-widget-list {padding:0;}li.dsq-widget-item {color:#434343;border-bottom: 1px dotted #d9d9d9;margin: 0 0 10px;padding-bottom: 10px;font-size:14px;}li.dsq-widget-item:last-child{border-bottom:none;margin-bottom:0;}a.dsq-widget-user {font-weight:normal;}img.dsq-widget-avatar {margin-right:10px; }.dsq-widget-comment {display:block;padding-top:5px;}.dsq-widget-comment p {display:block;margin:0;padding:0!important;font-size:14px!important;}p.dsq-widget-meta {padding-top:5px!important;margin:0;font-size:14px!important;}#dsq-combo-widget.grey #dsq-combo-content .dsq-combo-box {background: transparent;}#dsq-combo-widget.grey #dsq-combo-tabs li {background: #DDDDDD;}</style>
</div><!--//content-->
</div><!--//section-inner-->
</aside><!--//section-->
<?php
}
?>
示例2: disqus
" rel="next"><?php
echo $next['title'];
?>
</a></span>
<?php
}
?>
<?php
if (!empty($prev)) {
?>
<span class="older"><a href="<?php
echo $prev['url'];
?>
" rel="prev"><?php
echo $prev['title'];
?>
</a> »</span>
<?php
}
?>
</div>
<?php
if (disqus()) {
?>
<?php
echo disqus($p->title, $p->url);
?>
<?php
}
?>
</div>
示例3: disqus
?>
';
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
<?php
} else {
?>
<section class="disqus">
<?php
echo disqus('getkirby');
?>
</section>
<?php
}
?>
<?php
}
?>
</div>
<aside class="sidebar col-2-6 last">
<nav>
<h2 class="vh">Navigation</h2>
示例4: foreach
$i = 0;
$error = 'Your browser does not support the audio element.';
echo '<audio id="audio" preload="auto" controls="" style="width:890px;"><source src="' . $site_url . 'media/music/' . $media[0] . '"> ' . $error . '</audio><a style="cursor: pointer;" id="mp_shuffle">Shuffle</a><ul id="playlist" style="list-style-type:none; padding-left:0px;">';
foreach ($media as $file) {
$title = substr($file, 0, -4);
$file = str_replace(' ', '%20', $file);
if ($title != "") {
echo '<li class=""><a href="' . $site_url . 'media/music/' . $file . '">' . $title . '</a></li>';
}
$i++;
}
?>
</ul>
</div><div class="div center">Click on a track to start playing it. Let us know which are your favorite ones by leaving a comment bellow.</div>
<?php
disqus();
?>
<script type="text/javascript" src="../game/js/music.js"></script>
<?php
}
echo "</div></div>";
include '../footer.php';
?>
<!-- Highlight active subpage -->
<script>document.getElementById("<?php
echo $type;
?>
").className += " active";</script>
<!-- Focus on content when clicking subpage again -->
示例5: creatureGrid
}
.progress-0 {background-image: none;}
.progress-10 {background-position: -675px 0;}
.progress-20 {background-position: -600px 0;}
.progress-30 {background-position: -525px 0;}
.progress-40 {background-position: -450px 0;}
.progress-50 {background-position: -375px 0;}
.progress-60 {background-position: -300px 0;}
.progress-70 {background-position: -225px 0;}
.progress-80 {background-position: -150px 0;}
.progress-90 {background-position: -75px 0;}
.progress-100 {background-position: 0 0;}
</style>
<?php
creatureGrid($creature_results);
?>
<br>
<?php
// Detailed view
$i = 0;
foreach ($creature_results as $r) {
$underscore = str_replace(' ', '_', $r['name']);
echo "<div class='div center' id='{$underscore}'>";
cards($r);
echo '<br>';
progress($r['progress'], $r);
echo '</div>';
$i++;
}
disqus('Ancient Beast - Bestiary');
include '../footer.php';