__( 'Sidebar', 'scripted' ),
'id' => 'sidebar',
'description' => __( 'Widgets placed here will display in the bottom of the page when user click top right icon in header', 'scripted' ),
'before_widget' => '',
'before_title' => '
',
));
}
/* ----------------------------------------------------------------
5. ENQUEUE SCRIPTS
-----------------------------------------------------------------*/
if ( !function_exists( 'scripted_enqueue_scripts' ) ) {
function scripted_enqueue_scripts() {
/* Register */
wp_register_script( 'modernizr', get_template_directory_uri() . '/js/modernizr.custom.js', '2.6.2' );
wp_register_script( 'classie', get_template_directory_uri() . '/js/classie.js', '1.0.1', TRUE );
wp_register_script( 'flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', 'jquery', '2.2.0' );
wp_register_script( 'slicknav', get_template_directory_uri() . '/js/jquery.slicknav.min.js', 'jquery', '4.4' );
wp_register_script( 'scripted-custom', get_template_directory_uri() . '/js/jquery.custom.js', 'jquery', '1.0', TRUE );
/* Enqueue */
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'modernizr' );
wp_enqueue_script( 'classie' );
wp_enqueue_script( 'flexslider' );
wp_enqueue_script( 'slicknav' );
wp_enqueue_script( 'scripted-custom' );
if ( is_singular( 'post' ) ) {
wp_enqueue_script( 'comment-reply' );
}
/* SSL */
$protocol = is_ssl() ? 'https' : 'http';
wp_enqueue_style( 'scripted-googlefont-gentium', $protocol . '://fonts.googleapis.com/css?family=Gentium+Basic:700,400italic,400' );
wp_enqueue_style( 'scripted-style', get_stylesheet_uri(), FALSE, '1.0' );
wp_enqueue_style('font-awesome', get_template_directory_uri() . '/includes/font-awesome/css/font-awesome.css',array(), '4.6.1');
//wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', FALSE, '4.5.1' );
wp_enqueue_style( 'slicknav', get_template_directory_uri() . '/css/slicknav.css', FALSE, '4.4' );
wp_enqueue_style( 'scripted-responsive', get_template_directory_uri() . '/css/responsive.css', FALSE, '1.0' );
}
}
add_action( 'wp_enqueue_scripts', 'scripted_enqueue_scripts' );
/* Enqueue Admin Scripts */
if ( !function_exists( 'scripted_enqueue_admin_scripts' ) ) {
function scripted_enqueue_admin_scripts( $hook ) {
if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
wp_register_script( 'scripted-admin-script', get_template_directory_uri() . '/includes/js/jquery.custom.admin.js', 'jquery' );
wp_enqueue_script( 'scripted-admin-script' );
}
}
}
add_action( 'admin_enqueue_scripts', 'scripted_enqueue_admin_scripts' );
/* ----------------------------------------------------------------
7. COMMENTS
-----------------------------------------------------------------*/
if ( !function_exists( 'scripted_comment' ) ) {
function scripted_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment; ?>
id="comment-">
$post_id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) );
if ( $images ) :
foreach ( $images as $attachment_id => $image ) :
$img_alt = get_post_meta( $attachment_id, '_wp_attachment_image_alt', true );
if ( $img_alt == '' ) : $img_alt = $image->post_title;
endif;
$array = image_downsize( $image->ID, 'scripted_l' );
$img_url = $array[0];
?>
post_parent ) : get_adjacent_post( false, '', true );
$next = get_adjacent_post( false, '', false );
if ( ! $next && ! $previous ) {
return;
}
?>
%link', _x( '← Previous Post %title', 'Previous post link', 'scripted' ) );
next_post_link( '%link
', _x( 'Next Post → %title', 'Next post link', 'scripted' ) );
?>
*/
function scripted_theme_customize_css()
{
get_template_part('includes/customizecss');
}
add_action( 'wp_head', 'scripted_theme_customize_css');
$depth, 'max_depth' => $args['max_depth'] ) ) ) ?>