'Pre-built Starter sites', 'free' => '9', 'pro' => '41 (Including free demos)', ), array( 'label' => 'Pre-built Sections', 'free' => true, 'pro' => true, ), array( 'label' => 'Global Styles', 'free' => true, 'pro' => true, ), array( 'label' => 'Fully Customizable Header', 'free' => true, 'pro' => true, ), array( 'label' => 'Fully Customizable Footer', 'free' => true, 'pro' => true, ), array( 'label' => 'Advanced Color Options', 'free' => true, 'pro' => true, ), array( 'label' => 'Responsive Layout', 'free' => true, 'pro' => true, ), array( 'label' => 'Advanced Typography', 'free' => true, 'pro' => true, ), array( 'label' => 'Pre-built Inner Pages', 'free' => true, 'pro' => true, ), array( 'label' => 'Advanced blocks', 'free' => '20+', 'pro' => '40+', ), array( 'label' => 'Slider', 'free' => 'Basic', 'pro' => 'Advanced', ), array( 'label' => 'Team', 'free' => 'Basic', 'pro' => 'Advanced', ), array( 'label' => 'Testimonial', 'free' => 'Basic', 'pro' => 'Advanced', ), array( 'label' => 'Photo Gallery', 'free' => 'Basic', 'pro' => 'Advanced', ), array( 'label' => 'Popup Builder', 'free' => false, 'pro' => true, ), array( 'label' => 'Mega Menu', 'free' => false, 'pro' => true, ), array( 'label' => 'Sidebar Panel', 'free' => true, 'pro' => true, ), array( 'label' => 'Portfolio Builder', 'free' => 'Basic', 'pro' => 'Advanced', ), array( 'label' => 'WooCommerce Blocks', 'free' => '4 (Basic)', 'pro' => '10 (Including free)', ), array( 'label' => 'Product Slider', 'free' => false, 'pro' => true, ), array( 'label' => 'Featured Product Tabs', 'free' => false, 'pro' => true, ), array( 'label' => 'Product Quick View', 'free' => false, 'pro' => true, ), array( 'label' => 'Product Categories', 'free' => false, 'pro' => true, ), array( 'label' => 'All Product Reviews', 'free' => 'Basic', 'pro' => 'Advanced', ), array( 'label' => 'Advanced Sales Option', 'free' => false, 'pro' => true, ), array( 'label' => 'Post Magazine Blocks', 'free' => '2 (Basic)', 'pro' => '15 (Including free)', ), array( 'label' => 'Magazine Grid', 'free' => false, 'pro' => true, ), array( 'label' => 'Magazine List', 'free' => false, 'pro' => true, ), array( 'label' => 'Categorised Post Tabs', 'free' => false, 'pro' => true, ), array( 'label' => 'Featured Post Tabs', 'free' => false, 'pro' => true, ), array( 'label' => 'Advanced Categories', 'free' => false, 'pro' => true, ), array( 'label' => 'Post Slider', 'free' => false, 'pro' => true, ), array( 'label' => 'Related Post', 'free' => false, 'pro' => true, ), array( 'label' => 'Trending Post', 'free' => false, 'pro' => true, ), array( 'label' => 'Advertisement Block', 'free' => 'Basic', 'pro' => 'Advanced', ), array( 'label' => 'World Class Support', 'free' => true, 'pro' => true, ), ); /** * Outputs an icon or status message based on the given feature status. * * This function checks if the provided status is a boolean value. If it is, it displays * a check mark icon for a true value and a cross icon for a false value. If the status is * not a boolean, it outputs the status as a text string. * * The allowed tags and attributes are sanitized using `wp_kses()` to prevent unsafe content. * * @param mixed $status The status of the feature. It can be a boolean (true/false) or a string. * - If true, it shows a check mark icon. * - If false, it shows a cross icon. * - If a string, it displays the string as the status. * * @return void Echoes the HTML for the corresponding status icon or status text. * * @example * saaslauncher_get_feature_status_icon( true ); // Outputs a check mark icon. * saaslauncher_get_feature_status_icon( false ); // Outputs a cross icon. * saaslauncher_get_feature_status_icon( 'Coming Soon' ); // Outputs "Coming Soon" as a text status. */ function saaslauncher_get_feature_status_icon($status) { $allowed_tags = array( 'div' => array( 'class' => true, ), 'svg' => array( 'class' => true, 'width' => true, 'height' => true, 'viewBox' => true, 'fill' => true, 'xmlns' => true, ), 'path' => array( 'd' => true, 'fill' => true, ), ); if (is_bool($status)) { if (filter_var($status, FILTER_VALIDATE_BOOLEAN)) { $svg = '
'; echo wp_kses($svg, $allowed_tags); } else { $svg = '
'; echo wp_kses($svg, $allowed_tags); } } else { printf( /* translators: %s: Status string */ esc_html__('%s', 'saaslauncher'), esc_html($status) ); } } ?>