示例#1
0
    $menu = $app->getMenu();
    $lang = JFactory::getLanguage();
    ?>

            <?php 
    if ($menu->getActive() == $menu->getDefault($lang->getTag()) && !isset($_POST["text-search"])) {
        ?>
                texts.push('<?php 
        echo addslashes(ideary::removeNewLinesFromString(ideary::generateMoreApplaudedTextsBox()));
        ?>
');
				<?php 
        if (JFactory::getUser()->get('id') > 0 && ideary::getUserImpact($user->id) > 10) {
            ?>
				texts.push('<?php 
            echo addslashes(ideary::removeNewLinesFromString(ideary::generateMyStatsBox()));
            ?>
');
				<?php 
        }
        ?>
            <?php 
    }
    ?>

			<?php 
    $followers = ideary::getUsersWhoIAmFollowingId($userId);
    ?>
			
            <?php 
    foreach ($texts as $index => $text) {