/** * General Functions * */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly /** * Get the components of theme mobile header */ if( ! function_exists( 'tie_mobile_header_components' ) ) { function tie_mobile_header_components( $area ){ $mobile_header_components = array( 'menu' => tie_mobile_menu_icon(), 'search' => ' '. esc_html__( 'Search for', TIELABS_TEXTDOMAIN ) .' ', 'skin' => ' '. esc_html__( 'Switch skin', TIELABS_TEXTDOMAIN ) .' ', ); // Login and user account if( is_user_logged_in() ){ ob_start(); tie_login_form(); $login_form = ob_get_clean(); $current_user = wp_get_current_user(); $mobile_header_components['login'] = ' '. get_avatar( $current_user->ID, apply_filters( 'TieLabs/Login/avatar_size', 30 ) ) .' '. esc_html__( 'Your Profile', TIELABS_TEXTDOMAIN ) .'
'. $login_form .'
'; } else { $mobile_header_components['login'] = ' '. esc_html__( 'Log In', TIELABS_TEXTDOMAIN ) .' '; } // WooCommerce Cart if ( TIELABS_WOOCOMMERCE_IS_ACTIVE ){ $mobile_header_components['cart'] = tie_component_button_cart(); } // BuddyPress if ( TIELABS_BUDDYPRESS_IS_ACTIVE ){ $mobile_header_components['bp_notifications'] = tie_component_button_bp_notifications(); } // Check the active components $components = array(); foreach ( $mobile_header_components as $key => $html ) { if( tie_get_option( 'mobile_header_components_'.$key ) == $area ){ $components[ $key ] = ''; } } // $components = apply_filters( 'TieLabs/Mobile/Header/Components', $components, $area ); if( ! empty( $components ) ){ echo '
'; echo ''; echo '
'; } // If Header layout is centered we need to place the div even if it is empty || FLEX elseif ( tie_get_option( 'mobile_header' ) == 'centered' ) { echo '
'; } return false; } } /** * Mobile Menu icon */ if( ! function_exists( 'tie_mobile_menu_icon' ) ) { function tie_mobile_menu_icon(){ if( ! tie_get_option( 'mobile_header_components_menu' ) ){ return false; } $menu_icon = tie_get_option( 'mobile_menu_icon', 1 ); $class = 'tie-mobile-menu-icon '; if( is_numeric( $menu_icon ) ){ $class .= "nav-icon is-layout-$menu_icon"; } else{ $class .= "tie-icon-$menu_icon"; } $class_wrapper = tie_get_option( 'mobile_menu_text' ) ? 'menu-text-wrapper' : ''; $mobile_icon = ''; $mobile_icon .= ''; if( tie_get_option( 'mobile_menu_text' ) ){ $mobile_icon .= ''. esc_html__( 'Menu', TIELABS_TEXTDOMAIN ) .''; } else{ $mobile_icon .= ''. esc_html__( 'Menu', TIELABS_TEXTDOMAIN ) .''; } $mobile_icon .= ''; return $mobile_icon; } } /** * Mobile Header Components Main area */ if( ! function_exists( 'tie_mobile_header_components_area_1' ) ) { add_action( 'TieLabs/Logo/before', 'tie_mobile_header_components_area_1' ); function tie_mobile_header_components_area_1(){ tie_mobile_header_components( 'area_1' ); } } /** * Mobile Header Components */ if( ! function_exists( 'tie_mobile_header_components_area_2' ) ) { add_action( 'TieLabs/Logo/after', 'tie_mobile_header_components_area_2' ); function tie_mobile_header_components_area_2(){ tie_mobile_header_components( 'area_2' ); } }/** * Filters * */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly class TIELABS_FILTERS { /** * Runs on class initialization. Adds filters and actions. */ function __construct() { // Add Support for Shortcodes in the terms descriptions add_filter( 'term_description', 'do_shortcode' ); add_action( 'init', array( $this, 'init_hook' ) ); add_action( 'init', array( $this, 'redirect_random_post' ) ); add_action( 'wp_head', array( $this, 'meta_description' ) ); add_action( 'wp_head', array( $this, 'meta_generator' ) ); add_action( 'wp_head', array( $this, 'x_ua_compatible' ) ); add_action( 'wp_footer', array( $this, 'footer_inline_scripts' ), 999 ); add_action( 'wp_footer', array( $this, 'footer_misc' ) ); add_action( 'wp_footer', array( $this, 'popup_module' ) ); add_action( 'comment_class', array( $this, 'is_avatar_enabled' ) ); add_filter( 'pre_get_posts', array( $this, 'search_filters' ) ); add_filter( 'pre_get_posts', array( $this, 'category_posts_order' ) ); add_filter( 'TieLabs/cache_key', array( $this, 'cache_key' ) ); add_filter( 'widget_tag_cloud_args', array( $this, 'tag_widget_limit' ) ); add_filter( 'widget_title', array( $this, 'tagcloud_widget_title' ), 10, 3 ); add_filter( 'login_headerurl', array( $this, 'dashboard_login_logo_url' ) ); add_filter( 'login_head', array( $this, 'dashboard_login_logo' ) ); add_filter( 'get_the_archive_title', array( $this, 'archive_title' ), 15 ); add_filter( 'wp_link_pages_args', array( $this, 'pages_next_and_number' ) ); add_filter( 'excerpt_more', array( $this, 'excerpt_more' ) ); add_filter( 'get_the_excerpt', array( $this, 'post_excerpt' ), 9 ); add_filter( 'has_post_thumbnail', array( $this, 'has_post_thumbnail' ) ); add_filter( 'post_thumbnail_html', array( $this, 'default_featured_image' ), 10, 5 ); add_filter( 'TieLabs/exclude_content', 'TIELABS_HELPER::strip_shortcodes' ); add_filter( 'wp_get_attachment_image_src', array( $this, 'gif_image' ), 10, 4 ); add_filter( 'wp_get_attachment_image_attributes', array( $this, 'small_thumb_image_class' ), 10, 3 ); add_filter( 'TieLabs/Primary_Category/custom', array( $this, 'yoast_seo_primary_category' ) ); // Translations if( tie_get_option( 'translations' ) ){ add_filter( 'gettext', array( $this, 'theme_translation' ), 10, 3 ); } if( tie_get_option( 'translation_numbers' ) ){ add_filter( 'get_the_date', array( $this, 'translate_numbers' ), 55 ); add_filter( 'get_comment_date', array( $this, 'translate_numbers' ), 55 ); add_filter( 'get_comment_time', array( $this, 'translate_numbers' ), 55 ); add_filter( 'comments_number', array( $this, 'translate_numbers' ), 55 ); add_filter( 'wp_list_categories', array( $this, 'translate_numbers' ), 55 ); add_filter( 'TieLabs/number_format', array( $this, 'translate_numbers' ), 55 ); add_filter( 'TieLabs/post_date', array( $this, 'translate_numbers' ), 55 ); add_filter( 'TieLabs/reading_time', array( $this, 'translate_numbers' ), 55 ); add_filter( 'TieLabs/post_views_number', array( $this, 'translate_numbers' ), 55 ); add_filter( 'TieLabs/Social_Counters/number', array( $this, 'translate_numbers' ), 55 ); add_filter( 'TieLabs/Weather/number', array( $this, 'translate_numbers' ), 55 ); } } /** * init_hook */ function init_hook(){ /*if( current_user_can( 'manage_options' ) ){ add_filter( 'the_content', array( $this, 'shortcodes_notice' ) ); } */ //WordPress doesn't recognize it as RTL language because there is an error in the main translation file of the Sindhi language! if( get_locale() == 'snd' && ! is_rtl() ){ global $wp_locale; $wp_locale->text_direction = 'rtl'; } } /** * Add notice for the shortcodes plugin */ function shortcodes_notice( $content ){ // Don't show the message if this is excerpt OR backend OR AMP if( is_admin() || ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) || in_array( 'parse_request', $GLOBALS['wp_current_filter'] ) || in_array( 'get_the_excerpt', $GLOBALS['wp_current_filter'] ) ){ return $content; } $message = ''; // Timetable and Event Schedule Plugin if( ! TIELABS_MPTIMETABLE_IS_ACTIVE ){ if( strpos( $content, '[mp-timetable' ) !== false ){ $message .= TIELABS_HELPER::notice_message( sprintf( esc_html__( 'This section contains some shortcodes that requries the %2$s%1$s%3$s Plugin.', TIELABS_TEXTDOMAIN ), 'Timetable and Event Schedule', '', '' ), false ); } } // Contact Form 7 Plugin if( ! class_exists( 'WPCF7' ) ){ if( strpos( $content, '[contact-form-7' ) !== false ){ $message .= TIELABS_HELPER::notice_message( sprintf( esc_html__( 'This section contains some shortcodes that requries the %2$s%1$s%3$s Plugin.', TIELABS_TEXTDOMAIN ), 'Contact Form 7', '', '' ), false) ; } } // Return the content with message return apply_filters( 'TieLabs/shortcodes_check', $message, $content ) . $content; } /** * x_ua_compatible */ function x_ua_compatible(){ echo ''; } /** * meta_escription */ function meta_description(){ // Return if the description option is disabled or the Yoast SEO or Rank Math SEO plugins are active if( ! tie_get_option( 'post_meta_escription' ) || class_exists( 'WPSEO_Frontend' ) || class_exists( 'RankMath' ) ){ return; } // Single Page doesn't have a builder if( is_singular() && ! TIELABS_HELPER::has_builder() ){ $post = get_post(); if( ! empty( $post->post_content ) ){ $description = apply_filters( 'TieLabs/exclude_content', $post->post_content ); } } // Archives elseif( get_the_archive_description() ){ $description = get_the_archive_description(); } // Default if( empty( $description ) ){ $description = get_bloginfo( 'description' ); } if( ! empty( $description ) ){ $description = strip_tags( strip_shortcodes( $description ) ); echo ' '; } } /** * Theme translations */ function theme_translation( $translation, $text, $domain ){ if( $domain == TIELABS_TEXTDOMAIN || $domain == 'amp' ){ $translations = tie_get_option( 'translations' ); if( ! empty( $translations ) ){ // To minimize the calls of sanitize_title $sanitize_text = sanitize_title( htmlspecialchars( $text ) ); if( ! empty( $translations[ $sanitize_text ] ) ){ return htmlspecialchars_decode( $translations[ $sanitize_text ] ); } } } return $translation; } /** * Add the inline scripts to the Footer */ function footer_inline_scripts(){ // Check if we are in an AMP page if( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ){ return; } // Print the inline scripts if the BWP is active if( ! empty( $GLOBALS['tie_inline_scripts'] ) && TIELABS_HELPER::is_js_minified() ){ echo ''; } } /** * Add Misc Footer Conetnt */ function footer_misc(){ // Check if we are in an AMP page if( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ){ return; } // Custom Footer Code if ( tie_get_option( 'footer_code' ) ){ echo do_shortcode( apply_filters( 'TieLabs/footer_code', tie_get_option( 'footer_code' ) ) ); } // Reading Position Indicator if ( tie_get_option( 'reading_indicator' ) && is_single() && ! tie_get_option( 'autoload_posts' ) ){ echo '
'; } // Live Search if( tie_menu_has_search( 'top_nav', true ) || tie_menu_has_search( 'main_nav', true ) || ( tie_get_option( 'mobile_header_components_search') && tie_get_option( 'mobile_header_live_search') ) ){ echo '
'; } // Scrollbar - Used to get the default scrollbar width. echo '
'; // Facebook buttons echo '
'; } /** * Add the Popup module to the footer */ function popup_module(){ // Check if we are in an AMP page if( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ){ return; } TIELABS_HELPER::get_template_part( 'templates/popup' ); } /** * Add an extra class to the comment item if the avatar is active */ function is_avatar_enabled( $classes ){ if( is_array( $classes ) && get_option( 'show_avatars' ) ){ $classes[] = 'has-avatar'; } return $classes; } /** * Exclude post types and categories From Search results */ function search_filters( $query ){ if( is_admin() || isset( $_GET['post_type'] ) ){ return $query; } if( is_search() && $query->is_main_query() ){ // Exclude Post types from search if ( ($exclude_post_types = tie_get_option( 'search_exclude_post_types' )) && is_array( $exclude_post_types ) ){ $args = array( 'public' => true, 'exclude_from_search' => false, ); $post_types = get_post_types( $args ); foreach ( $exclude_post_types as $post_type ){ unset( $post_types[ $post_type ] ); } $query->set( 'post_type', $post_types ); } // Exclude specific categoies from search if ( tie_get_option( 'search_cats' ) ){ $query->set( 'cat', tie_get_option( 'search_cats' ) ); } } return $query; } /** * Change the posts order in the category page */ function category_posts_order( $query ){ if( ! is_admin() && is_category() && $query->is_main_query() ){ $current_category = get_queried_object(); if( ! empty( $current_category->term_id ) ){ $posts_order = tie_get_category_option( 'posts_order', $current_category->term_id ); // Posts Order if( ! empty( $posts_order ) ){ if( $posts_order == 'views' && tie_get_option( 'tie_post_views' ) ){ // Most Viewd posts $query->set( 'orderby', 'meta_value_num' ); $query->set( 'meta_key', apply_filters( 'TieLabs/views_meta_field', 'tie_views' ) ); } elseif( $posts_order == 'popular' ){ // Popular Posts by comments $query->set( 'orderby', 'comment_count' ); } elseif( $posts_order == 'title' ){ $query->set( 'orderby', 'title' ); $query->set( 'order', 'ASC' ); } else{ $query->set( 'orderby', $posts_order ); } } } } return $query; } /** * Random Article */ function redirect_random_post(){ if( wp_doing_ajax() ){ return; } if( isset( $_GET['random-post'] ) && ( tie_get_option( 'top-nav-components_random' ) || tie_get_option( 'main-nav-components_random' ) ) ) { $args = array( 'posts_per_page' => 1, 'orderby' => 'rand', 'fields' => 'ids', 'no_found_rows' => true, 'ignore_sticky_posts' => true, ); $random_post = new WP_Query ( $args ); while ( $random_post->have_posts () ){ $random_post->the_post(); wp_redirect( get_permalink() ); exit; } } } /** * Widgets Small Image Class * * By default WordPress uses 2 classes attachment-{size} size-{size} * we need to add a general class doesn't linked with the thumb name */ function small_thumb_image_class( $attr, $attachment, $size = false ) { if( ! empty( $size ) && $size == TIELABS_THEME_SLUG.'-image-small' ){ $attr['class'] .= ' tie-small-image'; } return $attr; } /** * Gif images */ function gif_image( $image, $attachment_id, $size, $icon ){ if( ! tie_get_option( 'disable_featured_gif' ) ){ $file_type = ! empty( $image[0] ) ? wp_check_filetype( $image[0] ) : false; if( ! empty( $file_type ) && $file_type['ext'] == 'gif' && $size != 'full' ){ $full_image = wp_get_attachment_image_src( $attachment_id, $size = 'full', $icon ); // For the avatars we need to keep the original width and height if( ! empty( $full_image ) && in_array( 'get_avatar', $GLOBALS['wp_current_filter'] ) ){ $full_image[1] = $image[1]; $full_image[2] = $image[2]; } return $full_image; } } return $image; } /** * Modify Excerpts */ function post_excerpt( $text = '' ){ $raw_excerpt = $text; if ( '' == $text ){ //$text = get_the_content( '' ); // Causes issues with the new Posts List Blocks $_post = get_post(); $text = ! empty( $_post->post_content ) ? $_post->post_content : ''; $text = apply_filters( 'TieLabs/exclude_content', $text ); /** * If images with class wp-image-{ID} exists in the conetnt, WordPress make a DB request to get andd add the srcset * Since we are in excerpt we don't need that, Great affect on archives pages */ $text = str_replace( 'wp-image-', 'tie-image', $text ); $text = strip_shortcodes( $text ); $text = apply_filters( 'the_content', $text ); $text = str_replace( ']]>', ']]>', $text ); $excerpt_length = apply_filters( 'excerpt_length', 55 ); $excerpt_more = apply_filters( 'excerpt_more', ' ' . '[…]' ); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); } return apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt ); } /** * Global Cache Key */ function cache_key( $key ){ return 'tie-cache-'. TIELABS_HELPER::get_locale() . $key; } /** * Change the number of tags in the cloud tags */ function tag_widget_limit( $args ){ if( isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag' ){ $args['number'] = 18; } return $args; } /** * Remove the default Tag CLoud titles if the title field is empty */ function tagcloud_widget_title( $title = false, $instance = false, $id_base = false ){ if( $id_base == 'tag_cloud' && empty( $instance['title'] ) ){ return false; } return $title; } /** * Custom Dashboard login URL */ function dashboard_login_logo_url(){ if( tie_get_option( 'dashboard_logo_url' ) ){ return tie_get_option( 'dashboard_logo_url' ); } } /** * Custom Dashboard login page logo */ function dashboard_login_logo(){ if( tie_get_option( 'dashboard_logo' ) ){ echo ''; } } /** * Remove anything that looks like an archive title prefix ("Archive:", "Foo:", "Bar:"). */ function archive_title( $title ){ if ( is_category() ) { return single_cat_title( '', false ); } elseif ( is_tag() ) { return single_tag_title( '', false ); } elseif ( is_author() ) { return '' . get_the_author() . ''; } elseif ( is_post_type_archive() ) { return post_type_archive_title( '', false ); } elseif ( is_tax() ) { return single_term_title( '', false ); } return $title; } /** * Add Number and Next / prev multiple post pages */ function pages_next_and_number( $args ){ if( $args['next_or_number'] == 'next_and_number' ){ global $page, $numpages, $multipage, $more; $args['next_or_number'] = 'number'; $prev = ''; $next = ''; if ( $multipage && $more ){ $i = $page - 1; if ( $i && $more ){ $prev .= _wp_link_page($i); $prev .= $args['link_before']. $args['previouspagelink'] . $args['link_after'] . ''; } $i = $page + 1; if ( $i <= $numpages && $more ){ $next .= _wp_link_page($i); $next .= $args['link_before']. $args['nextpagelink'] . $args['link_after'] . ''; } } $args['before'] = $args['before'].$prev; $args['after'] = $next.$args['after']; } return $args; } /** * Excerpt More */ function excerpt_more( $more ){ return ' …'; } /** * Theme Generator Meta */ function meta_generator(){ $active_theme = wp_get_theme(); if ( is_child_theme() ) { $active_theme = wp_get_theme( $active_theme->Template ); } if( ! empty( $active_theme->Name ) ){ $theme_info = apply_filters( 'TieLabs/theme_meta_generator', $active_theme->Name .' '. TIELABS_DB_VERSION ); if( ! empty( $theme_info ) ){ echo "\n" . "" . "\n"; } } } /** * If the post doesn't have a Primary Category, use the Primary Category of Yoast if it is available */ function yoast_seo_primary_category( $category = false ){ if( class_exists( 'WPSEO_Meta' ) ){ $wpseo_primary_term = get_post_meta( get_the_id(), WPSEO_Meta::$meta_prefix . 'primary_category', true ); if( ! empty( $wpseo_primary_term ) ){ $get_the_category = TIELABS_WP_HELPER::get_term_by( 'id', $wpseo_primary_term, 'category' ); if ( ! empty( $get_the_category ) && ! is_wp_error( $get_the_category ) ) { return $get_the_category; } } } return false; } /** * Always return true, If there is a default featured image */ function has_post_thumbnail( $has_thumbnail ) { if( tie_get_option( 'default_featured_image' ) && tie_get_option( 'default_featured_image_id' ) ){ $has_thumbnail = true; } return $has_thumbnail; } /** * Set a default featured image if it is missing */ function default_featured_image( $html, $post_id, $post_thumbnail_id, $size, $attr ) { // Return if the post has a featured image if( ! empty( $html ) ){ return $html; } // Check if the default eatured image option is active if( ! tie_get_option( 'default_featured_image' ) || ! tie_get_option( 'default_featured_image_id' ) ){ return $html; } $default_thumbnail_id = tie_get_option( 'default_featured_image_id' ); // select the default thumb. return wp_get_attachment_image( $default_thumbnail_id, $size, false, $attr ); } /** * Translate numbers */ function translate_numbers( $the_number ) { if( ! ( is_admin() && ! wp_doing_ajax() ) ) { $translated_numbers = tie_get_option( 'translation_numbers' ); if( ! empty( $translated_numbers ) && is_array( $translated_numbers ) && count( $translated_numbers ) == 10 ){ $original_numbers = array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' ); return str_replace( $original_numbers, $translated_numbers, $the_number ); } } return $the_number; } } // Single instance. $TIELABS_FILTERS = new TIELABS_FILTERS();/** * Taqyeem Class * */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly if( ! class_exists( 'TIELABS_TAQYEEM' ) ) { class TIELABS_TAQYEEM{ /** * __construct * * Class constructor where we will call our filter and action hooks. */ function __construct(){ // Disable if the Taqyeem plugin is not active if( ! TIELABS_TAQYEEM_IS_ACTIVE ){ return; } // Disable the Custom Styles and Typofraphy options add_filter( 'taqyeem_custom_styles', '__return_false' ); // Disable Updater and Verification add_filter( 'Taqyeem/Updater/disable', '__return_true' ); add_filter( 'Taqyeem/Verification/disable', '__return_true' ); // Disable the plugin Rich Snippets add_filter( 'tie_taqyeem_rich_snippets', '__return_false' ); // Remove Shortcodes code and Keep the content add_filter( 'taqyeem_exclude_content', 'TIELABS_HELPER::strip_shortcodes' ); // Dequeue Scripts and Styles add_filter( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 50 ); // Dequeue Scripts and Styles add_filter( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ), 50 ); // Change the reviews head box class add_filter( 'taqyeem_reviews_head_classes', array( $this, 'review_head_class' ) ); // Alter the Queries add_filter( 'TieLabs/Query/args', array( $this, 'best_reviews_query' ), 10, 2 ); // Alter the Related Posts Query add_filter( 'TieLabs/related_posts_query', array( $this, 'related_posts_query' ) ); // Alter the Check Also box Query add_filter( 'TieLabs/checkalso_query', array( $this, 'checkalso_query' ) ); // Default Widgets Posts Thumb Size add_filter( 'tie_taqyeem_widget_thumb_size', array( $this, 'reviews_thumb_size' ) ); // Allow the Rview Rich Snippet on Pages add_filter( 'TieLabs/is_page_rich_snippet', array( $this, 'rich_snippet_for_page' ) ); // Change the Review Rich Snippet add_filter( 'TieLabs/rich_snippet_schema', array( $this, 'review_rich_snippet' ) ); // Add Best Reviews to the post order option menu. add_filter( 'TieLabs/Options/Related/post_order_args', array( $this, 'posts_order_args' ) ); add_filter( 'TieLabs/Options/Checkalso/post_order_args', array( $this, 'posts_order_args' ) ); add_filter( 'TieLabs/Builder/Block/post_order_args', array( $this, 'posts_order_args' ) ); add_filter( 'TieLabs/Settings/Category/posts_order', array( $this, 'posts_order_args' ) ); add_filter( 'TieLabs/Widget/Slider/post_order_args', array( $this, 'posts_order_args' ) ); add_filter( 'TieLabs/Widget/Posts/post_order_args', array( $this, 'posts_order_args_2' ) ); // Prevent Taqyeem from displaying the review box in the content block in the builder add_action( 'TieLabs/Builder/before', array( $this, 'remove_review_block' ) ); // Replace the old icon classes with the new classes of Font Awesome 5.0 add_filter( 'taqyeem_buttons_icon', array( $this, 'replace_icon_fa5' ) ); } /** * Allow the Rview Rich Snippet on Pages */ function rich_snippet_for_page(){ if( tie_get_postdata( 'taq_review_position' ) ){ return true; } } /** * Change the Review Rich Snippet */ function review_rich_snippet( $schema ){ // Check if the Taqyeem Structured Data is active, current post has review and the Taqyeem version is >= 2.3.0 if( ! taqyeem_get_option( 'structured_data' ) || ! tie_get_postdata( 'taq_review_position' ) || ! function_exists( 'taqyeem_review_get_rich_snippet' ) ){ return $schema; } // Unset some data unset( $schema['articleBody'] ); unset( $schema['articleSection'] ); // Get the Review structure data $review_rich_snippet = taqyeem_review_get_rich_snippet(); if( $review_rich_snippet['@type'] == 'product' ){ $schema = $review_rich_snippet; } else{ // Add the data to the post structure data $schema['@type'] = 'review'; $schema['itemReviewed'] = $review_rich_snippet['itemReviewed']; $schema['reviewBody'] = $review_rich_snippet['reviewBody']; $schema['reviewRating'] = $review_rich_snippet['reviewRating']; } // return the modefied data return $schema; } /** * Change the reviews head box class */ function review_head_class( $class ){ return tie_get_box_class( $class ); } /** * Alter the query for the best reviews */ function best_reviews_query( $args, $block ){ if( ! empty( $block['order'] ) && $block['order'] == 'best' ){ $args['orderby'] = 'meta_value_num'; $args['meta_key'] = 'taq_review_score'; } return $args; } /** * Alter the Related Posts Query */ function related_posts_query( $args ){ if( tie_get_option( 'related_order' ) == 'best' ){ $args['orderby'] = 'meta_value_num'; $args['meta_key'] = 'taq_review_score'; } return $args; } /** * Alter the Check Also Query */ function checkalso_query( $args ){ if( tie_get_option( 'check_also_order' ) == 'best' ){ $args['orderby'] = 'meta_value_num'; $args['meta_key'] = 'taq_review_score'; } return $args; } /** * Add Best Reviews to the post order option menu. */ function posts_order_args( $args ){ $args['best'] = esc_html__( 'Best Reviews', TIELABS_TEXTDOMAIN ); return $args; } /** * Add Best Reviews to the post order option menu. */ function posts_order_args_2( $args ){ $args['standard']['best'] = esc_html__( 'Best Reviews', TIELABS_TEXTDOMAIN ); return $args; } /** * Default Widgets Posts Thumb Size */ function reviews_thumb_size(){ return TIELABS_THEME_SLUG.'-image-small'; } /** * Prevent Taqyeem from displaying the review box in the content block in the builder */ function remove_review_block(){ remove_filter( 'the_content', 'taqyeem_insert_review' ); } /** * Dequeue Scripts and Styles */ function enqueue_scripts(){ wp_dequeue_script( 'taqyeem-main' ); wp_dequeue_style( 'taqyeem-style' ); wp_enqueue_style( 'taqyeem-styles', TIELABS_TEMPLATE_URL.'/assets/css/plugins/taqyeem'. TIELABS_STYLES::is_minified() .'.css', array(), TIELABS_DB_VERSION, 'all' ); if( ! is_admin() ){ wp_dequeue_style( 'taqyeem-fontawesome' ); } } /** * Dequeue Scripts and Styles from admin */ function admin_enqueue_scripts(){ // Don't Load the main Font Awesome file of the theme in the add/edit posts screens, avoid issue with Taqyeem Button which uses v4.0 if( function_exists( 'tie_taqyeem_button_output' ) && get_post_type() ){ wp_dequeue_style( 'tie-fontawesome' ); } } /** * Replace the old icon classes with the new classes of Font Awesome 5.0 */ function replace_icon_fa5( $icon ){ return tie_fa4_to_fa5_value_migration( $icon ); } } // Instantiate the class new TIELABS_TAQYEEM(); } Helcim Review for 2021: Features, Pricing, Alternatives – Baghdad Time
/** * The template part for displaying the post contents * * This template can be overridden by copying it to your-child-theme/templates/single-post/content.php. * * HOWEVER, on occasion TieLabs will need to update template files and you * will need to copy the new files to your child theme to maintain compatibility. * * @author TieLabs * @version 2.1.0 */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly ?>
/** * Post Head Area * * This template can be overridden by copying it to your-child-theme/templates/single-post/head.php. * * HOWEVER, on occasion TieLabs will need to update template files and you * will need to copy the new files to your child theme to maintain compatibility. * * @author TieLabs * @version 5.0.0 */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly /** * TieLabs/before_post_head hook. * */ do_action( 'TieLabs/before_post_head' ); ?>
Finance

Helcim Review for 2021: Features, Pricing, Alternatives

Above Article Content Ad

For those who’re in search of an all-inclusive service provider service supplier, contemplate Helcim. Its clear pricing, Helcim Commerce platform and extra capabilities make it a legitimate selection for a wide range of small-business homeowners. Here is what it’s good to know to resolve if Helcim could be a superb match for your corporation.

As a full-service service provider companies supplier, Helcim offers you entry to a variety of completely different capabilities — all of which allow you to course of buyer funds and handle your corporation.

Service provider account

To work with Helcim service provider companies, you first submit a service provider account software, and when you’re accepted, you obtain a service provider account for your corporation. This service provider account lets you settle for bank card funds (and debit too) — together with Visa, MasterCard, Uncover, American Specific, JCB and China UnionPay — from clients. Utilizing Helcim means you don’t must open a separate service provider account with a financial institution, however you do must apply for a service provider account and Helcim reserves the proper to reject your software. Helcim’s Acceptable Use Coverage particulars an inventory of prohibited companies that it will not present companies. This checklist contains “high-risk retailers,” like telemarketing firms, web playing suppliers, telemedicine companies and extra.

Credit score and debit terminals

For those who run a brick-and-mortar retailer and wish to simply accept bank card funds in individual, Helcim presents a wide range of completely different terminals so that you can select from. Helcim presents these bodily terminals at a one-time value and doesn’t lock you right into a long-term gear lease. Terminal choices from Helcim embrace:

  • Helcim Cellular Card Reader: Appropriate with Apple and Android units, connects through audio jack.

  • Wired Countertop, Ingenico DESK3500: Chip card reader (chip and PIN/EMV).

  • Quick-Vary Wi-fi, Ingenico iWL220: Bluetooth terminal for pay-at-table functionality.

  • Lengthy-Vary Wi-fi, Ingenico iWL250: Constructed-in SIM card, settle for funds from virtually wherever (requires extra knowledge plan).

With all of its {hardware} merchandise, Helcim features a one-year cost-free substitute. In case you have have already got a terminal, Helcim presents a terminal trade program. For $75 per trade, you may ship in your present {hardware} in trade for a refurbished terminal from Helcim — programmed and ready-to-go when it arrives. Solely sure terminals are eligible for this program, so that you’ll wish to work with Helcim immediately for those who’re seeking to make the most of its terminal trade.

Cellular app

As a part of the Helcim Commerce platform, you get entry to the Helcim cell app for iPhone, iPad or Android units. With this app, you need to use the cell card reader {hardware} to course of funds immediately in your cell gadget. Though you need to use the bodily cell card reader, you may as well manually enter buyer bank card info into your gadget. Helcim lets you obtain the app to a limiteless variety of units, and your knowledge will robotically sync throughout them.

Digital terminal

Along with the bodily terminal choices Helcim presents, its service provider companies additionally features a digital terminal so you may settle for funds in your pc. Utilizing its net interface, you may log in from any gadget that has web entry and authorize bank card transactions in actual time. With the digital terminal, you manually enter the client’s bank card info in addition to extra info (billing and transport addresses, invoicing, and many others.) for those who select to take action. You may ship buyer receipts through e mail or print them. The digital terminal additionally lets you carry out refunds and voids, arrange recurring funds, view transaction historical past and settle for other forms of fee (money, checks, financial institution deposits, ACH funds).

Level-of-sale (POS)

Level-of-sale performance is included as a part of the Helcim Commerce service provider platform. Utilizing the web-based model of Helcim Commerce or the cell app, you could have the flexibility to take a look at your clients and monitor stock, funds, gross sales tendencies and clients. You may obtain the cell app on as many units as you want, and your knowledge will robotically sync — plus, it is going to hook up with all the info saved within the Helcim Commerce platform. You may also create limitless consumer accounts for workers.

Helcim’s POS inclusion offers you the flexibility to customise your individual checkout, offering templates which you can alter and that can sync throughout all your units. Your Helcim point-of-sale can combine with all your completely different {hardware} choices: the cell card reader and different bodily terminals, in addition to suitable printers, money drawers and barcode readers.

Hosted fee pages

Settle for funds by yourself web site utilizing Helcim’s hosted fee pages. These pages mean you can settle for funds, register clients, save bank cards and subscribe customers to recurring fee plans. These fee pages are absolutely customizable: You may change the information fields in addition to the design. The hosted fee pages may even be used as a full buying cart system. You should utilize these pages so as to add “purchase buttons” to your web site with out having to allow the complete On-line Retailer. Prospects will be capable of add and take away objects from their cart, taxes and totals might be calculated and transport integration is supported.

Fee gateway API

If it’s good to add bank card processing to extra functions you are able to do so with Helcim’s fee gateway API. The fee gateway API lets you authorize funds, void transactions and handle your batches from the Helcim Commerce platform. You may combine this gateway with a buying cart, billing system or different suitable third-party software program.

Helcim Commerce

Helcim Commerce is the software program platform that connects all of those components of Helcim service provider companies. You may entry Helcim Commerce on the net or in your cell gadget utilizing the Helcim Commerce app. By way of this platform, you could have entry to your service provider account, all your fee processing capabilities and your point-of-sale system. Relying in your particular plan, Helcim Commerce additionally offers you entry to extra capabilities like on-line invoicing, a product catalog and stock administration system, a buyer administration system and credit-card vault, a subscription administration and recurring processing device, third-party integrations and a totally hosted on-line retailer.

Helcim Commerce permits for a limiteless variety of customers, and you may dictate consumer roles and supply enhanced consumer safety. You should utilize your Helcim Commerce account throughout a number of enterprise places, accessing all your info no matter the place you’re or what gadget you’re utilizing. You may absolutely customise your platform, from e mail templates to your CMS. Helcim Commerce additionally helps a number of service provider accounts on the platform.

Here is what’s included in every of the plan choices:

Helcim Retail Plan

This plan is for enterprise homeowners who function a brick-and-mortar retailer, like a retail store or restaurant. The Helcim Retail Plan contains the next:

    • Limitless customers and entry controls.

    • Superior reporting instruments.

    • Visa, MasterCard and Amex service provider account.

    • In-person bank card processing (EMV/Swipe).

  • Cellular apps and point-of-sale.

    • Product catalog and stock administration.

    • Invoicing, PDF and customized emails.

    • Buyer relationship supervisor.

    • Card vault and tokenization.

  • Safety and fraud prevention.

    • PCI Degree-1 hosted surroundings.

    • Information backups and redundancy.

Helcim On-line Plan

This plan, then again, is for enterprise homeowners who function an e-commerce enterprise. The Helcim On-line Plan contains:

    • Limitless customers and entry controls.

    • Superior reporting instruments.

    • Visa, MasterCard and Amex service provider account.

    • On-line and e-commerce bank card processing.

    • Helcim.js (developer device for including funds to your web site).

  • Cellular apps and point-of-sale.

    • Product catalog and stock administration.

    • Invoicing, PDF and customized emails.

    • On-line invoicing funds.

    • Buyer relationship supervisor

    • Card vault and tokenization

    • Self-service buyer portal

    • Area internet hosting and SSL certificates.

    • Third-party transport companies integration.

    • Recurring plans and subscriptions.

    • Prorated and metered billing.

  • Safety and fraud prevention.

    • PCI Degree-1 hosted surroundings.

    • Information backups and redundancy.

For those who want each retail and on-line capabilities, you should purchase each plans collectively. Then you definitely’ll have entry to all the options that Helcim service provider companies has to supply. Moreover, with any Helcim account, Helcim supplies 24/7 customer support, in addition to entry to assist assets and tutorials.

There are a couple of particular person items so as to add up when trying on the complete value of Helcim service provider companies. The last word worth of Helcim for your corporation might be made up of the price of your plan, your fee processing prices, any {hardware} you require and any extra service provider companies you want. Helcim is thought for its clear pricing, and all of its pricing info may be discovered on its web site. It doesn’t cost hidden charges, in contrast to many service provider service suppliers.

Plan pricing

Helcim plans run on a month-to-month fee system, that means you pay a set payment each month and should not caught in an prolonged contract. You may cancel your Helcim account at any time with out incurring a cancellation payment.

The Retail Plan prices $15 per thirty days and the On-line Plan prices $35 per thirty days. For those who want retail and on-line capabilities, you will get each plans for $50 per thirty days. For every plan, this month-to-month payment covers all the pieces included within the lists above.

Fee processing charges

Along with the price of your Helcim plan, you’ll additionally must pay the precise bank card processing charges. Helcim operates on an interchange-plus pricing construction, which it calls Value+. The time period Interchange-plus means you pay a selected charge plus cents per transaction above interchange (0.25% plus eight cents per transaction, for instance). The interchange charge varies relying on the cardboard issuer and might change 12 months to 12 months. With the Value+ mannequin, Helcim has a charge assure, that means it ensures that its margin won’t enhance for the lifetime of your account with them.

The precise Value+ margin that you just’ll pay relies upon each on your corporation (retail vs. e-commerce) and your gross sales quantity. E-commerce companies will usually pay the next charge than retail retailers, as a result of riskier nature of accepting funds on-line. Moreover, as your gross sales quantity will increase, your Value+ margin decreases — that means that Helcim presents volume-based processing reductions. That being stated, for retail companies, the best Value+ margin you’ll pay is 0.25% plus eight cents per transaction. For on-line companies, the best you’ll pay is 0.45% plus 25 cents per transaction. These “highest charges” will apply to companies processing as much as $25,000 in bank card gross sales per thirty days. The chart beneath reveals how the Value+ margin decreases as gross sales quantity will increase for retail and on-line companies. As you’ll see on the backside of the chart, Helcim additionally presents a reduced Value+ charge for registered charities.

Supply: Helcim

{Hardware}

If your corporation requires {hardware} to course of funds in-store, you should purchase this gear immediately from Helcim. The worth will depend upon which terminal you select — however costs vary from $30 (cell card reader) to $549 (long-range wi-fi terminal). Bear in mind, you may take part in Helcim’s terminal substitute program, when you’ve got a terminal that qualifies. For those who want extra POS {hardware}, like a money drawer or barcode scanner, you should purchase these from third-party sellers. Helcim lists all suitable {hardware} on its web site. In case you have {hardware} and wish to see if it’s suitable with Helcim, you need to use its assist pages or attain out to its customer support staff.

Extra service provider companies

Helcim presents a couple of supplemental service provider companies, as nicely. You may add a service provider ID, multi-currency processing, stage 3 knowledge processing and ACH processing, for related prices.

Supply: Helcim

Charges

Though Helcim doesn’t cost lots of the typical charges related to service provider service suppliers, it’s clear in regards to the 4 situations through which you’ll incur a payment. Dial authorization will incur a two cents payment per prevalence. Anytime it’s good to change your corporation checking account or enterprise title, it is going to value $25. Moreover, when you’ve got a transaction with non-sufficient funds, the payment will even be $25. In case you are PCI-non compliant after the 90-day grace interval, you’ll face a $60 payment. Lastly, when you’ve got a chargeback, you’ll must pay a $15 payment every time.

Transparency

Transparency might be the most important stand-out component of Helcim, particularly in comparison with different service provider service suppliers. Helcim lists all its pricing info on its web site and breaks down particular person prices for bank card processing and its completely different plans, even providing assets on particular interchange charges. Though the interchange-plus charges will not be probably the most reasonably priced for all companies, this clear mannequin is without doubt one of the finest choices you’ll obtain from a service provider service supplier.

Helcim can also be clear about its charges. The truth is, it doesn’t cost charges the place many different companies do, like for month-to-month minimums, setup or account cancellation. Moreover, PCI compliance is included as a part of all Helcim plans, which is one other frequent month-to-month value required by different suppliers.

Helcim offers potential and present customers entry to all of its pricing, making a foundation of belief with clients. Most Helcim evaluations on the web discuss in regards to the firm’s honesty, clear pricing and genuinely useful customer support.

All-inclusive platform

It’s exhausting to say you’ll discover a service provider companies supplier that features as many capabilities as Helcim. Not like many different fee processing firms, Helcim supplies you with a service provider account, bank card processing, a point-of-sale system, hosted fee pages, invoicing and enterprise administration instruments (the specifics, in fact, relying in your plan). Helcim service provider companies really is all-inclusive, providing you with one-key entry to the assets it’s good to run your corporation.

Value

Pricing can also be a possible con. Finally, what makes a superb or dangerous worth for a service provider service supplier will depend on your particular enterprise. For those who course of the next quantity in month-to-month gross sales, the pricing may truly be a optimistic for you. Nonetheless, Helcim’s pricing might be not probably the most cost-effective for smaller companies that course of decrease volumes every month. There are undoubtedly decrease interchange-plus charges accessible from different suppliers. On the finish of the day, you’ll must weigh the price of the particular processing charges of a service provider service supplier with the options it presents. Once more, smaller companies may not want all the options Helcim presents and may benefit extra from working with a point-of-sale processor like Sq..

Cellular card reader

This will not be a problem for e-commerce companies, however for those who’re processing in-person funds and wish to use your cell gadget, the Helcim cell card reader might provide you with some pause. Simply as Helcim evaluations level out the unimaginable transparency of this supplier, you’ll see this level as a frequent unfavourable. Helcim’s cell card reader shouldn’t be EMV compliant, which suggests it solely has swipe studying capabilities and doesn’t accommodate EMV chips. With out this compliance, you’re open to a better fraud danger when accepting bank cards in individual.

Moreover, to make use of the cell card reader, it’s important to use the headphone jack — which is problematic when you’ve got a more moderen iPhone or iPad mannequin, which not have the normal headphone jack performance with out an adapter. Though Helcim presents different {hardware} terminals, its cell card reader choice may be problematic for those who’re particularly in search of cell gadget capabilities.

Earlier than making your closing resolution, it is clever to discover another choices. Along with all-inclusive service provider service suppliers, you can also take a look at point-of-sale processors, fee gateways and fee processing firms relying in your particular wants.

Sq.

Sq. is an enormous title on the subject of bank card processing and POS techniques for small companies. Sq. has a variety of completely different software program choices — Sq. Level-of-Sale, Sq. for Retail, Sq. for Eating places and common Sq. Funds — relying on your corporation’s particular wants. Probably the most primary model of the Sq. Funds software program, Sq. Level-of-Sale, is free and contains extra stock and worker administration capabilities. No matter which Sq. software program you employ, you obtain a free magstripe bank card reader to course of in-person funds. You even have the flexibility to buy different {hardware} choices immediately from Sq..

All of Sq.’s bank card processing charges are set, however what you’re truly charged will depend on your particular person software program, {hardware} and transaction quantity. Though Sq. charges may be difficult, you could have the helpful skill to plug and play with the completely different Sq. choices to discover a resolution and common value that matches your wants. The entire of Sq.’s software program and {hardware} choices are on par with Helcim, nevertheless, Sq. additionally has industry-specific choices, which may be notably useful for retail shops and eating places. Moreover, Sq. has extra reasonably priced choices. For those who’re in search of a widely known, user-friendly resolution for fee processing and wish to select the specifics of what you’re getting, Sq. is a good choice.

Fee Depot

For another that extra immediately parallels Helcim, you may wish to contemplate Fee Depot. Fee Depot is a service provider account supplier that gives a wide range of fee processing choices for your corporation, together with a service provider account, fee gateway, digital terminal, POS system and extra. Not like Helcim’s one-stop-shop platform, nevertheless, lots of Fee Depot’s companies are offered at the side of exterior firms. The largest distinction between Helcim and Fee Depot is Fee Depot’s distinctive pricing construction.

Fee Depot presents 4 completely different membership plans. With every of those plans you pay a month-to-month subscription payment, and Fee Depot presents a no-percentage markup mannequin. This implies you’ll pay, for instance, interchange plus 0% plus 15 cents per transaction — as a substitute of paying a share plus a cent payment for every transaction, you’re solely paying that cent payment. The precise charge you’ll pay will rely in your subscription (every of which has a most month-to-month processing quantity), but it surely ranges from 15 cents per transaction to 5 cents per transaction.

Fee Depot doesn’t cost for PCI compliance, early cancellation, setup and has no hidden charges. Fee Depot, although, is missing the enterprise operations and administration instruments which are a part of the Helcim Commerce platform. For those who really feel that Helcim’s charges are too steep and don’t want its extra enterprise instruments, then Fee Depot could be a extra reasonably priced choice.

A model of this text was first printed on Fundera, a subsidiary of BaghdadTime.

Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *