Ejemplo n.º 1
0
/**
 * Adjust the content_width value based on layout option and current template.
 *
 * @since Coraline 1.0.2
 * @param int content_width value
 */
function coraline_set_full_content_width()
{
    global $content_width;
    $content_width = 770;
    // Override for 3-column layouts
    $layout = coraline_current_layout();
    if (strstr($layout, 'three-column')) {
        $content_width = 990;
    }
}
Ejemplo n.º 2
0
/**
 *  Adds coraline_current_layout() to the array of body classes
 *
 * @since Coraline 1.0
 */
function coraline_body_class($classes)
{
    $classes[] = coraline_current_layout();
    return $classes;
}
Ejemplo n.º 3
0
/**
 * Adjust the content_width value based on layout option and current template.
 *
 * @since Coraline 1.0.2
 */
function coraline_set_full_content_width()
{
    global $content_width;
    if (is_attachment() || is_page_template('full-width-page.php')) {
        $content_width = 770;
        // Override for 3-column layouts
        $layout = coraline_current_layout();
        if (strstr($layout, 'three-column')) {
            $content_width = 990;
        }
    }
}