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

"; } add_filter( 'the_content_more_link', 'newsexo_read_more_button_class' ); function newsexo_post_thumbnail() { if(has_post_thumbnail()){ echo '
'; the_post_thumbnail( '', array( 'class'=>'img-fluid' ) ); echo '
'; } } function newsexo_bootstrap_menu_notitle( $menu ){ return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu ); } add_filter( 'wp_nav_menu', 'newsexo_bootstrap_menu_notitle' ); /** * Theme Breadcrumbs Url */ function newsexo_page_url() { $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 Breadcrumbs */ // theme page header breadcrumbs functions if( !function_exists('newsexo_theme_breadcrumbs') ): function newsexo_theme_breadcrumbs() { global $post; $home_Link = home_url(); echo ''; } endif; /* * Edit page link */ if (!function_exists('newsexo_edit_link')) : function newsexo_edit_link($view = 'default') { global $post; edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __('Edit %s', 'newsexo'), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; /* * Excerpt content */ if ( ! function_exists( 'newsexo_posted_content' ) ) : function newsexo_posted_content() { $newsexo_blog_content = get_theme_mod('newsexo_blog_content','excerpt'); if ( 'excerpt' == $newsexo_blog_content ){ $newsexo_excerpt = newsexo_the_excerpt( absint( 20 ) ); if ( !empty( $newsexo_excerpt ) ) : echo wp_kses_post( wpautop( $newsexo_excerpt ) ); endif; } else { the_content( __('Read More','newsexo') ); } } endif; if ( ! function_exists( 'newsexo_the_excerpt' ) ) : /** * Generate excerpt. * */ function newsexo_the_excerpt( $length = 0, $post_obj = null ) { global $post; if ( is_null( $post_obj ) ) { $post_obj = $post; } $length = absint( $length ); if ( 0 === $length ) { return; } $source_content = $post_obj->post_content; if ( ! empty( get_the_excerpt($post_obj) ) ) { $source_content = get_the_excerpt($post_obj); } // Check if non-breaking space exists in the text with variations if (preg_match('/\s*( |\xA0)\s*/u', $source_content)) { // Remove non-breaking space and its variations from the text $source_content = preg_replace('/\s*( |\xA0)\s*/u', ' ', $source_content); } $source_content = preg_replace( '`\[[^\]]*\]`', '', $source_content ); $trimmed_content = wp_trim_words( $source_content, $length, '…' ); return $trimmed_content; } endif; /* * Import customizer options from Lite version */ add_action( 'after_switch_theme', 'newsexo_merge_lite_options' ); /** * Import lite options. */ function newsexo_merge_lite_options() { $newsexo_mods = get_option( 'theme_mods_newsexo' ); if ( ! empty( $newsexo_mods ) ) { foreach ( $newsexo_mods as $newsexo_mod_k => $newsexo_mod_v ) { set_theme_mod( $newsexo_mod_k, $newsexo_mod_v ); } } } /** * Menu */ function newsexo_custom_menu_script() { $custom_logo = get_theme_mod( 'custom_logo' ); if(display_header_text()== true && $custom_logo != null && get_bloginfo( 'title' ) !== '' ){ $toggle_value = 1; }else{ $toggle_value = 0; } ?>
display_name ); ?> 👋🏻

Name ), esc_html( $theme_info->Version ) ); ?>

Name ), esc_html( $theme_info->Version ) ); ?>

<?php esc_attr_e( 'NewsExo', 'newsexo' ); ?>
sanitize_key( wp_unslash( 'one-click-demo-import' ) ), '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( 'one-click-demo-import/one-click-demo-import.php' ); } } function newsexo_ocdi_register_plugins( $plugins ) { $theme_plugins = [ [ // A WordPress.org plugin repository example. 'name' => 'Contact Form 7', // Name of the plugin. 'slug' => 'contact-form-7', // Plugin slug - the same as on WordPress.org plugin repository. 'required' => true, // If the plugin is required or not. ], [ // A WordPress.org plugin repository example. 'name' => 'Post Types Order', // Name of the plugin. 'slug' => 'post-types-order', // Plugin slug - the same as on WordPress.org plugin repository. 'required' => true, // If the plugin is required or not. ], ]; return array_merge( $plugins, $theme_plugins ); } add_filter( 'ocdi/register_plugins', 'newsexo_ocdi_register_plugins' ); /** * Import data */ function newsexo_pro_ocdi_import_files() { $activate_theme_data = wp_get_theme(); // getting current theme data $activate_theme = $activate_theme_data->get( 'Name' ); $athemeslug = $activate_theme_data->get( 'TextDomain' ); return array( array( 'import_file_name' => ''.$activate_theme.'', 'categories' => [ 'Free' ], 'import_file_url' => 'https://themearile.com/demo-data/'.$athemeslug.'/'.$athemeslug.'.xml', 'import_widget_file_url' => 'https://themearile.com/demo-data/'.$athemeslug.'/widgets.wie', 'import_customizer_file_url' => 'https://themearile.com/demo-data/'.$athemeslug.'/customizer.dat', 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/free-themes/'.$athemeslug.'-free-theme.jpg', 'preview_url' => 'https://'.$athemeslug.'.themearile.com/', ), array( 'import_file_name' => 'NewsExo Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/newsexo-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro.themearile.com/', ), array( 'import_file_name' => 'Newsio Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/newsio-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-two.themearile.com/', ), array( 'import_file_name' => 'News Digest Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/news-digest-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-three.themearile.com/', ), array( 'import_file_name' => 'NewsCorn Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/newscorn-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-four.themearile.com/', ), array( 'import_file_name' => 'Provo News Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/provo-news-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-five.themearile.com/', ), array( 'import_file_name' => 'Seattle News Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/seattle-news-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-six.themearile.com/', ), array( 'import_file_name' => 'News Gadgets Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/news-gadgets-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-eight.themearile.com/', ), array( 'import_file_name' => 'Irvine News Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/irvine-news-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-nine.themearile.com/', ), array( 'import_file_name' => 'Editor News Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/editor-news-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-ten.themearile.com/', ), array( 'import_file_name' => 'Medford News Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/medford-news-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-eleven.themearile.com/', ), array( 'import_file_name' => 'Frankfurt News Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/frankfurt-news-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-twelve.themearile.com/', ), array( 'import_file_name' => 'News Mart Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/news-mart-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-thirteen.themearile.com/', ), array( 'import_file_name' => 'News Gallery Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/news-gallery-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-fourteen.themearile.com/', ), array( 'import_file_name' => 'EditorPress Pro', 'categories' => [ 'Pro' ], 'import_preview_image_url' => 'https://themearile.com/wp-content/themes/themearile-pro/assets/img/newsexo-pro/editor-press-pro-screenshot.jpg', 'preview_url' => 'https://newsexo-pro-fifteen.themearile.com/', ), ); } add_filter( 'pt-ocdi/import_files', 'newsexo_pro_ocdi_import_files' ); function newsexo_ocdi_plugin_page_setup( $default_settings ) { $default_settings['parent_slug'] = 'themes.php'; $default_settings['page_title'] = esc_html__( 'Arile Demo Import' , 'newsexo' ); $default_settings['menu_title'] = esc_html__( 'Arile Demo Importer' , 'newsexo' ); $default_settings['capability'] = 'import'; $default_settings['menu_slug'] = 'arile-demo-importer'; return $default_settings; } add_filter( 'ocdi/plugin_page_setup', 'newsexo_ocdi_plugin_page_setup' ); function newsexo_ocdi_plugin_intro_text( $default_text ) { ?>
$primary_menu->term_id, 'footer' => $footer_menu->term_id, ) ); $pages = array( esc_html__( 'Home', 'newsexo' ), esc_html__( 'Blog', 'newsexo' ) ); foreach ($pages as $page){ $post_data = array( 'post_author' => 1, 'post_name' => $page, 'post_status' => 'publish' , 'post_title' => $page, 'post_type' => 'page', ); if($page== 'Home'): $page_option = 'page_on_front'; $template = 'page-templates/frontpage.php'; else: $page_option = 'page_for_posts'; $template = 'page.php'; endif; $post_data = wp_insert_post( $post_data, false ); if ( $post_data ){ update_post_meta( $post_data, '_wp_page_template', $template ); $page = get_page_by_title($page); update_option( 'show_on_front', 'page' ); update_option( $page_option, $page->ID ); } } } add_action( 'ocdi/after_import', 'newsexo_ocdi_after_import_setup' ); function display_upgrade_pro_admin_notice() { // Check if it's been dismissed... ?>

' . esc_html( $current_user->display_name ) . '', '' . esc_html( $theme_info->Name ). '', 'Unlock premium features with 35% OFF', 'Pro version', ); ?>