Last active
June 23, 2019 22:45
-
-
Save Fobiya/28c4d32e98916fe69f4e3ac632bcf024 to your computer and use it in GitHub Desktop.
WP Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// type='text/javascript' none ------------- | |
wp-includes\class.wp-scripts.php | |
$tag = "{$cond_before}{$before_handle}<script type='text/javascript' src='$src'></script>\n{$after_handle}{$cond_after}"; | |
// type='text/javascript' none ------------- | |
// Templates from wordpress ------------- | |
if ( is_page_template('landings/landing-trading.php') ) { | |
// wp_enqueue_style( 'lp__css', get_template_directory_uri() . '/landings/css/2style.min.css', '', filemtime(get_stylesheet_directory() .'/landings/css/2style.min.cs'), 'all' ); | |
wp_enqueue_style( 'lp__fonts', get_template_directory_uri() . '/landings/css/fonts.css', '', filemtime(get_stylesheet_directory() .'/landings/css/fonts.css'), 'all' ); | |
wp_enqueue_style( '2lp__css', get_template_directory_uri() . '/landings/css/style-trading.min.css?v=3', '', filemtime(get_stylesheet_directory() .'/landings/css/style-trading.min.css?v=1.8'), 'all' ); | |
}else if ( is_page_template('landings/LANDING-CRYPTO.php') ) { | |
// wp_enqueue_style( 'lp__css', get_template_directory_uri() . '/landings/css/2style.min.css', '', filemtime(get_stylesheet_directory() .'/landings/css/2style.min.cs'), 'all' ); | |
wp_enqueue_style( 'lp__fonts', get_template_directory_uri() . '/landings/css/fonts.css', '', filemtime(get_stylesheet_directory() .'/landings/css/fonts.css'), 'all' ); | |
wp_enqueue_style( '2lp__css', get_template_directory_uri() . '/landings/css/style.min.css?v=1.8', '', filemtime(get_stylesheet_directory() .'/landings/css/style.min.cs?v=1.8'), 'all' ); | |
}else if ( is_page_template('landings/LANDING-ALLCRYPTO.php') ) { | |
// wp_enqueue_style( 'lp__css', get_template_directory_uri() . '/landings/css/2style.min.css', '', filemtime(get_stylesheet_directory() .'/landings/css/2style.min.cs'), 'all' ); | |
wp_enqueue_style( 'lp__fonts', get_template_directory_uri() . '/landings/css/fonts.css', '', filemtime(get_stylesheet_directory() .'/landings/css/fonts.css'), 'all' ); | |
wp_enqueue_style( '2lp__css', get_template_directory_uri() . '/landings/css/allstyle.min.css?v=1.84', '', filemtime(get_stylesheet_directory() .'/landings/css/allstyle.min.css?v=1.84'), 'all' ); | |
} else { | |
wp_enqueue_script( 'jquery'); | |
wp_enqueue_style( 'main-css', get_template_directory_uri() . '/css/main.min.css', '', filemtime(get_stylesheet_directory() .'/css/main.min.css'), 'all' ); | |
//wp_enqueue_style( 'mamarginelitein-css', get_template_directory_uri() . '/css/marginelite.css', '', filemtime(get_stylesheet_directory() .'/css/marginelite.css'), 'all' ); | |
wp_enqueue_script( 'main-js', get_template_directory_uri() . '/js/main-min.js', '', filemtime(get_stylesheet_directory() .'/js/main-min.js'), true ); | |
} | |
// Templates from wordpress ------------- | |
/** | |
* | |
* Creates custom post type | |
* | |
*/ | |
function create_account() { | |
register_post_type('account', array( | |
'labels' => array( | |
'name' => __( 'Account Types', 'stratton' ), | |
'singular_name' => __( 'Account Type', 'stratton' ), | |
'add_new' => __( 'Add Account Type', 'stratton' ), | |
'add_new_item' => __( 'Add Account Type', 'stratton' ), | |
'edit' => __( 'Edit Account Type', 'stratton' ), | |
'edit_item' => __( 'Edit Account Type', 'stratton' ), | |
'new_item' => __( 'New Account Type', 'stratton' ), | |
'all_items' => __( 'All Account Types', 'stratton' ), | |
'view' => __( 'View Account Type', 'stratton' ), | |
'view_item' => __( 'View Account Type', 'stratton' ), | |
'search_items' => __( 'Search Account Types', 'stratton' ), | |
'not_found' => __( 'Account Types not found', 'stratton' ), | |
), | |
'public' => true, // show in admin panel? | |
'menu_position' => 21, | |
'supports' => array( 'title' ), | |
'taxonomies' => array( '' ), | |
'has_archive' => false, | |
'capability_type' => 'post', | |
'menu_icon' => 'dashicons-groups', | |
'rewrite' => array('slug' => 'account'), | |
)); | |
} | |
add_action( 'init', 'create_account' ); | |
/** | |
* | |
* END Creates custom post type | |
* | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment