Ejemplo n.º 1
0
function thesis_custom_box($custom_code = false)
{
    global $thesis_design, $thesis_data;
    $open_box = "\t\t\t\t<div id=\"custom_box\">\n";
    $close_box = "\n\t\t\t\t</div>\n";
    if ($custom_code && $custom_code !== 'php' || !$custom_code && $thesis_design->multimedia_box['code']) {
        $code = $custom_code ? $thesis_data->strip_js($custom_code) : $thesis_design->multimedia_box['code'];
        return $open_box . stripslashes($code) . $close_box;
    } else {
        ob_start();
        thesis_hook_multimedia_box();
        $output = ob_get_clean();
        return $open_box . $output . $close_box;
    }
}
Ejemplo n.º 2
0
/**
 * function thesis_custom_box()
 *
 * Output custom HTML for the multimedia box or execute the
 * actions tied to thesis_hook_multimedia_box, if any.
 *
 * @since 1.0.2
 */
function thesis_custom_box($custom_code = false)
{
    global $thesis_design;
    $open_box = "\t\t\t\t<div id=\"custom_box\">\n";
    $close_box = "\n\t\t\t\t</div>\n";
    if ($custom_code && $custom_code != 'php' || $thesis_design['multimedia_box']['code']) {
        if ($custom_code) {
            return $open_box . stripslashes($custom_code) . $close_box;
        } else {
            return $open_box . stripslashes($thesis_design['multimedia_box']['code']) . $close_box;
        }
    } else {
        ob_start();
        thesis_hook_multimedia_box();
        $output = ob_get_clean();
        return $open_box . $output . $close_box;
    }
}