WordPress.org

Make WordPress Themes


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • read-more/1.2.0/acmethemes/core.php

    r71690 r79412  
    1313         * Make theme available for translation. 
    1414         * Translations can be filed in the /languages/ directory. 
    15          * If you're building a theme based on Education Base, use a find and replace 
     15         * If you're building a theme based on Read More, use a find and replace 
    1616         * to change 'read-more' to the name of your theme in all the template files. 
    1717         */ 
     
    106106 
    107107    /*Font-Awesome-master*/ 
    108     wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/assets/library/Font-Awesome/css/font-awesome.min.css', array(), '4.5.0' ); 
     108    wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/assets/library/Font-Awesome/css/font-awesome.min.css', array(), '4.5.0' ); 
    109109 
    110110    wp_enqueue_style( 'read-more-style', get_stylesheet_uri(),'','1.0.44' ); 
     
    133133    /*theme custom js*/ 
    134134    wp_enqueue_script('read-more-custom', get_template_directory_uri() . '/assets/js/read-more-custom.js', array('jquery'), '0.0.2', 1); 
     135    global $wp_query; 
     136    $paged = ( get_query_var( 'paged' ) > 1 ) ? get_query_var( 'paged' ) : 1; 
     137    $max_num_pages = $wp_query->max_num_pages; 
     138    $read_more_ajax_show_more = $read_more_customizer_all_values['read-more-ajax-show-more']; 
     139    $read_more_ajax_no_more = $read_more_customizer_all_values['read-more-ajax-no-more']; 
     140    $read_more_pagination_option = $read_more_customizer_all_values['read-more-pagination-option']; 
     141    wp_localize_script( 'read-more-custom', 'read_more_ajax', array( 
     142        'ajaxurl'        => admin_url( 'admin-ajax.php' ), 
     143        'paged'          => $paged, 
     144        'max_num_pages'  => $max_num_pages, 
     145        'next_posts'     => next_posts( $max_num_pages, false ), 
     146        'show_more'      => $read_more_ajax_show_more, 
     147        'no_more_posts'  => $read_more_ajax_no_more, 
     148        'pagination_option'  => $read_more_pagination_option 
     149    )); 
    135150 
    136151    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 
Note: See TracChangeset for help on using the changeset viewer.