Esempio n. 1
0
	</div>
	<div class="kcontainer">
		<div class="kbody">
				<table class="kblocktable<?php echo $this->escape($this->category->class_sfx); ?>" id="kflattable">

					<?php if (empty ( $this->topics ) && empty ( $this->subcategories )) : ?>
					<tr class="krow2"><td class="kcol-first"><?php echo JText::_('COM_KUNENA_VIEW_NO_POSTS') ?></td></tr>

					<?php else : ?>
						<?php $this->displayRows (); ?>

					<?php  if ( !empty($this->topicActions) || !empty($this->embedded) ) : ?>
					<!-- Bulk Actions -->
					<tr class="krow1">
						<td colspan="<?php echo empty($this->topicActions) ? 5 : 6 ?>" class="kcol-first krowmoderation">
							<?php if (!empty($this->embedded)) echo CKunenaLink::GetShowLatestLink(JText::_('COM_KUNENA_MORE'), $this->func , 'follow'); ?>
							<?php if (!empty($this->topicActions)) : ?>
							<?php echo JHTML::_('select.genericlist', $this->topicActions, 'task', 'class="inputbox kchecktask" size="1"', 'value', 'text', 0, 'kchecktask'); ?>
							<?php if ($this->actionMove) :
								$options = array (JHTML::_ ( 'select.option', '0', JText::_('COM_KUNENA_BULK_CHOOSE_DESTINATION') ));
								echo JHTML::_('kunenaforum.categorylist', 'target', 0, $options, array(), 'class="inputbox fbs" size="1" disabled="disabled"', 'value', 'text', 0, 'kchecktarget');
								endif;?>
							<input type="submit" name="kcheckgo" class="kbutton" value="<?php echo JText::_('COM_KUNENA_GO') ?>" />
							<?php endif; ?>
						</td>
					</tr>
					<!-- /Bulk Actions -->
					<?php endif; ?>
					<?php endif; ?>
				</table>
		</div>
Esempio n. 2
0
			</td>
		</tr>

		<?php 
    }
}
?>
		<?php 
if ($this->embedded) {
    ?>
		<!-- Bulk Actions -->
		<tr class="krow1">
			<td colspan="7" class="kcol-first krowmoderation">
				<?php 
    $user = $this->userid ? '&userid=' . $this->userid : '';
    echo CKunenaLink::GetShowLatestLink(JText::_('COM_KUNENA_MORE'), $this->func . $user, 'follow');
    ?>
			</td>
		</tr>
		<!-- /Bulk Actions -->
		<?php 
}
?>
</table>
</div>
</div>
</div>
<input type="hidden" name="option" value="com_kunena" />
<input type="hidden" name="func" value="bulkactions" />
<?php 
echo JHTML::_('form.token');
Esempio n. 3
0
/**
 * Function  that get the menu used in the header of our board
 * @param int $cbitemid
 *             Community builder itemid, used for linking to cb profile
 * @param array $fbConfig
 * @param array $fbIcons
 * @param int $my_id
 *             The user id
 * @param int $type
 *             What kind of header do you want to print: 1: default (home/profile/latest posts/faq), 2: extended1 (home/profile/view/pending messages/faq) ,3:extended2 (home/profile/reply/view/pdf/faq)
 * @param string $view
 *             The view the user is currently using, only needs to be pass when type==3 or type==2
 * @param int $catid
 *             Only needs to be passed when type==3 or type==2
 * @param int $id
 *             Only needs to be passed when type==3 or type==2
 * @param int $thread
 *             Only needs to be passed when type==3 or type==2 (well actually just give 0 when type==2)
 * @param boolean $is_moderator
 *             Only needs to be passed when type==2
 * @param int $numPending
 *             Number of pending messages, only needs to be passed when type==2
 * @return String $header
 *             The menu :-)
 */
function KUNENA_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0)
{
    $header = '<div id="fb_topmenu" >';
    $header .= CKunenaLink::GetCategoryListLink('<span>' . (isset($fbIcons['home']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '"  title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES) . '</span>');
    if ($my_id != 0) {
        $header .= CKunenaLink::GetMyProfileLink($fbConfig, $my_id, isset($fbIcons['profile']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['profile'] . '" border="0" alt="' . _GEN_MYPROFILE . '" title="' . _GEN_MYPROFILE . '"/>' : _GEN_MYPROFILE);
    }
    switch ($type) {
        case 3:
            /* DISABLE MENU
                $header.= '<a href="'.JRoute::_(KUNENA_LIVEURLREL.'&amp;func=post&amp;do=reply&amp;replyto='.$thread.'&amp;catid='.$catid).'" >';
                $header.= isset($fbIcons['menureply']) ? '<img src="' . KUNENA_URLICONSPATH.$fbIcons['menureply'].'" border="0" alt="'._GEN_POST_REPLY.'" title="'._GEN_POST_REPLY.'"/>' : _GEN_POST_REPLY;
                $header.= '</a>';
               */
            //Disable threaded view option alltogether for Kunena
            //            if ($view == "flat") {
            //    			$header .= CKunenaLink::GetViewLink('view', $id, $catid, 'threaded', (isset($fbIcons['threadedview']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['threadedview'] . '" border="0" alt="' . _GEN_THREADED_VIEW . '" title="' . _GEN_THREADED_VIEW . '"/>' : _GEN_THREADED_VIEW));
            //            }
            //            else
            //            {
            //                $header .= CKunenaLink::GetViewLink('view', $id, $catid, 'flat', (isset($fbIcons['flatview']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['flatview'] . '" border="0" alt="' . _GEN_FLAT_VIEW . '" title="' . _GEN_FLAT_VIEW . '"/>' : _GEN_FLAT_VIEW));
            //            }
            break;
        case 2:
            //Disable threaded view option alltogether for Kunena
            //            if ($view == "flat")
            //            {
            //    			$header .= CKunenaLink::GetViewLink('showcat', $id, $catid, 'threaded', (isset($fbIcons['threadedview']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['threadedview'] . '" border="0" alt="' . _GEN_THREADED_VIEW . '" title="' . _GEN_THREADED_VIEW . '"/>' : _GEN_THREADED_VIEW));
            //            }
            //			else
            //			{
            //                $header .= CKunenaLink::GetViewLink('showcat', $id, $catid, 'flat', (isset($fbIcons['flatview']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['flatview'] . '" border="0" alt="' . _GEN_FLAT_VIEW . '" title="' . _GEN_FLAT_VIEW . '"/>' : _GEN_FLAT_VIEW));
            //			}
            if ($is_moderator) {
                if ($numPending > 0) {
                    $numcolor = '<font color="red">';
                    $header .= CKunenaLink::GetPendingMessagesLink($catid, isset($fbIcons['pendingmessages']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['pendingmessages'] . '" border="0" alt="' . $numPending . ' ' . _SHOWCAT_PENDING . '" />' : $numcolor . '' . $numPending . '</font> ' . _SHOWCAT_PENDING);
                }
            }
            break;
        case 1:
        default:
            $header .= CKunenaLink::GetShowLatestLink(isset($fbIcons['showlatest']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['showlatest'] . '" border="0" alt="' . _GEN_LATEST_POSTS . '" title="' . _GEN_LATEST_POSTS . '"/>' : _GEN_LATEST_POSTS);
            break;
    }
    if ($fbConfig->enablerulespage) {
        $header .= CKunenaLink::GetRulesLink($fbConfig, isset($fbIcons['rules']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['rules'] . '" border="0" alt="' . _GEN_RULES . '" title="' . _GEN_RULES . '"/>' : _GEN_RULES);
    }
    if ($fbConfig->enablehelppage) {
        $header .= CKunenaLink::GetHelpLink($fbConfig, isset($fbIcons['help']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['help'] . '" border="0" alt="' . _GEN_HELP . '" title="' . _GEN_HELP . '"/>' : _GEN_HELP);
    }
    $header .= '</div>';
    return $header;
}
Esempio n. 4
0
/**
 * Function  that get the menu used in the header of our board
 * @param array $fbConfig
 * @param array $fbIcons
 * @param int $my_id
 *             The user id
 * @param int $type
 *             What kind of header do you want to print: 1: default (home/profile/latest posts/faq), 2: extended1 (home/profile/view/pending messages/faq) ,3:extended2 (home/profile/reply/view/pdf/faq)
 * @param string $view
 *             The view the user is currently using, only needs to be pass when type==3 or type==2
 * @param int $catid
 *             Only needs to be passed when type==3 or type==2
 * @param int $id
 *             Only needs to be passed when type==3 or type==2
 * @param int $thread
 *             Only needs to be passed when type==3 or type==2 (well actually just give 0 when type==2)
 * @param boolean $is_moderator
 *             Only needs to be passed when type==2
 * @param int $numPending
 *             Number of pending messages, only needs to be passed when type==2
 * @return String $header
 *             The menu :-)
 */
function KUNENA_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0)
{
    $func = strtolower(JRequest::getCmd('func', ''));
    if ($func == '') {
        switch ($fbConfig->fbdefaultpage) {
            case 'recent':
                $func = 'latest';
                break;
            case 'my':
                $func = $my_id ? 'mylatest' : 'latest';
                break;
            default:
                $func = 'listcat';
        }
    }
    $header = '<div id="fb_topmenu" ><div id="Kunena_tab"><ul>';
    $header .= ' <li ';
    if ($func == 'latest' || $func == '') {
        $header .= ' class="Kunena_item_active" ';
    }
    $header .= ' >' . CKunenaLink::GetShowLatestLink('<span>' . (array_key_exists('showlatest', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['showlatest'] . '" border="0" alt="' . _KUNENA_ALL_DISCUSSIONS . '" title="' . _KUNENA_ALL_DISCUSSIONS . '"/>' : _KUNENA_ALL_DISCUSSIONS) . '</span>');
    $header .= '</li>';
    if ($my_id != 0) {
        $header .= ' <li ';
        if ($func == 'mylatest') {
            $header .= ' class="Kunena_item_active" ';
        }
        $header .= ' >' . CKunenaLink::GetShowMyLatestLink('<span>' . (array_key_exists('showmylatest', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['showmylatest'] . '" border="0" alt="' . _KUNENA_MY_DISCUSSIONS . '" title="' . _KUNENA_MY_DISCUSSIONS . '"/>' : _KUNENA_MY_DISCUSSIONS) . '</span>');
        $header .= '</li>';
    }
    $header .= '<li ';
    if ($func == 'listcat') {
        $header .= ' class="Kunena_item_active" ';
    }
    $header .= ' >' . CKunenaLink::GetCategoryListLink('<span>' . (array_key_exists('home', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '"  title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES) . '</span>');
    $header .= '</li>';
    if ($my_id != 0) {
        $header .= ' <li ';
        if ($func == 'myprofile') {
            $header .= ' class="Kunena_item_active" ';
        }
        $header .= ' >' . CKunenaLink::GetMyProfileLink($fbConfig, $my_id, '<span>' . (array_key_exists('profile', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['profile'] . '" border="0" alt="' . _GEN_MYPROFILE . '" title="' . _GEN_MYPROFILE . '"/>' : _GEN_MYPROFILE) . '</span>');
        $header .= '</li>';
    }
    switch ($type) {
        case 3:
            //Threaded view option removed from Kunena
            //            if ($view == "flat") {
            //    			$header .= '<li>';
            //    			$header .= CKunenaLink::GetViewLink('view', $id, $catid, 'threaded', '<span>'. _GEN_THREADED_VIEW .'</span>');
            //                $header .= '</li>';
            //            }
            //            else
            //            {
            //    			$header .= '<li>';
            //                $header .= CKunenaLink::GetViewLink('view', $id, $catid, 'flat', '<span>'. _GEN_FLAT_VIEW .'</span>');
            //                $header .= '</li>';
            //            }
            break;
        case 2:
            //Threaded view option removed from Kunena
            //            if ($view == "flat")
            //            {
            //    			$header .= '<li>';
            //    			$header .= CKunenaLink::GetViewLink('showcat', $id, $catid, 'threaded', '<span>'. _GEN_THREADED_VIEW .'</span>');
            //                $header .= '</li>';
            //            }
            //			else
            //			{
            //    			$header .= '<li>';
            //                $header .= CKunenaLink::GetViewLink('showcat', $id, $catid, 'flat', '<span>'. _GEN_FLAT_VIEW .'</span>');
            //                $header .= '</li>';
            //			}
            if ($is_moderator) {
                if ($numPending > 0) {
                    $numcolor = '<font color="red">';
                    $header .= '<li>';
                    $header .= CKunenaLink::GetPendingMessagesLink($catid, '<span>' . (array_key_exists('pendingmessages', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['pendingmessages'] . '" border="0" alt="' . $numPending . ' ' . _SHOWCAT_PENDING . '" />' : $numcolor . '' . $numPending . '</font> ' . _SHOWCAT_PENDING) . '</span>');
                    $header .= '</li>';
                }
            }
            break;
        case 1:
        default:
            break;
    }
    if ($fbConfig->enablerulespage) {
        $header .= ' <li ';
        if ($func == 'rules') {
            $header .= ' class="Kunena_item_active" ';
        }
        $header .= ' >' . CKunenaLink::GetRulesLink($fbConfig, '<span>' . (array_key_exists('rules', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['rules'] . '" border="0" alt="' . _GEN_RULES . '" title="' . _GEN_RULES . '"/>' : _GEN_RULES) . '</span>');
        $header .= '</li>';
    }
    if ($fbConfig->enablehelppage) {
        $header .= ' <li ';
        if ($func == 'faq') {
            $header .= ' class="Kunena_item_active" ';
        }
        $header .= ' >' . CKunenaLink::GetHelpLink($fbConfig, '<span>' . (array_key_exists('help', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['help'] . '" border="0" alt="' . _GEN_HELP . '" title="' . _GEN_HELP . '"/>' : _GEN_HELP) . '</span>');
        $header .= '</li>';
    }
    $header .= '</ul></div></div>';
    return $header;
}
Esempio n. 5
0
        if ($this->params->get('sh_time')) {
            ?>
			<li class="klatest-posttime"><?php 
            $override = $this->params->get('dateformat');
            echo CKunenaTimeformat::showDate($this->params->get('choosemodel') == 'latestposts' ? $item->time : $item->lasttime, $override ? $override : 'config_post_dateformat');
            ?>
</li>
		<?php 
        }
        ?>
	</ul>
</li>
<?php 
    }
    //end foreach
    ?>
</ul>
<?php 
    if ($this->params->get('sh_morelink')) {
        ?>
	<p class="klatest-more"><?php 
        echo CKunenaLink::GetShowLatestLink(JText::_('MOD_KUNENALATEST_MORE_LINK'), $this->latestdo);
        ?>
</p>
<?php 
    }
} else {
    echo JText::_('MOD_KUNENALATEST_OFFLINE');
}
?>
</div>
Esempio n. 6
0
    ?>
				<?php 
    if ($this->params->get('showmyposts')) {
        ?>
					<li class="klogin-mypost"><?php 
        echo CKunenaLink::GetShowMyLatestLink(JText::_('MOD_KUNENALOGIN_MYPOSTS'));
        ?>
</li>
				<?php 
    }
    ?>
				<?php 
    if ($this->params->get('showrecent')) {
        ?>
					<li class="klogin-recent"><?php 
        echo CKunenaLink::GetShowLatestLink(JText::_('MOD_KUNENALOGIN_RECENT'));
        ?>
</li>
				<?php 
    }
    ?>
				</ul>
			</div>
			<input type="hidden" name="option" value="<?php 
    echo $this->logout['option'];
    ?>
" />
			<?php 
    if (!empty($this->logout['view'])) {
        ?>
			<input type="hidden" name="view" value="<?php 
Esempio n. 7
0
					echo '<img src="'.$this->ktemplate->getImagePath('icons/lock_sm.png').'"  alt="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" title="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" />';
				}
			}
			?>
		</li>
		<?php if ($this->params->get ( 'sh_firstcontentcharacter' )) : ?>
			<li class="klatest-preview-content"><?php echo JString::substr(KunenaParser::stripBBCode($item->message), '0', $this->params->get ( 'lengthcontentcharacters' )); ?></li>
		<?php endif; ?>
		<?php if ($this->params->get ( 'sh_category' )) : ?>
			<li class="klatest-cat"><?php echo JText::_ ( 'MOD_KUNENALATEST_IN_CATEGORY' ).' '.CKunenaLink::GetCategoryLink ( 'showcat', $item->catid, $item->catname ); ?></li>
		<?php endif; ?>
		<?php if ($this->params->get ( 'sh_author' )) : ?>
			<li class="klatest-author"><?php echo JText::_ ( 'MOD_KUNENALATEST_LAST_POST_BY' ) .' '. CKunenaLink::GetProfileLink ( $item->userid, $item->name ); ?></li>
		<?php endif; ?>
		<?php if ($this->params->get ( 'sh_time' )) : ?>
			<li class="klatest-posttime"><?php $override = $this->params->get ( 'dateformat' ); echo CKunenaTimeformat::showDate($this->params->get( 'choosemodel' ) == 'latestposts' ? $item->time : $item->lasttime, $override ? $override : 'config_post_dateformat');?></li>
		<?php endif; ?>
	</ul>
</li>
<?php
	} //end foreach
?>
</ul>
<?php if ($this->params->get ( 'sh_morelink' )): ?>
	<p class="klatest-more"><?php echo CKunenaLink::GetShowLatestLink ( JText::_ ( 'MOD_KUNENALATEST_MORE_LINK' ) , $this->latestdo ); ?></p>
<?php endif; ?>
<?php
} else {
	echo JText::_('MOD_KUNENALATEST_OFFLINE');
} ?>
</div>