element * The function determines the itemtype: generate_article_schema( 'BlogPosting' ) * * @since 1.3.15 * @param string $type The type of schema. */ function generate_article_schema( $type = 'CreativeWork' ) { // Get the itemtype. $itemtype = esc_html( apply_filters( 'generate_article_itemtype', $type ) ); // Print the results. echo "itemtype='https://schema.org/$itemtype' itemscope='itemscope'"; // phpcs:ignore } } /** * Process database updates if necessary. * There's nothing in here yet, but we're setting the version to use later. * * @since 2.1 * @deprecated 3.0.0 */ function generate_do_admin_db_updates() { // Replaced by Generate_Theme_Update(). } /** * Process important database updates when someone visits the front or backend. * * @since 2.3 * @deprecated 3.0.0 */ function generate_do_db_updates() { // Replaced by Generate_Theme_Update(). } if ( ! function_exists( 'generate_update_logo_setting' ) ) { /** * Migrate the old logo database entry to the new custom_logo theme mod (WordPress 4.5) * * @since 1.3.29 * @deprecated 3.0.0 */ function generate_update_logo_setting() { // Replaced by Generate_Theme_Update(). } } if ( ! function_exists( 'generate_typography_convert_values' ) ) { /** * Take the old body font value and strip it of variants * This should only run once * * @since 1.3.0 * @deprecated 3.0.0 */ function generate_typography_convert_values() { // Replaced by Generate_Theme_Update(). } } /** * Execute functions after existing sites update. * * We check to see if options already exist. If they do, we can assume the user has * updated the theme, and not installed it from scratch. * * We run this right away in the Dashboard to avoid other migration functions from * setting options and causing these functions to run on fresh installs. * * @since 2.0 * @deprecated 3.0.0 */ function generate_migrate_existing_settings() { // Replaced by Generate_Theme_Update(). } /** * Output CSS for the icon fonts. * * @since 2.3 * @deprecated 3.0.0 */ function generate_do_icon_css() { $output = false; if ( 'font' === generate_get_option( 'icons' ) ) { $url = trailingslashit( get_template_directory_uri() ); if ( defined( 'GENERATE_MENU_PLUS_VERSION' ) ) { $output .= '.main-navigation .slideout-toggle a:before, .slide-opened .slideout-overlay .slideout-exit:before { font-family: GeneratePress; } .slideout-navigation .dropdown-menu-toggle:before { content: "\f107" !important; } .slideout-navigation .sfHover > a .dropdown-menu-toggle:before { content: "\f106" !important; }'; } } if ( $output ) { return str_replace( array( "\r", "\n", "\t" ), '', $output ); } }