Beispiel #1
0
function minileven_header_text_display()
{
    $theme_slug = minileven_actual_current_theme();
    $mods = get_option("theme_mods_{$theme_slug}");
    if (isset($mods['header_textcolor'])) {
        return $mods['header_textcolor'];
    }
    return false;
}
function minileven_get_background()
{
    $theme_slug = minileven_actual_current_theme();
    $mods = get_option("theme_mods_{$theme_slug}");
    if (!empty($mods)) {
        return array('color' => isset($mods['background_color']) ? $mods['background_color'] : null, 'image' => isset($mods['background_image']) ? $mods['background_image'] : null, 'repeat' => isset($mods['background_repeat']) ? $mods['background_repeat'] : null, 'position' => isset($mods['background_position_x']) ? $mods['background_position_x'] : null, 'attachment' => isset($mods['attachment']) ? $mods['attachment'] : null);
    }
    return false;
}