Esempio n. 1
0
    /**
     * Styles the header image displayed on the Appearance > Header admin panel.
     *
     * @see listify_custom_header_setup().
     */
    function listify_admin_header_style()
    {
        /* Supplimentary CSS */
        wp_enqueue_style('listify-fonts', listify_fonts_url());
        $header_image = get_custom_header();
        ?>
	<style type="text/css">
		.appearance_page_custom-header #headimg {
			border: none;
			background-color: <?php 
        echo listify_theme_mod('colors-header-background');
        ?>
;
			padding: 10px;
			width: auto;
		}

		.appearance_page_custom-header #headimg img {
			margin-right: 10px;
		}

		#headimg h1,
		#desc {
		}

		#headimg h1 {
			margin: 0 0 0 40px;
			font-family:  'Montserrat', sans-serif;
			font-size: 26px;
			font-weight: normal;
			line-height: <?php 
        echo get_custom_header()->height;
        ?>
px
		}

		#headimg h1 a {
			text-decoration: none;
		}

		#desc {
			display: none;
		}

		#headimg img {
			float: left;
		}
	</style>
<?php 
    }
Esempio n. 2
0
/**
 * Scripts and Styles
 *
 * Load Styles and Scripts depending on certain conditions. Not all assets
 * will be loaded on every page.
 *
 * @since Listify 1.0.0
 *
 * @return void
 */
function listify_scripts()
{
    /*
     * Styles
     */
    do_action('listify_output_customizer_css');
    /* Supplimentary CSS */
    wp_enqueue_style('listify-fonts', listify_fonts_url());
    /* Custom CSS */
    wp_enqueue_style('listify', get_template_directory_uri() . '/css/style.min.css');
    wp_style_add_data('listify', 'rtl', 'replace');
    /* Output customizer CSS after theme CSS */
    $listify_customizer_css = new Listify_Customizer_CSS();
    $listify_customizer_css->output();
    /*
     * Scripts
     */
    /* Comments */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    $deps = array('jquery');
    if (listify_has_integration('wp-job-manager-regions') && get_option('job_manager_regions_filter')) {
        $deps[] = 'job-regions';
    }
    wp_enqueue_script('listify', get_template_directory_uri() . '/js/app.min.js', $deps, 20141204, true);
    wp_enqueue_script('salvattore', get_template_directory_uri() . '/js/vendor/salvattore.min.js', array(), '', true);
    wp_localize_script('listify', 'listifySettings', apply_filters('listify_js_settings', array('ajaxurl' => admin_url('admin-ajax.php'), 'homeurl' => home_url('/'), 'archiveurl' => get_post_type_archive_link('job_listing'), 'is_job_manager_archive' => listify_is_job_manager_archive(), 'megamenu' => array('taxonomy' => listify_theme_mod('nav-megamenu')), 'l10n' => array('closed' => __('Closed', 'listify'), 'timeFormat' => get_option('time_format')))));
}
Esempio n. 3
0
/**
 * Scripts and Styles
 *
 * Load Styles and Scripts depending on certain conditions. Not all assets
 * will be loaded on every page.
 *
 * @since Listify 1.0.0
 *
 * @return void
 */
function listify_scripts()
{
    /*
     * Styles
     */
    do_action('listify_output_customizer_css');
    /* Supplimentary CSS */
    wp_enqueue_style('listify-fonts', listify_fonts_url());
    /* Custom CSS */
    wp_enqueue_style('listify', get_template_directory_uri() . '/css/style.min.css');
    wp_style_add_data('listify', 'rtl', 'replace');
    /* Output customizer CSS after theme CSS */
    $listify_customizer_css = new Listify_Customizer_CSS();
    $listify_customizer_css->output();
    /*
     * Scripts
     */
    /* Comments */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    wp_enqueue_script('listify', get_template_directory_uri() . '/js/app.min.js', array('jquery'), 20141204, true);
    wp_localize_script('listify', 'listifySettings', array('ajaxurl' => admin_url('admin-ajax.php'), 'homeurl' => home_url('/'), 'archiveurl' => get_post_type_archive_link('job_listing'), 'is_job_manager_archive' => listify_is_job_manager_archive(), 'l10n' => array('closed' => __('Closed', 'listify'))));
}