1) && is_front_page() && of_get_option( 'ample_activate_slider', '0' ) == '1' ) { wp_enqueue_script( 'ample-slider', get_template_directory_uri() . '/js/slider-setting.js', array( 'ample-bxslider' ), false, true ); } wp_enqueue_script( 'ample-custom', get_template_directory_uri() . '/js/theme-custom.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'ample-parallax', get_template_directory_uri() . '/js/parallax.min.js', array( 'jquery' ), false, true ); } // add admin scripts for image uploader add_action('admin_enqueue_scripts', 'ample_image_uploader'); function ample_image_uploader() { wp_enqueue_media(); wp_enqueue_script('ample_script', get_template_directory_uri() . '/js/image-uploader.js', false, '1.0', true); } // For Color Picker add_action( 'load-widgets.php', 'ample_custom_load' ); function ample_custom_load() { wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_script('color_picker', get_template_directory_uri() . '/js/color-picker.js', false); } add_action( 'ample_footer_copyright', 'ample_footer_copyright', 10 ); /** * function to show the footer info, copyright information */ if ( ! function_exists( 'ample_footer_copyright' ) ) : function ample_footer_copyright() { $site_link = '' . get_bloginfo( 'name', 'display' ) . ''; $wp_link = '' . __( 'WordPress', 'ample' ) . ''; $tg_link = ''.__( 'ThemeGrill', 'ample') .''; $default_footer_value = sprintf( __( 'Copyright © %1$s %2$s.', 'ample' ), date( 'Y' ), $site_link ).' '.sprintf( __( 'Powered by %s.', 'ample' ), $wp_link ).' '.sprintf( __( 'Theme: %1$s by %2$s.', 'ample' ), 'Ample', $tg_link ); $ample_footer_copyright = '
', '' ); ?>