本文整理汇总了PHP中jomcomment函数的典型用法代码示例。如果您正苦于以下问题:PHP jomcomment函数的具体用法?PHP jomcomment怎么用?PHP jomcomment使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了jomcomment函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: integrateVideoComments
function integrateVideoComments($row)
{
$c = jomtube_configs::get_instance();
$jomtubeCommentingSystemCode = '';
if ($c->commenting_system != 'No') {
//integrate commenting system with JomComment
if ($c->commenting_system == 'JomComment') {
if (file_exists(JPATH_ROOT . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php')) {
require_once JPATH_ROOT . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
$jomtubeCommentingSystemCode = jomcomment($row->id, 'com_jomtube');
} else {
$jomtubeCommentingSystemCode = '<b>You must install JomComment component to use comment function</b>';
}
}
//integrate commenting system with JComment
if ($c->commenting_system == 'JComment') {
if (file_exists(JPATH_SITE . DS . 'components/com_jcomments/jcomments.php')) {
require_once JPATH_SITE . DS . 'components/com_jcomments/jcomments.php';
$jomtubeCommentingSystemCode = JComments::showComments($row->id, 'com_jomtube', $row->video_title);
} else {
$jomtubeCommentingSystemCode = '<b>You must install JComment component to use comment function</b>';
}
}
}
return $jomtubeCommentingSystemCode;
}
示例2: onEventDetailsEnd
/**
* This method handles the supported comment systems
*
* @access public
* @param int $event_id Integer Event identifier
* @param int $event_title String Event title
* @return boolean
* @since 1.0
*/
public function onEventDetailsEnd($event_id, $event_title = '')
{
//simple, skip if processing not needed
if (!$this->params->get('commentsystem', '0')) {
return '';
}
$res = '';
//jomcomment integration
if ($this->params->get('commentsystem') == 1) {
if (file_exists(JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php')) {
require_once JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
$res .= '<div class="elcomments">';
$res .= jomcomment($event_id, 'com_eventlist');
$res .= '</div>';
}
}
//jcomments integration
if ($this->params->get('commentsystem') == 2) {
if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php')) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
$res .= '<div class="elcomments">';
$res .= JComments::showComments($event_id, 'com_eventlist', $event_title);
$res .= '</div>';
}
}
//JXtended Comments integration
if ($this->params->get('commentsystem') == 3) {
if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_comments' . DS . 'helpers' . DS . 'html' . DS . 'comments.php')) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_comments' . DS . 'helpers' . DS . 'html' . DS . 'comments.php';
$res .= '<div class="elcomments">';
// display sharing
$res .= JHtml::_('comments.share', substr($_SERVER['REQUEST_URI'], 1), $event_title);
// display ratings
$res .= JHtml::_('comments.rating', 'eventlist', $event_id, 'index.php?option=com_eventlist&view=details&id=' . $event_id, substr($_SERVER['REQUEST_URI'], 1), $event_title);
// display comments
$res .= JHtml::_('comments.comments', 'eventlist', $event_id, 'index.php?option=com_eventlist&view=details&id=' . $event_id, substr($_SERVER['REQUEST_URI'], 1), $event_title);
$res .= '<style type="text/css">';
$res .= 'div#respond-container dt { float: none;border-bottom: medium none;padding: 0;width: auto;}';
$res .= '</style>';
$res .= '</div>';
}
}
return $res;
}
示例3: getjomtubecomments
function getjomtubecomments($id)
{
global $mosConfig_absolute_path, $Itemid;
require $mosConfig_absolute_path . '/components/com_jomtube/includes/jomtube_permissions.php';
require $mosConfig_absolute_path . "/administrator/components/com_jomtube/jomtube_config.php";
$comments = "";
if ($showcomments == "yes") {
if ($commentingsystem == "jcomments") {
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once $comments;
$comments = JComments::showComments($id, 'com_jomtube', '');
}
} else {
if ($commentingsystem == "jomcomment") {
$jomcommentfile = $mosConfig_absolute_path . "/mambots/content/jom_comment_bot.php";
if (file_exists($jomcommentfile)) {
include_once $jomcommentfile;
$comments = jomcomment($id, "com_jomtube");
$comments .= "<div id=\"jomtubefbdiscussinput\"></div><div id=\"toggle\"></div>";
}
} else {
if ($commentingsystem == "fireboard") {
if ($showcomments == "yes") {
$comments = jomtubefbforum($id);
}
if ($comments == "") {
$comments = "<div id=\"jomtubefbdiscussinput\"></div><div id=\"toggle\"></div>";
}
} else {
if ($commentingsystem == "nocomment") {
$comments = "<div id=\"jomtubefbdiscussinput\"></div><div id=\"toggle\"></div>";
}
}
}
}
}
return $comments;
}
示例4: elseif
?>
</table>
</fieldset>
<?php
}
if ($this->config->get('comments_feature') == 'jcomments') {
$comments = ACYMAILING_ROOT . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
if (file_exists($comments)) {
require_once $comments;
echo JComments::showComments($this->mail->mailid, 'com_acymailing', $this->mail->subject);
}
} elseif ($this->config->get('comments_feature') == 'jomcomment') {
$comments = ACYMAILING_ROOT . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
if (file_exists($comments)) {
require_once $comments;
echo jomcomment($this->mail->mailid, 'com_acymailing');
}
} elseif ($this->config->get('comments_feature') == 'disqus') {
$disqus_shortname = $this->config->get('disqus_shortname');
if (!empty($disqus_shortname)) {
$lang = JFactory::getLanguage();
$lang_shortcode = explode('-', $lang->getTag());
?>
<div style="clear:both;"></div><div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_identifier = "Joomla_Disqus_MAILID_<?php
echo $this->mail->mailid;
?>
";
var disqus_shortname = "<?php
echo $disqus_shortname;
示例5: defined
<?php
/**
* @package EasyBlog
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
?>
<div id="section-comments">
<?php
echo jomcomment($blog->id, 'com_easyblog');
?>
</div>
示例6: load_comments
/**
* Loads the comments from the installed/selected comment system. The comment system <code>type</code> should tell which comment system need to be used to load the comments from. The possible values are:<br><br>
* jcomment - JComments (id and title are required) <br>
* fbcomment - Facebook comment system (url is required)<br>
* disqus - Disqus comment system (id, title, identifier and url are required)<br>
* intensedebate - Intense Debate comment system (id, title, identifier and url are required)<br>
* jacomment - JAComment system (id and title are required)<br>
* jomcomment - JomComment (id is required)<br><br>
* Passing any other value will silently skips the code. In all the above cases, <code>type</code> and <code>app_name</code> are required parameters.
* While <code>type</code> specifies the comment system to be used, <code>app_name</code> is the Joomla extension name (ex: com_appname) which is loading the comments for its content.
*
* @param string $type comment system type
* @param string $app_name extension name
* @param int $id id of the content for which the comments are being loaded
* @param string $title title of the content
* @param string $url page url in case of facebook/disqus/intensedebate comment system.
* @param string $identifier disqus username in case of disqus/intensedebate comment system.
* @param object $item the item object for kommento
*
* @return string the code to render the comments.
*/
public static function load_comments($type, $app_name, $id = 0, $title = '', $url = '', $identifier = '', $item = null)
{
switch ($type) {
case 'jcomment':
$app = JFactory::getApplication();
$path = JPATH_ROOT . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
if (file_exists($path)) {
require_once $path;
return JComments::showComments($id, $app_name, $title);
}
break;
case 'fbcomment':
return '
<div id="fb-root"></div>
<script type="text/javascript">
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
fjs.parentNode.insertBefore(js, fjs);
}(document, "script", "facebook-jssdk"));
</script>
<div class="fb-comments" data-href="' . $url . '" data-num-posts="5" data-width="640"></div>';
case 'disqus':
return '
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = "' . $identifier . '";
// var disqus_developer = 1;
var disqus_identifier = "' . $id . '";
var disqus_url = "' . $url . '";
var disqus_title = "' . $title . '";
(function() {
var dsq = document.createElement("script");
dsq.type = "text/javascript";
dsq.async = true;
dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>';
case 'intensedebate':
return '
<script>
var idcomments_acct = "' . $identifier . '";
var idcomments_post_id = "' . $id . '";
var idcomments_post_url = "' . $url . '";
</script>
<span id="IDCommentsPostTitle" style="display:none"></span>
<script type="text/javascript" src="http://www.intensedebate.com/js/genericCommentWrapperV2.js"></script>';
break;
case 'jacomment':
if (!JRequest::getInt('print') && file_exists(JPATH_SITE . DS . 'components' . DS . 'com_jacomment' . DS . 'jacomment.php') && file_exists(JPATH_SITE . DS . 'plugins' . DS . 'system' . DS . 'jacomment.php')) {
$_jacCode = "#{jacomment(.*?) contentid=(.*?) option=(.*?) contenttitle=(.*?)}#i";
$_jacCodeDisableid = "#{jacomment(\\s)off.*}#i";
$_jacCodeDisable = "#{jacomment(\\s)off}#i";
if (!preg_match($_jacCode, $title) && !preg_match($_jacCodeDisable, $title) && !preg_match($_jacCodeDisableid, $title)) {
return '{jacomment contentid=' . $id . ' option=' . $app_name . ' contenttitle=' . $title . '}';
}
}
break;
case 'jomcomment':
$path = JPATH_PLUGINS . DS . 'content' . DS . 'jom_comment_bot.php';
if (file_exists($path)) {
include_once $path;
return jomcomment($id, $app_name);
}
break;
case 'kommento':
$api = JPATH_ROOT . DS . 'components' . DS . 'com_komento' . DS . 'bootstrap.php';
if (file_exists($api)) {
require_once $api;
$item->text = $item->introtext = !empty($item->description) ? $item->description : '';
return Komento::commentify($app_name, $item);
}
break;
case 'ccomment':
//.........这里部分代码省略.........
示例7: getCommentsBlock
function getCommentsBlock()
{
$article =& $this->article;
switch (RSTicketsProHelper::getConfig('kb_comments')) {
//RSComments
case 'com_rscomments':
if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_rscomments' . DS . 'helpers' . DS . 'rscomments.php')) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_rscomments' . DS . 'helpers' . DS . 'rscomments.php';
return '{rscomments option="com_rsticketspro" id="' . $article->id . '"}';
}
break;
//JComments
//JComments
case 'com_jcomments':
if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php')) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
return JComments::showComments($article->id, 'com_rsticketspro', $article->name);
}
break;
//JomComment
//JomComment
case 'com_jomcomment':
if (file_exists(JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php')) {
require_once JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
return jomcomment($article->id, 'com_rsticketspro');
}
break;
// Facebook
// Facebook
case 'facebook':
return '<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><div id="fb-root"></div><fb:comments href="' . RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=article&cid=' . $article->id . ':' . JFilterOutput::stringURLSafe($article->name)) . '" num_posts="5" width="700"></fb:comments>';
break;
}
return '';
}
示例8: displayComments
public function displayComments()
{
include_once JPATH_ROOT . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
echo jomcomment(JRequest::getVar('id'), "com_jomtube");
}
示例9: jomcomment
?>
</tbody></table></td>
<td width="50%" valign="top"><table width="100%"><tbody><?php
echo $v_questions;
?>
</tbody></table></td>
</tr>
</tbody>
</table>
<div id="cw-comments">
<?php
if ($cwConfig[COMMENT_SYSTEM] == "jomcomment") {
$jomcommentbot = JPATH_PLUGINS . DS . 'content' . DS . 'jom_comment_bot.php';
if (file_exists($jomcommentbot)) {
include_once $jomcommentbot;
echo jomcomment($this->crossword->id, $option);
}
} else {
if ($cwConfig[COMMENT_SYSTEM] == "jcomment") {
$app =& JFactory::getApplication();
$comments = $app->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once $comments;
echo JComments::showComments($this->crossword->id, $option, $this->crossword->title);
}
} else {
if ($cwConfig[COMMENT_SYSTEM] == "jacomment") {
if (!JRequest::getInt('print') && file_exists(JPATH_SITE . DS . 'components' . DS . 'com_jacomment' . DS . 'jacomment.php') && file_exists(JPATH_SITE . DS . 'plugins' . DS . 'system' . DS . 'jacomment.php')) {
$_jacCode = "#{jacomment(.*?) contentid=(.*?) option=(.*?) contenttitle=(.*?)}#i";
$_jacCodeDisableid = "#{jacomment(\\s)off.*}#i";
$_jacCodeDisable = "#{jacomment(\\s)off}#i";
示例10: jomcomment
<?php
}
$comments = $this->params->get('show_comments', '0');
if ($comments != 0) {
$jcomments = JPATH_SITE . '/components/com_jcomments/jcomments.php';
$jomcomment = JPATH_SITE . '/plugins/content/jom_comment_bot.php';
$jxcomments = JPATH_SITE . '/components/com_comments/comments.php';
$jacomments1 = JPATH_SITE . '/components/com_jacomment/jacomment.php';
$jacomments2 = JPATH_SITE . '/plugins/system/jacomment.php';
if ($comments == 1 && file_exists($jcomments)) {
require_once $jcomments;
echo JComments::showComments($this->poll->id, 'com_mijopolls', $this->poll->title);
}
if ($comments == 2 && file_exists($jomcomment)) {
require_once $jomcomment;
echo jomcomment($this->poll->id, "com_mijopolls");
}
if ($comments == 3 && file_exists($jxcomments)) {
$url = 'index.php?option=com_mijopolls&view=poll&id=' . (int) $this->poll->id;
$route = $url . ':' . $this->poll->alias . '&Itemid=' . JRequest::getInt('Itemid');
JHTML::addIncludePath(JPATH_SITE . '/components/com_comments/helpers/html');
JHTML::_('comments.comments', 'mijopolls', $this->poll->id, $url, $route, $this->poll->title);
}
if ($comments == 4 && file_exists($jacomments1) && file_exists($jacomments2) && !JRequest::getInt('print')) {
$_jacCode = "#{jacomment(.*?) contentid=(.*?) option=(.*?) contenttitle=(.*?)}#i";
$_jacCodeDisableid = "#{jacomment(\\s)off.*}#i";
$_jacCodeDisable = "#{jacomment(\\s)off}#i";
if (!preg_match($_jacCode, $this->poll->title) && !preg_match($_jacCodeDisable, $this->poll->title) && !preg_match($_jacCodeDisableid, $this->poll->title)) {
echo '{jacomment contentid=' . $this->poll->id . ' option=com_mijopolls contenttitle=' . $this->poll->title . '}';
}
}
示例11: hikashop_config
<?php
$config =& hikashop_config();
if ($config->get('comments_feature') == 'jcomments') {
$comments = HIKASHOP_ROOT . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
if (file_exists($comments)) {
require_once $comments;
if (hikashop_getCID('product_id') != $this->product->product_id && isset($this->product->main->product_name)) {
$product_id = $this->product->main->product_id;
$product_name = $this->product->main->product_name;
} else {
$product_id = $this->product->product_id;
$product_name = $this->product->product_name;
}
echo JComments::showComments($product_id, 'com_hikashop', $product_name);
}
} elseif ($config->get('comments_feature') == 'jomcomment') {
$comments = HIKASHOP_ROOT . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
if (file_exists($comments)) {
require_once $comments;
if (hikashop_getCID('product_id') != $this->product->product_id && isset($this->product->main->product_name)) {
$product_id = $this->product->main->product_id;
} else {
$product_id = $this->product->product_id;
}
echo jomcomment($product_id, 'com_hikashop');
}
}
?>
</div>
</div>
示例12: defined
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with EventList; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
?>
<div class="elcomments">
<?php
switch ($this->elsettings->commentsystem) {
//jcomments integration
case 1:
if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php')) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
echo JComments::showComments($this->row->did, 'com_eventlist', $this->escape($this->row->title));
}
break;
//jomcomment integration
//jomcomment integration
case 2:
if (file_exists(JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php')) {
require_once JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
echo jomcomment($this->row->did, 'com_eventlist');
}
break;
}
?>
</div>
示例13: generateGroupComments
/**
* Generates the 'group comments' system
*
* @param string $row the group sql data
* @return $code
*/
function generateGroupComments($row)
{
global $hwdvsItemid, $smartyvs, $botDisplay;
$c = hwd_vs_Config::get_instance();
$code = null;
if ( $c->showcoms ==1 && $row->allow_comments == 1 )
{
$smartyvs->assign("print_comments", 1);
if ( $c->commssys == 0 )
{
if (!file_exists(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS))
{
$code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JCOMMENTS."</div>";
}
else
{
$comments = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
if (file_exists( $comments ))
{
require_once( $comments );
$comments = JComments::showComments( $row->id, 'com_hwdvideoshare_g', $row->group_name );
$code.= "<div class=\"padding\">".$comments."</div>";
}
}
}
else if ( $c->commssys == 2 )
{
if (!file_exists(JPATH_SITE. DS . 'administrator' . DS . 'components' . DS . 'com_comment' . DS . 'plugin' . DS . 'com_hwdvideoshareGroup' . DS . 'josc_com_hwdvideoshareGroup.php'))
{
$code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JOOMLACOMMENT."</div>";
}
else
{
require_once(JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_comment' . DS . 'plugin' . DS . 'com_hwdvideoshareGroup' . DS . 'josc_com_hwdvideoshareGroup.php');
$code = output($row, '');
}
}
else if ( $c->commssys == 3 )
{
if (!file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php'))
{
$code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JOMCOMMENTS."</div>";
}
else
{
include_once(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php');
$comments = jomcomment( $row->id, 'com_hwdvideoshare_g');
$code.= "<div class=\"padding\">".$comments."</div>";
}
}
else if ( $c->commssys == 8 )
{
if (!file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'kunenadiscuss.php'))
{
$code.= "<div class=\"padding\">Kunena DicsussBot is not installed.</div>";
}
else
{
$db_catid = 5552;
$item = JTable::getInstance('content');
$dispatcher = JDispatcher::getInstance();
$params = new JParameter('');
JPluginHelper::importPlugin('content');
$item->parameters = new JParameter('');
$item->id = $row->id;
$item->state = $row->published;
$item->catid = "$db_catid";
$item->sectionid = null;
$item->title = stripslashes($row->group_name);
$item->text = "{kunena_discuss}";
// Apply content plugins to custom text
$results = $dispatcher->trigger('onPrepareContent', array ($item, $params, 0));
$code.= "<div class=\"padding\">".plgContentKunenaDiscuss::$botDisplay[$row->id]."</div><div style=\"clear:both;\"></div>";
}
}
else if ( $c->commssys == 9 )
{
if (!file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jacomment.php'))
{
$code.= "<div class=\"padding\">JA Comment plugin is not installed.</div>";
}
else
{
$code.= "<div class=\"padding\">{jacomment contentid=".$row->id." option=com_hwdvideoshare_g contenttitle=".stripslashes($row->title)."}</div>";
}
}
}
$smartyvs->assign("comment_code", $code);
return $code;
//.........这里部分代码省略.........
示例14: jomcomment
<?php
if ($this->params->get('comments') && !JRequest::getVar('print')) {
?>
<!-- BOF comments -->
<div class="comments group">
<?php
if ($this->params->get('comments') == 1) {
if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php')) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
echo JComments::showComments($item->id, 'com_flexicontent', $this->escape($item->title));
}
}
if ($this->params->get('comments') == 2) {
if (file_exists(JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php')) {
require_once JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
echo jomcomment($item->id, 'com_flexicontent');
}
}
?>
</div>
<!-- BOF comments -->
<?php
}
?>
<?php
echo '</' . $mainAreaTag . '>';
?>
<?php
}
示例15: jomcomment
?>
<?php
if ($this->params->get('show_jcomments') || $this->params->get('show_jomcomments')) {
?>
<!-- Comments -->
<div class="mdl-card__suportedtext">
<div class="qf_comments">
<?php
if ($this->params->get('show_jcomments')) {
if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php')) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
echo JComments::showComments($this->course->id, 'com_seminarman', $this->escape($this->course->title));
}
}
if ($this->params->get('show_jomcomments')) {
if (file_exists(JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php')) {
require_once JPATH_SITE . DS . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
echo jomcomment($this->course->id, 'com_seminarman');
}
}
?>
</div>
</div>
<!-- End Comments -->
<?php
}
?>
</div>