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 = ''; echo $ample_footer_copyright; } endif; add_action( 'pre_get_posts', 'exclude_category' ); /** * Fucntion to exclude category */ function exclude_category( $query ) { if( of_get_option('ample_hide_category_activate', '0') == 1 ) { $cat_num = of_get_option('ample_hide_category', ''); if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', -$cat_num ); } } } add_action('wp_head', 'ample_custom_css'); /** * Hooks the Custom Internal CSS to head section */ function ample_custom_css() { $ample_custom_css = of_get_option( 'ample_custom_css', '' ); if( !empty( $ample_custom_css ) ) { ?>
comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s%2$s', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'ample' ) . '' : '' ); printf( '
    %1$s
    ', sprintf( __( '%1$s at %2$s', 'ample' ), get_comment_date(), get_comment_time() ) ); printf( 'Permalink', esc_url( get_comment_link( $comment->comment_ID ) ) ); edit_comment_link(); ?>
    comment_approved ) : ?>

    __( 'Reply', 'ample' ), 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>