186 lines
5.1 KiB
PHP
186 lines
5.1 KiB
PHP
<?php
|
|
/**
|
|
* Where old functions retire.
|
|
*
|
|
* @package GeneratePress
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
// Deprecated constants
|
|
define( 'GENERATE_URI', get_template_directory_uri() );
|
|
define( 'GENERATE_DIR', get_template_directory() );
|
|
|
|
if ( ! function_exists( 'generate_paging_nav' ) ) {
|
|
/**
|
|
* Build the pagination links
|
|
* @since 1.3.35
|
|
* @deprecated 1.3.45
|
|
*/
|
|
function generate_paging_nav() {
|
|
_deprecated_function( __FUNCTION__, '1.3.45', 'the_posts_navigation()' );
|
|
if ( function_exists( 'the_posts_pagination' ) ) {
|
|
the_posts_pagination( array(
|
|
'mid_size' => apply_filters( 'generate_pagination_mid_size', 1 ),
|
|
'prev_text' => __( '← Previous', 'generatepress' ),
|
|
'next_text' => __( 'Next →', 'generatepress' )
|
|
) );
|
|
}
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_additional_spacing' ) ) {
|
|
/**
|
|
* Add fallback CSS for our mobile search icon color
|
|
* @deprecated 1.3.47
|
|
*/
|
|
function generate_additional_spacing() {
|
|
// No longer needed
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_mobile_search_spacing_fallback_css' ) ) {
|
|
/**
|
|
* Enqueue our mobile search icon color fallback CSS
|
|
* @deprecated 1.3.47
|
|
*/
|
|
function generate_mobile_search_spacing_fallback_css() {
|
|
// No longer needed
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_addons_available' ) ) {
|
|
/**
|
|
* Check to see if there's any addons not already activated
|
|
* @since 1.0.9
|
|
* @deprecated 1.3.47
|
|
*/
|
|
function generate_addons_available() {
|
|
if ( defined( 'GP_PREMIUM_VERSION' ) ) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_no_addons' ) ) {
|
|
/**
|
|
* Check to see if no addons are activated
|
|
* @since 1.0.9
|
|
* @deprecated 1.3.47
|
|
*/
|
|
function generate_no_addons() {
|
|
if ( defined( 'GP_PREMIUM_VERSION' ) ) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_get_min_suffix' ) ) {
|
|
/**
|
|
* Figure out if we should use minified scripts or not
|
|
* @since 1.3.29
|
|
* @deprecated 2.0
|
|
*/
|
|
function generate_get_min_suffix() {
|
|
return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_add_layout_meta_box' ) ) {
|
|
function generate_add_layout_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_show_layout_meta_box' ) ) {
|
|
function generate_show_layout_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_save_layout_meta' ) ) {
|
|
function generate_save_layout_meta() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_add_footer_widget_meta_box' ) ) {
|
|
function generate_add_footer_widget_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_show_footer_widget_meta_box' ) ) {
|
|
function generate_show_footer_widget_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_save_footer_widget_meta' ) ) {
|
|
function generate_save_footer_widget_meta() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_add_page_builder_meta_box' ) ) {
|
|
function generate_add_page_builder_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_show_page_builder_meta_box' ) ) {
|
|
function generate_show_page_builder_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_save_page_builder_meta' ) ) {
|
|
function generate_save_page_builder_meta() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_add_de_meta_box' ) ) {
|
|
function generate_add_de_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_show_de_meta_box' ) ) {
|
|
function generate_show_de_meta_box() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_save_de_meta' ) ) {
|
|
function generate_save_de_meta() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_add_base_inline_css' ) ) {
|
|
function generate_add_base_inline_css() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_color_scripts' ) ) {
|
|
function generate_color_scripts() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_typography_scripts' ) ) {
|
|
function generate_typography_scripts() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' );
|
|
}
|
|
}
|
|
|
|
if ( ! function_exists( 'generate_spacing_scripts' ) ) {
|
|
function generate_spacing_scripts() {
|
|
_deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' );
|
|
}
|
|
}
|