| @@ 22-51 (lines=30) @@ | ||
| 19 | /** |
|
| 20 | * ALNP_Storefront class. |
|
| 21 | */ |
|
| 22 | class ALNP_Storefront { |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Initlize Theme. |
|
| 26 | * |
|
| 27 | * @access public |
|
| 28 | * @static |
|
| 29 | */ |
|
| 30 | public static function init() { |
|
| 31 | // Add theme support and preset the theme selectors. |
|
| 32 | add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
| 33 | } // END init() |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Add theme support by providing the theme selectors |
|
| 37 | * to be applied once the theme is activated. |
|
| 38 | * |
|
| 39 | * @access public |
|
| 40 | * @static |
|
| 41 | */ |
|
| 42 | public static function add_theme_support() { |
|
| 43 | add_theme_support( 'auto-load-next-post', array( |
|
| 44 | 'content_container' => 'main.site-main', |
|
| 45 | 'title_selector' => 'h1.entry-title', |
|
| 46 | 'navigation_container' => 'nav.post-navigation', |
|
| 47 | 'comments_container' => 'section#comments', |
|
| 48 | ) ); |
|
| 49 | } // END add_theme_support() |
|
| 50 | ||
| 51 | } // END class |
|
| 52 | ||
| 53 | ALNP_Storefront::init(); |
|
| 54 | ||
| @@ 22-51 (lines=30) @@ | ||
| 19 | /** |
|
| 20 | * ALNP_Twenty_Fifteen class. |
|
| 21 | */ |
|
| 22 | class ALNP_Twenty_Fifteen { |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Initlize Theme. |
|
| 26 | * |
|
| 27 | * @access public |
|
| 28 | * @static |
|
| 29 | */ |
|
| 30 | public static function init() { |
|
| 31 | // Add theme support and preset the theme selectors. |
|
| 32 | add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
| 33 | } // END init() |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Add theme support by providing the theme selectors |
|
| 37 | * to be applied once the theme is activated. |
|
| 38 | * |
|
| 39 | * @access public |
|
| 40 | * @static |
|
| 41 | */ |
|
| 42 | public static function add_theme_support() { |
|
| 43 | add_theme_support( 'auto-load-next-post', array( |
|
| 44 | 'content_container' => 'main.site-main', |
|
| 45 | 'title_selector' => 'h1.entry-title', |
|
| 46 | 'navigation_container' => 'nav.post-navigation', |
|
| 47 | 'comments_container' => 'section#comments', |
|
| 48 | ) ); |
|
| 49 | } // END add_theme_support() |
|
| 50 | ||
| 51 | } // END class |
|
| 52 | ||
| 53 | ALNP_Twenty_Fifteen::init(); |
|
| 54 | ||
| @@ 22-51 (lines=30) @@ | ||
| 19 | /** |
|
| 20 | * ALNP_Twenty_Fourteen class. |
|
| 21 | */ |
|
| 22 | class ALNP_Twenty_Fourteen { |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Initlize Theme. |
|
| 26 | * |
|
| 27 | * @access public |
|
| 28 | * @static |
|
| 29 | */ |
|
| 30 | public static function init() { |
|
| 31 | // Add theme support and preset the theme selectors. |
|
| 32 | add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
| 33 | } // END init() |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Add theme support by providing the theme selectors |
|
| 37 | * to be applied once the theme is activated. |
|
| 38 | * |
|
| 39 | * @access public |
|
| 40 | * @static |
|
| 41 | */ |
|
| 42 | public static function add_theme_support() { |
|
| 43 | add_theme_support( 'auto-load-next-post', array( |
|
| 44 | 'content_container' => '.site-content', |
|
| 45 | 'title_selector' => 'h1.entry-title', |
|
| 46 | 'navigation_container' => 'nav.post-navigation', |
|
| 47 | 'comments_container' => 'div#comments', |
|
| 48 | ) ); |
|
| 49 | } // END add_theme_support() |
|
| 50 | ||
| 51 | } // END class |
|
| 52 | ||
| 53 | ALNP_Twenty_Fourteen::init(); |
|
| 54 | ||
| @@ 22-51 (lines=30) @@ | ||
| 19 | /** |
|
| 20 | * ALNP_Twenty_Seventeen class. |
|
| 21 | */ |
|
| 22 | class ALNP_Twenty_Seventeen { |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Initlize Theme. |
|
| 26 | * |
|
| 27 | * @access public |
|
| 28 | * @static |
|
| 29 | */ |
|
| 30 | public static function init() { |
|
| 31 | // Add theme support and preset the theme selectors. |
|
| 32 | add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
| 33 | } // END init() |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Add theme support by providing the theme selectors |
|
| 37 | * to be applied once the theme is activated. |
|
| 38 | * |
|
| 39 | * @access public |
|
| 40 | * @static |
|
| 41 | */ |
|
| 42 | public static function add_theme_support() { |
|
| 43 | add_theme_support( 'auto-load-next-post', array( |
|
| 44 | 'content_container' => 'main.site-main', |
|
| 45 | 'title_selector' => 'h1.entry-title', |
|
| 46 | 'navigation_container' => 'nav.post-navigation', |
|
| 47 | 'comments_container' => 'section#comments', |
|
| 48 | ) ); |
|
| 49 | } // END add_theme_support() |
|
| 50 | ||
| 51 | } // END class |
|
| 52 | ||
| 53 | ALNP_Twenty_Seventeen::init(); |
|
| 54 | ||
| @@ 22-51 (lines=30) @@ | ||
| 19 | /** |
|
| 20 | * ALNP_Twenty_Sixteen class. |
|
| 21 | */ |
|
| 22 | class ALNP_Twenty_Sixteen { |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Initlize Theme. |
|
| 26 | * |
|
| 27 | * @access public |
|
| 28 | * @static |
|
| 29 | */ |
|
| 30 | public static function init() { |
|
| 31 | // Add theme support and preset the theme selectors. |
|
| 32 | add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
| 33 | } // END init() |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Add theme support by providing the theme selectors |
|
| 37 | * to be applied once the theme is activated. |
|
| 38 | * |
|
| 39 | * @access public |
|
| 40 | * @static |
|
| 41 | */ |
|
| 42 | public static function add_theme_support() { |
|
| 43 | add_theme_support( 'auto-load-next-post', array( |
|
| 44 | 'content_container' => 'main.site-main', |
|
| 45 | 'title_selector' => 'h1.entry-title', |
|
| 46 | 'navigation_container' => 'nav.post-navigation', |
|
| 47 | 'comments_container' => 'section#comments', |
|
| 48 | ) ); |
|
| 49 | } // END add_theme_support() |
|
| 50 | ||
| 51 | } // END class |
|
| 52 | ||
| 53 | ALNP_Twenty_Sixteen::init(); |
|
| 54 | ||