">

id="comment-">
$depth, 'max_depth' => $args['max_depth']))) ?>
comment_approved == '0' ) : ?>
ID}\" class=\"more-link\">" .__('Read More','arilewp')."

"; } add_filter( 'the_content_more_link', 'arilewp_read_more_button_class' ); function arilewp_post_thumbnail() { if(has_post_thumbnail()){ echo '
'; the_post_thumbnail( '', array( 'class'=>'img-fluid' ) ); echo '
'; } } // theme page header title functions function arilewp_theme_page_header_title(){ if( is_archive() ) { echo '

'; if ( is_day() ) : /* translators: %1$s %2$s: day */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('Archives','arilewp'), get_the_date() ); elseif ( is_month() ) : /* translators: %1$s %2$s: month */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('Archives','arilewp'), get_the_date( 'F Y' ) ); elseif ( is_year() ) : /* translators: %1$s %2$s: year */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('Archives','arilewp'), get_the_date( 'Y' ) ); elseif( is_author() ): /* translators: %1$s %2$s: author */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('All posts by','arilewp'), get_the_author() ); elseif( is_category() ): /* translators: %1$s %2$s: category */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('Category','arilewp'), single_cat_title( '', false ) ); elseif( is_tag() ): /* translators: %1$s %2$s: tag */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('Tag','arilewp'), single_tag_title( '', false ) ); elseif( class_exists( 'WooCommerce' ) && is_shop() ): /* translators: %1$s %2$s: WooCommerce */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('Shop','arilewp'), single_tag_title( '', false )); elseif( is_archive() ): the_archive_title( '

', '

' ); endif; echo '
'; } elseif( is_404() ) { echo '

'; /* translators: %1$s: 404 */ printf( esc_html__( '%1$s', 'arilewp' ) , esc_html__('404','arilewp') ); echo '

'; } elseif( is_search() ) { echo '

'; /* translators: %1$s %2$s: search */ printf( esc_html__( '%1$s %2$s', 'arilewp' ), esc_html__('Search results for','arilewp'), get_search_query() ); echo '

'; } else { echo '

'.esc_html( get_the_title() ).'

'; } } function arilewp_bootstrap_menu_notitle( $menu ){ return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu ); } add_filter( 'wp_nav_menu', 'arilewp_bootstrap_menu_notitle' ); // theme page header Url functions function arilewp_curPageURL() { $page_url = 'http'; if ( key_exists("HTTPS", $_SERVER) && ( $_SERVER["HTTPS"] == "on" ) ){ $page_url .= "s"; } $page_url .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $page_url .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $page_url .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $page_url; } // theme page header breadcrumbs functions if( !function_exists('arilewp_page_header_breadcrumbs') ): function arilewp_page_header_breadcrumbs() { global $post; $home_Link = home_url(); echo ''; } endif; if ( ! function_exists( 'arilewp_sanitize_select' ) ) : /** * Sanitize select, radio. * */ function arilewp_sanitize_select( $input, $setting ) { // Get list of choices from the control associated with the setting. $choices = $setting->manager->get_control( $setting->id )->choices; // If the input is a valid key, return it; otherwise, return the default. return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); } endif; function arilewp_sanitize_text( $input ) { return wp_kses_post( force_balance_tags( $input ) ); } if( ! function_exists( 'arilewp_custom_customizer_options' ) ): function arilewp_custom_customizer_options() { $arilewp_testomonial_background_image = get_theme_mod('arilewp_testomonial_background_image'); $arilewp_page_header_background_image = get_theme_mod('arilewp_page_header_background_image'); $arilewp_sticky_bar_logo = get_theme_mod('arilewp_sticky_bar_logo'); $arilewp_custom_logo_size = get_theme_mod('arilewp_custom_logo_size', array('slider' => 210,'suffix' => 'px',)); $output_css = ''; if($arilewp_testomonial_background_image != null){ $output_css .=" .theme-testimonial { background-image: url( " .esc_url($arilewp_testomonial_background_image). "); background-size: cover; background-position: center center; }\n"; } if($arilewp_custom_logo_size['slider'] != null) : $output_css .=".navbar img.custom-logo, .theme-header-logo-center img.custom-logo { max-width: ".$arilewp_custom_logo_size['slider']."px; height: auto; }\n"; endif; if ( has_header_image() ) : $output_css .=".theme-page-header-area { background: #17212c url(" .esc_url( get_header_image() ). "); background-attachment: scroll; background-position: top center; background-repeat: no-repeat; background-size: cover; }\n"; endif; if($arilewp_sticky_bar_logo != null) : $output_css .=".header-fixed-top .navbar-brand { display: none !important; } .not-sticky .sticky-navbar-brand { display: none !important; }\n"; endif; if ( is_user_logged_in() && is_admin_bar_showing() ) { $output_css .="@media (min-width: 600px){ .navbar.header-fixed-top{top:32px;} }\n"; } wp_add_inline_style( 'arilewp-style', $output_css ); } endif; add_action( 'wp_enqueue_scripts', 'arilewp_custom_customizer_options' ); add_action( 'after_switch_theme', 'arilewp_import_theme_mods_from_child_themes_to_parent_theme' ); /** * Import theme mods */ function arilewp_import_theme_mods_from_child_themes_to_parent_theme() { // Get the name of the previously active theme. $previous_theme = strtolower( get_option( 'theme_switched' ) ); if ( ! in_array( $previous_theme, array( 'business-street', 'strangerwp', 'newyork-city', ) ) ) { return; } // Get the theme mods from the previous theme. $previous_theme_content = get_option( 'theme_mods_' . $previous_theme ); if ( ! empty( $previous_theme_content ) ) { foreach ( $previous_theme_content as $previous_theme_mod_k => $previous_theme_mod_v ) { set_theme_mod( $previous_theme_mod_k, $previous_theme_mod_v ); } } } /** * Get started notice */ add_action( 'wp_ajax_arilewp_dismissed_notice_handler', 'arilewp_ajax_notice_handler' ); /** * AJAX handler to store the state of dismissible notices. */ function arilewp_ajax_notice_handler() { if ( isset( $_POST['type'] ) ) { // Pick up the notice "type" - passed via jQuery (the "data-notice" attribute on the notice) $type = sanitize_text_field( wp_unslash( $_POST['type'] ) ); // Store it in the options table update_option( 'dismissed-' . $type, TRUE ); } } function arilewp_deprecated_hook_admin_notice() { // Check if it's been dismissed... if ( ! get_option('dismissed-get_started', FALSE ) ) { // Added the class "notice-get-started-class" so jQuery pick it up and pass via AJAX, // and added "data-notice" attribute in order to track multiple / different notices // multiple dismissible notice states ?>
<?php esc_attr_e( 'Theme Screenshot', 'arilewp' ); ?>

'. wp_get_theme()->get('Name'). '' ); ?>

Arile Extra plugin, then enjoy this theme.', 'arilewp')) ?>

'. wp_get_theme()->get('Name'). '' ); ?> ', '', '' ); ?>
sanitize_key( wp_unslash( 'arile-extra' ) ), 'fields' => array( 'sections' => false, ), ) ); $skin = new WP_Ajax_Upgrader_Skin(); $upgrader = new Plugin_Upgrader( $skin ); $result = $upgrader->install( $api->download_link ); } // Activate plugin. if ( current_user_can( 'activate_plugin' ) ) { $result = activate_plugin( 'arile-extra/arile-extra.php' ); } }