0){$ext = '|';} else {$ext = '';} $j++; $font_face = $ext.$font_face.':r,b,i'; $font_face_all = $font_face_all.$font_face; } } } if($font_face_all){ wp_enqueue_style('googlefont', "//fonts.googleapis.com/css?family=".$font_face_all); } // FontAwesome wp_enqueue_style( 'fontawesomecss', EVOLVEJS . '/fontawesome/css/font-awesome.css' ); // Main Stylesheet function evolve_styles() { global $wp_customize; wp_enqueue_style('maincss', get_stylesheet_uri(), false); if ( method_exists($wp_customize,'is_preview') and ! is_admin() ){ // Custom CSS for Customizer require_once( get_template_directory() . '/custom-css.php' ); wp_add_inline_style( 'maincss', $evolve_css_data ); } else { // Custom CSS for Live website wp_enqueue_style( 'dynamic-css', admin_url('admin-ajax.php').'?action=evolve_dynamic_css'); } } add_action( 'wp_enqueue_scripts', 'evolve_styles' ); // Bootstrap Elements wp_enqueue_script( 'bootstrap', EVOLVEJS . '/bootstrap/js/bootstrap.js' ); wp_enqueue_style( 'bootstrapcss', EVOLVEJS . '/bootstrap/css/bootstrap.css', array('maincss') ); wp_enqueue_style( 'bootstrapcsstheme', EVOLVEJS . '/bootstrap/css/bootstrap-theme.css', array('bootstrapcss') ); } /** * evolve_menu - adds css class to the
{$file} does not seem to exist. Please make sure this file exist in " . get_stylesheet_directory() . "\n";
$error = apply_filters( 'evolve_get_error', (string) $error ); // Available filter: evolve_get_error
if ( isset( $file ) && file_exists( get_stylesheet_directory() . "/{$file}.php" ) )
locate_template( get_stylesheet_directory() . "/{$file}.php" );
else
echo $error;
}
/**
* evolve_include_all() A function to include all files from a directory path
*
* @since 0.2.3
* @credits k2
*/
function evolve_include_all( $path, $ignore = false ) {
/* Open the directory */
$dir = @dir( $path ) or die( 'Could not open required directory ' . $path );
/* Get all the files from the directory */
while ( ( $file = $dir->read() ) !== false ) {
/* Check the file is a file, and is a PHP file */
if ( is_file( $path . $file ) and ( !$ignore or !in_array( $file, $ignore ) ) and preg_match( '/\.php$/i', $file ) ) {
require_once( $path . $file );
}
}
$dir->close(); // Close the directory, we're done.
}
/**
* Gets the profile URI for the document being displayed.
* @link http://microformats.org/wiki/profile-uris Profile URIs
*
* @since 0.2.4
* @param integer $echo 0|1
* @return string profile uris seperatd by spaces
**/
function evolve_get_profile_uri( $echo = 1 ) {
// hAtom profile
$profile[] = 'http://purl.org/uF/hAtom/0.1/';
// hCard, hCalendar, rel-tag, rel-license, rel-nofollow, VoteLinks, XFN, XOXO profile
$profile[] = 'http://purl.org/uF/2008/03/';
$profile = join( ' ', apply_filters( 'profile_uri', $profile ) ); // Available filter: profile_uri
if ( $echo ) echo $profile;
else return $profile;
}
add_action( 'customize_controls_enqueue_scripts', 'my_add_scripts' );
function my_add_scripts() {
wp_enqueue_media();
wp_enqueue_script('evolve-media-manager',EVOLVE_DIRECTORY.'js/evolve-media-manager.js', array( ), '1.0', true);
}
add_action( 'customize_controls_print_styles', 'my_customize_styles', 50);
function my_customize_styles() { ?>