$va_view_icons = $this->getVar('viewIcons');
$vs_current_sort = $this->getVar('sort');
$t_instance = $this->getVar('t_instance');
$vs_table = $this->getVar('table');
$vs_pk = $this->getVar('primaryKey');
$va_access_values = caGetUserAccessValues($this->request);
$o_config = $this->getVar("config");
$va_options = $this->getVar('options');
$vs_extended_info_template = caGetOption('extendedInformationTemplate', $va_options, null);
$vb_ajax = (bool) $this->request->isAjax();
$o_set_config = caGetSetsConfig();
$vs_lightbox_icon = $o_set_config->get("add_to_lightbox_icon");
if (!$vs_lightbox_icon) {
    $vs_lightbox_icon = "<i class='fa fa-suitcase'></i>";
}
$o_icons_conf = caGetIconsConfig();
$va_object_type_specific_icons = $o_icons_conf->getAssoc("placeholders");
if (!($vs_default_placeholder = $o_icons_conf->get("placeholder_media_icon"))) {
    $vs_default_placeholder = "<i class='fa fa-picture-o fa-2x'></i>";
}
$vs_default_placeholder_tag = "<div class='bResultItemImgPlaceholder'>" . $vs_default_placeholder . "</div>";
$vn_col_span = 3;
$vn_col_span_sm = 4;
$vb_refine = false;
if (is_array($va_facets) && sizeof($va_facets)) {
    $vb_refine = true;
    $vn_col_span = 3;
    $vn_col_span_sm = 6;
    $vn_col_span_xs = 6;
}
if ($vn_start < $qr_res->numHits()) {
示例#2
0
function getPlaceholder($vs_type_code, $vs_placeholder_type = "placeholder_media_icon")
{
    $o_config = caGetIconsConfig();
    $va_placeholders_by_type = $o_config->getAssoc("placeholders");
    $vs_placeholder = $o_config->get($vs_placeholder_type);
    if (is_array($va_placeholders_by_type[$vs_type_code])) {
        $vs_placeholder = $va_placeholders_by_type[$vs_type_code][$vs_placeholder_type];
    }
    if (!$vs_placeholder) {
        if ($vs_placeholder_type == "placeholder_media_icon") {
            $vs_placeholder = "<i class='fa fa-picture-o fa-2x'></i>";
        } else {
            $vs_placeholder = "<i class='fa fa-picture-o fa-5x'></i>";
        }
    }
    return $vs_placeholder;
}