';
return $html;
}
function cfct_header_image_form() {
global $wpdb;
$images = $wpdb->get_results("
SELECT * FROM $wpdb->posts
WHERE post_type = 'attachment'
AND post_mime_type LIKE 'image%'
AND post_parent = 0
ORDER BY post_date_gmt DESC
LIMIT 50
");
$upload_url = trailingslashit(get_bloginfo('wpurl')).'wp-admin/media-new.php';
$checked_attr = ' checked="checked"';
$output = '
';
}
if (is_admin()) {
wp_enqueue_script('jquery-colorpicker', get_bloginfo('template_directory').'/carrington-core/js/colorpicker.js', array('jquery'), '1.0');
// removing until we drop 2.5 compatibility
// wp_enqueue_style('jquery-colorpicker', get_bloginfo('template_directory').'/carrington-core/css/colorpicker.css');
}
function cfct_admin_head() {
// see enqueued style above, we'll activate that in the future
if ($_GET['page'] == 'carrington-settings') {
echo '
';
cfct_admin_css();
}
// cfct_admin_js();
}
add_action('admin_head', 'cfct_admin_head');
function cfct_admin_css() {
?>