예제 #1
0
파일: tags.php 프로젝트: Andreyjktl/Cotonti
    } else {
        // Search results
        cot_tag_search_pages($qs);
    }
} elseif ($a == 'forums' && cot_module_active('forums')) {
    if (empty($qs)) {
        // Form and cloud
        cot_tag_search_form('forums');
    } else {
        // Search results
        cot_tag_search_forums($qs);
    }
} elseif ($a == 'all') {
    if (empty($qs)) {
        // Form and cloud
        cot_tag_search_form('all');
    } else {
        // Search results
        foreach ($tag_areas as $area) {
            $tag_search_callback = 'cot_tag_search_' . $area;
            if (function_exists($tag_search_callback)) {
                $tag_search_callback($qs);
            }
        }
    }
} else {
    /* == Hook for the plugins == */
    foreach (cot_getextplugins('tags.search.custom') as $pl) {
        include $pl;
    }
    /* ===== */
 * @license BSD
 *  */
defined('COT_CODE') or die('Wrong URL.');
require_once cot_incfile('tagslance', 'plug');
if ($a == 'folio' && cot_module_active('folio')) {
    if (empty($qs)) {
        // Form and cloud
        cot_tag_search_form('folio');
    } else {
        // Search results
        cot_tag_search_folio($qs);
    }
}
if ($a == 'market' && cot_module_active('market')) {
    if (empty($qs)) {
        // Form and cloud
        cot_tag_search_form('market');
    } else {
        // Search results
        cot_tag_search_market($qs);
    }
}
if ($a == 'projects' && cot_module_active('projects')) {
    if (empty($qs)) {
        // Form and cloud
        cot_tag_search_form('projects');
    } else {
        // Search results
        cot_tag_search_projects($qs);
    }
}