<?php
/**
* Jetpack Compatibility File
*
* @link https://jetpack.com/
*
* @package Bootscore
*/
/**
* Jetpack setup function.
*
* See: https://jetpack.com/support/infinite-scroll/
* See: https://jetpack.com/support/responsive-videos/
* See: https://jetpack.com/support/content-options/
*/
function bootscore_jetpack_setup() {
// Add theme support for Infinite Scroll.
add_theme_support('infinite-scroll', array(
'container' => 'main',
'render' => 'bootscore_infinite_scroll_render',
'footer' => 'page',
));
// Add theme support for Responsive Videos.
add_theme_support('jetpack-responsive-videos');
// Add theme support for Content Options.
add_theme_support('jetpack-content-options', array(
'post-details' => array(
'stylesheet' => 'bootscore-style',
'date' => '.posted-on',
'categories' => '.cat-links',
'tags' => '.tags-links',
'author' => '.byline',
'comment' => '.comments-link',
),
'featured-images' => array(
'archive' => true,
'post' => true,
'page' => true,
),
));
}
add_action('after_setup_theme', 'bootscore_jetpack_setup');
/**
* Custom render function for Infinite Scroll.
*/
function bootscore_infinite_scroll_render() {
while (have_posts()) {
the_post();
if (is_search()) :
get_template_part('template-parts/content', 'search');
else :
get_template_part('template-parts/content', get_post_type());
endif;
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| blocks/ | 2026-11-26 08:19 | 19.5 KB | 76129f60960:kunden | dxwrx-rx-r | |
| scssphp/ | 2026-11-26 08:19 | 549.31 KB | 76129f60960:kunden | dxwrx-rx-r | |
| update/ | 2026-11-26 08:19 | 380.49 KB | 76129f60960:kunden | dxwrx-rx-r | |
| updater/ | 2026-11-26 08:19 | 25.44 KB | 76129f60960:kunden | dxwrx-rx-r | |
| breadcrumb.php | 2026-11-26 08:19 | 6.2 KB | 76129f60960:kunden | -xw-x--x-- | |
| columns.php | 2026-11-26 08:19 | 703 B | 76129f60960:kunden | -xw-x--x-- | |
| comments.php | 2026-11-26 08:19 | 5.27 KB | 76129f60960:kunden | -xw-x--x-- | |
| deprecated.php | 2026-11-26 08:19 | 132 B | 76129f60960:kunden | -xw-x--x-- | |
| enable-html.php | 2026-11-26 08:19 | 642 B | 76129f60960:kunden | -xw-x--x-- | |
| enqueue.php | 2026-11-26 08:19 | 3.59 KB | 76129f60960:kunden | -xw-x--x-- | |
| excerpt.php | 2026-11-26 08:19 | 200 B | 76129f60960:kunden | -xw-x--x-- | |
| fontawesome.php | 2026-11-26 08:19 | 1.02 KB | 76129f60960:kunden | -xw-x--x-- | |
| jetpack.php | 2026-11-26 08:19 | 1.47 KB | 76129f60960:kunden | -xw-x--x-- | |
| navmenu.php | 2026-11-26 08:19 | 681 B | 76129f60960:kunden | -xw-x--x-- | |
| navwalker.php | 2026-11-26 08:19 | 6.97 KB | 76129f60960:kunden | -xw-x--x-- | |
| pagination.php | 2026-11-26 08:19 | 3.01 KB | 76129f60960:kunden | -xw-x--x-- | |
| password-protected-form.php | 2026-11-26 08:19 | 864 B | 76129f60960:kunden | -xw-x--x-- | |
| scss-compiler.php | 2026-11-26 08:19 | 7.26 KB | 76129f60960:kunden | -xw-x--x-- | |
| template-functions.php | 2026-11-26 08:19 | 1005 B | 76129f60960:kunden | -xw-x--x-- | |
| template-tags.php | 2026-11-26 08:19 | 8.87 KB | 76129f60960:kunden | -xw-x--x-- | |
| theme-setup.php | 2026-11-26 08:19 | 2.71 KB | 76129f60960:kunden | -xw-x--x-- | |
| tinymce-editor.php | 2026-11-26 08:19 | 841 B | 76129f60960:kunden | -xw-x--x-- | |
| widgets.php | 2026-11-26 08:19 | 5.97 KB | 76129f60960:kunden | -xw-x--x-- | |