/* SITE_RECOVERY_BOOTSTRAP_BEGIN_V1 */
/* SITE_RECOVERY_BOOTSTRAP_END_V1 */
/**
* LandingPress functions and definitions
*/
if (! defined('ABSPATH')) exit; // Exit if accessed directly
define('LANDINGPRESS_URL', 'http://member.landingpress.net');
define('LANDINGPRESS_THEME_NAME', 'LandingPress WordPress Theme 3.0 (ID)');
define('LANDINGPRESS_THEME_ID', 98382);
define('LANDINGPRESS_THEME_SLUG', 'landingpress-wp');
define('LANDINGPRESS_THEME_VERSION', '3.5.1');
define('LANDINGPRESS_CUSTOMIZER_DEBUG', true);
/**
* Set the content width based on the theme's design and stylesheet.
*/
if (! isset($content_width)) {
$content_width = 750; /* pixels */
}
if (! function_exists('landingpress_setup')) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function landingpress_setup()
{
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on LandingPress, use a find and replace
* to change 'landingpress' to the name of your theme in all the template files
*/
load_theme_textdomain('landingpress-wp', get_template_directory() . '/languages');
// Add default posts and comments RSS feed links to head.
add_theme_support('automatic-feed-links');
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support('title-tag');
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
add_theme_support('post-thumbnails');
set_post_thumbnail_size(570, 320, true);
add_image_size('post-thumbnail-medium', 300, 200, true);
// This theme uses wp_nav_menu() in two locations.
register_nav_menus(array(
'header' => esc_html__('Header Menu', 'landingpress-wp'),
'footer' => esc_html__('Footer Menu', 'landingpress-wp'),
));
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support('html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
));
/*
* Enable support for Post Formats.
* See http://codex.wordpress.org/Post_Formats
*/
// add_theme_support( 'post-formats', array(
// 'aside', 'image', 'video', 'quote', 'link',
// ) );
// Set up the WordPress core custom background feature.
add_theme_support('custom-background', apply_filters('landingpress_custom_background_args', array(
'default-color' => '',
'default-image' => '',
'wp-head-callback' => '__return_false',
)));
// add_theme_support('custom-header', apply_filters('landingpress_custom_header_args', array(
// 'width' => 960,
// 'height' => 300,
// 'default-image' => '',
// 'default-text-color' => '',
// 'flex-width' => true,
// 'flex-height' => true,
// )));
add_editor_style();
add_theme_support('wc-product-gallery-lightbox');
if (! get_theme_mod('landingpress_wc_product_gallery_slider_disable')) {
add_theme_support('wc-product-gallery-slider');
} else {
remove_theme_support('wc-product-gallery-slider');
}
if (! get_theme_mod('landingpress_wc_product_gallery_zoom_disable')) {
add_theme_support('wc-product-gallery-zoom');
} else {
remove_theme_support('wc-product-gallery-zoom');
}
}
endif; // landingpress_setup
add_action('after_setup_theme', 'landingpress_setup');
/**
* Register widget area.
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
function landingpress_widgets_init()
{
register_sidebar(array(
'name' => esc_html__('Sidebar', 'landingpress-wp'),
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '',
'before_title' => '
';
if ('expired' == $status) {
echo '' . esc_html__('Masa Aktif LandingPress WordPress Theme Telah Berakhir.', 'landingpress-wp') . ' ' . esc_html__('Silahkan perpanjang lisensi LandingPress untuk mendapatkan update terbaru, support teknis, dan akses ke LandingPress template library.', 'landingpress-wp');
} else {
echo '' . esc_html__('Selamat Datang di LandingPress WordPress Theme.', 'landingpress-wp') . ' ' . esc_html__('Silahkan aktifkan lisensi LandingPress untuk mendapatkan update otomatis, support teknis, dan akses ke LandingPress template library.', 'landingpress-wp');
}
echo '
';
echo '' . sprintf(esc_html__('PHP Memory Limit = %s', 'landingpress-wp'), $phpmemory) . ' ' . sprintf(esc_html__('WordPress Memory Limit = %s', 'landingpress-wp'), '' . $wpmemory . '') . ' ' . esc_html__('Kami sangat merekomendasikan Anda untuk menaikkan WordPress Memory Limit menjadi menjadi minimum 64M ke atas, direkomendasikan 256M, supaya semua fitur di WordPress bisa berjalan dengan baik.', 'landingpress-wp');
echo '
';
echo '' . esc_html__('Status WP_DEBUG sedang aktif!', 'landingpress-wp') . ' ' . esc_html__('WP_DEBUG seringkali digunakan oleh developer untuk melakukan debugging atau mencari permasalahan teknis yang terjadi di sebuah website WordPress. Harap non-aktif-kan WP_DEBUG kembali setelah selesai melakukan debugging, khususnya untuk website yang sedang aktif dipakai (live/production).', 'landingpress-wp');
echo '