<?php
/**
 * About page content
 */

function maglume_upselldata( $sanetags ) {
	$ublocks = array();
	$imagepath =  esc_url( hoot_data()->incuri . 'admin/images/' );
	$themename = !empty( $sanetags['name'] ) ? $sanetags['name'] : '';
	$urldemo = !empty( $sanetags['urldemo'] ) ? $sanetags['urldemo'] : '';

	$cc= 1;

	$ublocks[ 'grid-intro' ] = array( 'type' => 'gridbox' );

	$ublocks[ 'introwrap' ] = array(
		'type' => 'introexit',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => sprintf( esc_html__( 'Do more with %2$s%1$s %3$sPremium%4$s%5$s', 'magazine-lume' ), $themename, '<span>', '<strong>', '</strong>', '</span>' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'If you have enjoyed using %1$s, you are going to love %2$s%1$s Premium%3$s.%4$sIt is a robust upgrade to %1$s that gives you many useful features.', 'magazine-lume' ), $themename, '<strong>', '</strong>', '<br />' ),
		'cta' => array( 'demo', 'premium' ),
		);

	$ublocks[ 'grid-introend' ] = array( 'type' => 'gridboxend' );

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'style' ] = array(
		'type' => 'hero-top',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => sprintf( esc_html__( 'Complete %1$sStyle %2$sCustomization%3$s', 'magazine-lume' ), '<br />', '<strong>', '</strong>' ),
		/* Translators: 1 is the theme name */
		'desc' => sprintf( esc_html__( 'Explore a wide range of customization options in %1$s Premium to create a unique website that matches your vision. Give your site the personality it deserves with diverse styling possibilities.', 'magazine-lume' ), $themename ),
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'colors' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Custom Colors &amp; Backgrounds for Sections', 'magazine-lume' ),
		/* Translators: 1 is the theme name */
		'desc' => sprintf( esc_html__( 'Tailor your site\'s design by assigning custom colors and backgrounds to different site sections like the header, footer, logo area, menu dropdown, content area, page title sections, etc.%2$s%3$sClick here to see example of custom colors/styles applied using Premium Options%4$s', 'magazine-lume' ), $themename, '<hr>', '<a href="' . esc_url( $urldemo ) . 'style-customization-typography/" target="_blank">', '</a>' ),
		'img' => $imagepath . 'premium-colors.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'typo' ] = array(
		'type' => 'std',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => sprintf( esc_html__( 'Fonts and %1$sTypography Control%2$s', 'magazine-lume' ), '<span>', '</span>' ),
		'desc' => esc_html__( "Customize your site's typography by assigning different fonts, sizes, and colors to elements like the menu, topbar, logo, content headings, sidebar, footer, etc.", 'magazine-lume' ),
		'img' => $imagepath . 'premium-typography.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'gfonts' ] = array(
		'type' => 'std',
		'name' => esc_html__( '1600+ Google Fonts', 'magazine-lume' ),
		'desc' => esc_html__( "With access to over 1600 Google Fonts, you can easily select the perfect fonts to match your site's unique personality and style.", 'magazine-lume' ),
		'img' => $imagepath . 'premium-googlefonts.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'sliders' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Unlimites Sliders, Unlimites Slides', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'Create unlimited sliders with as many slides as you need using the powerful HootKit plugin in %1$s Premium.%2$sShowcase custom images with text, create carousels, or even display vertical sliding lists for posts and WooCommerce products.', 'magazine-lume' ), $themename, '<hr>' ),
		'img' => $imagepath . 'premium-sliders.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'carousels' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Image Carousels', 'magazine-lume' ),
		'desc' => esc_html__( 'Easily add carousel widgets to your posts, sidebar, front page, or footer. The drag-and-drop interface makes creating and managing carousels simple and hassle-free.', 'magazine-lume' ),
		'img' => $imagepath . 'premium-carousels.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'bloglayouts' ] = array(
		'type' => 'std',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => sprintf( esc_html__( 'Additional Blog Layouts (including pinterest %1$stype mosaic)%2$s', 'magazine-lume' ), '<span>', '</span>' ),
		/* Translators: 1 is the theme name */
		'desc' => sprintf( esc_html__( '%1$s Premium offers various layout options for your post archives, including a stunning mosaic-style layout inspired by Pinterest.', 'magazine-lume' ), $themename ),
		'img' => $imagepath . 'premium-blogstyles.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'widgets' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Custom Widgets', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'Unlock additional HootKit custom widgets crafted exclusively for %1$s Premium to enhance your site\'s content presentation.%2$sUse widgets like Buttons, Carousel Sliders, Carousel Posts Slider, Contact Info, Icon Lists, Notices, Number Blocks, Tabs, Toggles, Vcards, and more for a polished, professional look.', 'magazine-lume' ), $themename, '<hr>' ),
		'img' => $imagepath . 'premium-widgets.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'menuicons' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Menu Icons', 'magazine-lume' ),
		'desc' => esc_html__( 'Choose from over 900 icons to enhance your main navigation menu links.', 'magazine-lume' ),
		'img' => $imagepath . 'premium-menuicons.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'bgpatts' ] = array(
		'type' => 'std',
		'name' => esc_html__( '125+ Premium Background Patterns', 'magazine-lume' ),
		/* Translators: 1 is the theme name */
		'desc' => sprintf( esc_html__( '%1$s Premium includes a curated collection of additional premium background patterns to elevate your site\'s design. You can also upload custom background images or patterns to perfectly match your site\'s design.', 'magazine-lume' ), $themename ),
		'img' => $imagepath . 'premium-backgrounds.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'lightbox' ] = array(
		'type' => 'std',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => sprintf( esc_html__( 'Automatic Image Lightbox and %1$sWordPress Gallery%2$s', 'magazine-lume' ), '<span>', '</span>' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'Enable seamless automatic lightbox functionality for image links with %1$s Premium.%2$sAutomatically transform standard WordPress galleries into stunning sliders in a lightbox for a more dynamic visual experience.', 'magazine-lume' ), $themename, '<hr>' ),
		'img' => $imagepath . 'premium-lightbox.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'metaoptions' ] = array(
		'type' => 'side',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => sprintf( esc_html__( 'Post & Page %1$sSpecific Settings%2$s', 'magazine-lume' ), '<span>', '</span>' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => esc_html__( 'Optionally override global Customizer settings for an individual Post or Page. Adjust the sidebar layout, hide the title area, change feature image display, article background and width, add custom CSS, and configure other settings for each post or page.', 'magazine-lume' ),
		'img' => $imagepath . 'premium-postmeta.jpg',
		'img-bottom' => $imagepath . 'premium-metaoptions.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'custom404' ] = array(
		'type' => 'side',
		'name' => esc_html__( 'Custom 404 Error Page', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'Ditch the boring "Not Found" error page! With %1$s Premium, design a custom 404 error page with tailored messages, images, and links to keep your visitors engaged and guide them back to your content.', 'magazine-lume' ), $themename ),
		'img' => $imagepath . 'premium-404.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'scss' ] = array(
		'type' => 'side',
		'name' => esc_html__( 'Developers love {SCSS}', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'SCSS offers modularity and flexibility, making it a favorite for developers. %1$s Premium includes well-structured SCSS files for effortless customization and styling.', 'magazine-lume' ), $themename ),
		'img' => $imagepath . 'premium-scss.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'updates' ] = array(
		'type' => 'std',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => sprintf( esc_html__( 'Continued %1$sLifetime Updates', 'magazine-lume' ), '<br />' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'Active development of %1$s ensures your theme stays compatible with future WordPress versions for years to come so you don\'t have to worry about a broken website after an update.', 'magazine-lume' ), $themename ),
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'support' ] = array(
		'type' => 'std',
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'name' => esc_html__( 'Priority Support', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'Need assistance setting up %1$s? Upgrade to %1$s Premium for priority support from our growing team, ready to answer your questions.%2$sLooking for small modifications? Even if you\'re not a developer, our support staff can provide CSS snippets to help you achieve your desired look, and your changes will remain intact across updates.', 'magazine-lume' ), $themename, '<hr>' ),
		'img' => $imagepath . 'premium-support.jpg',
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$ublocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$ublocks[ 'exit' ] = array(
		'type' => 'introexit',
		'cta' => array( 'demo', 'premium' ),
		);
	$ublocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	return $ublocks;
}

function maglume_qstartdata( $sanetags ) {
	$qblocks = array();
	$imagepath =  esc_url( hoot_data()->incuri . 'admin/images/' );
	$slug = !empty( $sanetags['slug'] ) ? $sanetags['slug'] : '';
	$themename = !empty( $sanetags['name'] ) ? $sanetags['name'] : '';

	$cc= 1;

	$widgetslink = admin_url( 'widgets.php' );
	$customizelink = admin_url( 'customize.php' );
	$menulink = admin_url( 'nav-menus.php' );
	$settinglink = admin_url( 'options-reading.php' );
	$addpagelink = admin_url( 'post-new.php?post_type=page' );

	$qblocks[ 'grid-qblobs' ] = array( 'type' => 'gridgen' );
	$qblocks[ 'qblobs' ] = array(
		'type' => 'columns',
		'columns' => 3,
		'blocks' => array(
			array(
				'name' => '<span class="dashicons dashicons-admin-plugins"></span> ' . esc_html__( 'Install Plugins', 'magazine-lume' ),
				/* Translators: 1 is the theme name */
				'desc' => sprintf( esc_html__( 'Pair %1$s with its free plugins. Get additional features and customization options to fine-tune your site\'s design.', 'magazine-lume' ), $themename ),
				'class' => 'hootabt-highlight',
				'cta' => ! class_exists( 'HootKit' ) ? array(
						'url' => hoot_dashboard( 'url', array( 'tab' => 'plugins' ) ),
						'text' => esc_html__( 'Install Plugins', 'magazine-lume' ),
						'button' => 'secondary',
						'class' => 'hootabt-shortcut',
						'data-attr' => array( 'inpage' => 'plugins' ),
					) : array(
						'url' => '#',
						'text' => '<span class="dashicons dashicons-yes"></span> ' . esc_html__( 'Installed', 'magazine-lume' ),
						'button' => 'secondary',
						'class' => 'hootabt-success',
					),
			),
			array(
				'name' => '<span class="dashicons dashicons-art"></span> ' . esc_html__( 'Import a Ready-Made Website', 'magazine-lume' ),
				'desc' => esc_html__( 'Skip the setup hassle. Import a complete demo site in 1-click and start customizing right away.', 'magazine-lume' ),
				'class' => 'hootabt-standout',
				'cta' => array(
					'url' => hoot_dashboard( 'url', array( 'tab' => 'demoimport' ) ),
					'text' => esc_html__( 'Import Demo', 'magazine-lume' ),
					'button' => 'secondary',
					'class' => 'hootabt-shortcut',
					'data-attr' => array( 'inpage' => 'demoimport' ),
				),
			),
			array(
				'name' => '<span class="dashicons dashicons-awards"></span> ' . esc_html__( 'Upload Brand Logo', 'magazine-lume' ),
				'desc' => esc_html__( 'Start branding your new site by uploading your logo. Just add your logo and tweak default theme colors to match your brand.', 'magazine-lume' ),
				'class' => 'hootabt-highlight',
				'cta' => array(
					'url' => $customizelink . '?autofocus[section]=logo',
					'text' => esc_html__( 'Upload Logo', 'magazine-lume' ),
					'button' => 'secondary',
					'target' => '_blank',
				),
			),
		),
	);
	$qblocks[ 'grid-qblobsend' ] = array( 'type' => 'gridgenend' );

	$qblocks[ 'grid-intro' ] = array( 'type' => 'gridbox' );

	$qblocks[ 'introwrap' ] = array(
		'type' => 'introexit',
		'name' => '<img draggable="false" role="img" class="emoji" src="https://s.w.org/images/core/emoji/16.0.1/svg/1f4dd.svg" /> ' . esc_html__( 'Quick Start Guide', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'Follow these steps to quickly start developing your site.%1$sTo read the full documentation, or to get support from one of our support ninjas, click the buttons below.', 'magazine-lume' ), '<br />' ),
		'cta' => array( 'docs', 'support' ),
		);

	$qblocks[ 'grid-introend' ] = array( 'type' => 'gridboxend' );

	$qblocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$qblocks[ 'setupmenu' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Setup Main Navigation Menu', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( '%1$s
			%3$sGo to %10$swp-admin > Appearance > Menus%12$s%4$s
			%3$sClick on %5$screate a new menu%6$s. %9$s%7$s(If you already have an existing menu, jump to Step 6)%8$s%4$s
			%3$sGive your menu a name and click %5$sCreate Menu%6$s%4$s
			%3$sNow add the menu items you want to this menu.%4$s
			%3$sClick %5$sSave Menu%6$s%4$s
			%3$sClick %11$sManage Locations%12$s tab at the top%4$s
			%3$sSelect the menu you just created in the dropdown options.%4$s
			%3$sClick %5$sSave Changes%6$s%4$s
			%2$s
			', 'magazine-lume' ), '<ol>', '</ol>', '<li>', '</li>', '<strong>', '</strong>', '<em>', '</em>', '<br />',
										'<a href="' . esc_url( $menulink ) . '" target="_blank">',
										'<a href="' . esc_url( $menulink ) . '?action=locations" target="_blank">',
										'</a>'
				),
		);
	$qblocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$qblocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$qblocks[ 'fpblog' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Setup Frontpage and Blog Page', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( 'By default WordPress displays blog posts on the frontpage.%9$s%9$sHowever many users want a dedicated frontpage to welcome visitors and a separate page to display their blog posts. To set this up, follow these steps:%9$s%1$s
			%3$s%11$sCreate a New Page%12$s and lets give it the title %5$s"My Home Page"%6$s%4$s
			%3$s%11$sCreate another Page%12$s and lets give it the title %5$s"My Blog"%6$s%4$s
			%3$sGo to %10$swp-admin > Settings > Reading%12$s%4$s
			%3$sSelect the %5$sStatic Page%6$s option.%4$s
			%3$sSelect the pages you created above.%4$s
			%3$s%5$sSave%6$s the Changes.%4$s
			%2$s%7$s%5$sTip:%6$s You can add your new "My Home Page" and "My Blog" pages to the main menu we created in the above section.%8$s
			', 'magazine-lume' ), '<ol>', '</ol>', '<li>', '</li>', '<strong>', '</strong>', '<em>', '</em>', '<br />',
										'<a href="' . esc_url( $settinglink ) . '" target="_blank">',
										'<a href="' . esc_url( $addpagelink ) . '" target="_blank">',
										'</a>'
				),
		'img-bottom' => $imagepath . 'qstart-staticpage.png',
		);
	$qblocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$qblocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$qblocks[ 'fpcontent' ] = array(
		'type' => 'std',
		'name' => esc_html__( 'Add Content to Frontpage', 'magazine-lume' ),
		/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
		'desc' => sprintf( esc_html__( '%1$s
			%3$sGo to %10$swp-admin > Appearance > Widgets%12$s%4$s
			%3$sAdd Widgets to the %5$sFrontpage Widget Areas%6$s%4$s
			%3$sYou can further manage Frontpage modules in %11$swp-admin > Appearance > Customizer > Frontpage Modules%12$s.%4$s
			%2$s
			%13$sExample: Display a full width slider%14$s
			To display a full width slider on your frontpage, set one of the Frontpage Module to full width in %11$sCustomizer > Frontpage Modules%12$s.%9$sNow go to the %10$sWidgets%12$s screen and add a %5$sHootKit Slider%6$s widget to this area.
			', 'magazine-lume' ), '<ol>', '</ol>', '<li>', '</li>', '<strong>', '</strong>', '<em>', '</em>', '<hr>',
										'<a href="' . esc_url( $widgetslink ) . '" target="_blank">',
										'<a href="' . esc_url( $customizelink ) . '?autofocus[section]=frontpage" target="_blank">',
										'</a>', '<h4>', '</h4>'
				),
		'img-bottom' => $imagepath . 'qstart-fpmodule.png',
		);
	$qblocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	$qblocks[ 'grid-con'.$cc ] = array( 'type' => 'gridconbox' );
	$qblocks[ 'exit' ] = array(
		'type' => 'introexit',
		'cta' => array( 'docs', 'support' ),
		);
	$qblocks[ 'grid-conend'.$cc ] = array( 'type' => 'gridconboxend' ); $cc++;

	return $qblocks;
}

function maglume_pluginsdata( $sanetags ) {
	$pblocks = array();
	$slug = !empty( $sanetags['slug'] ) ? $sanetags['slug'] : '';

	$pblocks[ 'grid-qblobs' ] = array( 'type' => 'gridgen' );
	$pblocks[ 'pblobs' ] = array(
		'type' => 'columns',
		'columns' => 2,
		'blocks' => array(
			array(
				'name' => esc_html__( 'HootKit', 'magazine-lume' ),
				/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
				'desc' => sprintf( esc_html__( 'This plugin adds widgets and sliders developed and styled specifically for the theme. It comes with a collection of pre-built websites (demos) that you can install with a single click.%3$s%1$sView Details on wordpress.org%2$s', 'magazine-lume' ), '<a href="https://wordpress.org/plugins/hootkit/" target="_blank">', '</a>', '<hr>' ),
				'cta' => ! class_exists( 'HootKit' ) ? array(
						'url' => admin_url( 'plugin-install.php?s=hootkit&tab=search&type=term' ),
						'text' => file_exists( WP_PLUGIN_DIR . '/hootkit/hootkit.php' ) ? esc_html__( 'Activate HootKit', 'magazine-lume' ) : esc_html__( 'Install HootKit', 'magazine-lume' ),
						'button' => 'primary',
						'class' => 'hoot-btn-processplugin hoot-btn-smallmsg',
						'data-attr' => array( 'plugin' => 'hootkit', 'redirectdashtab' => 'plugins' ),
					) : array(
						'url' => '#',
						'text' => '<span class="dashicons dashicons-yes"></span> ' . esc_html__( 'Installed', 'magazine-lume' ),
						'button' => 'secondary',
						'class' => 'hootabt-success',
					),
			),
		),
	);
	$pblocks[ 'grid-qblobsend' ] = array( 'type' => 'gridgenend' );

	return $pblocks;
}

function maglume_require_hootkit( $sanetags, $context ) {
	$rhkblocks = array();
	$slug = !empty( $sanetags['slug'] ) ? $sanetags['slug'] : '';

	$context = empty( $context ) || ! is_string( $context ) ? 'hootkit' : $context;

	if ( $context === 'tools' ) :
		$rhkblocks[ 'grid-tc_na' ] = array( 'type' => 'gridgen' );
		$rhkblocks[ 'tc-na' ] = array(
			'type' => 'columns',
			'columns' => 2,
			'blocks' => array(
				array(
					'name' => '<span class="dashicons dashicons-migrate"></span> ' . esc_html__( 'Import Settings', 'magazine-lume' ),
					'desc' => esc_html__( 'Import Customizer Settings from any available wpHoot theme.', 'magazine-lume' ),
				),
				array(
					'name' => '<span class="dashicons dashicons-migrate"></span> ' . esc_html__( 'Export Settings', 'magazine-lume' ),
					'desc' => esc_html__( 'Export Customizer Settings for any available wpHoot theme.', 'magazine-lume' ),
				),
			),
		);
		$rhkblocks[ 'grid-tc_naend' ] = array( 'type' => 'gridgenend' );
	elseif ( $context === 'code' ) :
		$rhkblocks[ 'grid-tc_na' ] = array( 'type' => 'gridgen' );
		$rhkblocks[ 'tc-na' ] = array(
			'type' => 'columns',
			'columns' => 3,
			'blocks' => array(
				array(
					'name' => '<span class="dashicons dashicons-shortcode"></span> ' . esc_html__( 'Custom PHP', 'magazine-lume' ),
					'desc' => esc_html__( 'Insert Custom PHP Snippets.', 'magazine-lume' ),
				),
				array(
					'name' => '<span class="dashicons dashicons-table-row-before"></span> ' . esc_html__( 'Insert Header', 'magazine-lume' ),
					/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
					'desc' => sprintf( esc_html__( 'Insert Custom CSS/javascript in Header like %1$sGoogle Analytics%2$s, meta tags etc.', 'magazine-lume' ), '<strong>', '</strong>' ),
				),
				array(
					'name' => '<span class="dashicons dashicons-table-row-after"></span> ' . esc_html__( 'Insert Footer', 'magazine-lume' ),
					'desc' => esc_html__( 'Insert Custom code in Footer.', 'magazine-lume' ),
				),
			),
		);
		$rhkblocks[ 'grid-tc_naend' ] = array( 'type' => 'gridgenend' );
	endif;

	$name = '';
	$desc = !class_exists( 'HootKit' ) ? __( 'Please Install and Activate the HootKit plugin to view these Options.', 'magazine-lume' ) : __( 'Please update the HootKit plugin to view these options.', 'magazine-lume' );
	switch ( $context ) {
		case 'demoimport':
			$name = __( 'Import Demo Content', 'magazine-lume' );
			/* Translators: 1 is link break */
			$desc = !class_exists( 'HootKit' ) ? sprintf( __( 'Please Install and Activate the HootKit plugin.%1$sThis will enable pre-built websites (demos) that you can install with a single click.', 'magazine-lume' ), '<br />' ) : sprintf( __( 'Please update the HootKit plugin.%1$sThis will enable pre-built websites (demos) that you can install with a single click.', 'magazine-lume' ), '<br />' );
			break;
		case 'hootkit':
			$name = __( 'HootKit Settings', 'magazine-lume' );
			break;
		case 'tools':
			$name = __( 'Theme Tools', 'magazine-lume' );
			break;
		case 'code':
			$name = __( 'Custom Code', 'magazine-lume' );
			break;
		default:
			$name = __( 'HootKit Plugin Required', 'magazine-lume' );
	}

	$rhkblocks[ 'grid-reqhk_na' ] = array( 'type' => 'gridgen' );
	$rhkblocks[ 'reqhk' ] = array(
		'type' => 'columns',
		'columns' => 1,
		'blocks' => array(
			array(
				'name' => esc_html( $name ),
				'desc' => $desc,
				// This block will not exists if HootKit is active and has the needed version.
				'cta' => class_exists( 'HootKit' ) ? array(
						'url' => admin_url( 'update-core.php' ),
						'text' => esc_html__( 'Update HootKit to latest Version', 'magazine-lume' ),
						'button' => 'primary',
					) : array(
						'url' => hoot_dashboard( 'url', array( 'tab' => 'plugins' ) ),
						'text' => file_exists( WP_PLUGIN_DIR . '/hootkit/hootkit.php' ) ? esc_html__( 'Activate HootKit', 'magazine-lume' ) : esc_html__( 'Install HootKit', 'magazine-lume' ),
						'button' => 'primary',
						'class' => 'hoot-btn-processplugin hoot-btn-smallmsg',
						'data-attr' => array( 'plugin' => 'hootkit', 'redirectdashtab' => $context ),
					),
			),
		),
	);
	$rhkblocks[ 'grid-reqhk_naend' ] = array( 'type' => 'gridgenend' );

	return $rhkblocks;
}
