<?php
/**
 * Added faced Page. */

/**
 * Add a new page under Appearance
 */
function faced_menu()
{
	add_theme_page(__('Faced Options', 'faced'), __('Faced Options', 'faced'), 'edit_theme_options', 'faced-theme', 'faced_page');
}
add_action('admin_menu', 'faced_menu');

/**
 * Enqueue styles for the help page.
 */
function faced_admin_scripts($hook)
{
	if ('appearance_page_faced-theme' !== $hook) {
		return;
	}
	wp_enqueue_style('faced-admin-style', get_template_directory_uri() . '/candidthemes/about/about.css', array(), '');
}
add_action('admin_enqueue_scripts', 'faced_admin_scripts');

/**
 * Add the theme page
 */
function faced_page()
{
?>
<div class="das-wrap">
  <div class="faced-panel header">
    <div class="faced-logo">
      <img class="ts-logo"
        src="<?php echo esc_url(get_template_directory_uri() . '/candidthemes/about/images/faced-logo.png'); ?>"
        alt="Logo">
    </div>
    <p>
      <?php esc_html_e('A perfect theme for blog and magazine site. With masonry layout and multiple blog page layout, this theme is the awesome and minimal theme.', 'faced'); ?>
    </p>
    <a class="btn btn-primary" href="<?php echo esc_url(admin_url('/customize.php?'));
?>"><?php esc_html_e('Theme Options - Click Here', 'faced'); ?></a>
  </div>

  <div class="das-wrap-inner">
    <div class="das-col das-col-7">
      <div class="faced-panel">
        <div class="faced-panel-content">
          <div class="theme-title">
            <h3><?php esc_html_e('Looking for theme Documentation?', 'faced'); ?></h3>
          </div>
          <a href="https://docs.candidthemes.com/faced/" target="_blank"
            class="btn btn-secondary"><?php esc_html_e('Documentation - Click Here', 'faced'); ?></a>
        </div>
      </div>
      <div class="faced-panel">
        <div class="faced-panel-content">
          <div class="theme-title">
            <h3><?php esc_html_e('If you like the theme, please leave a review', 'faced'); ?></h3>
          </div>
          <a href="https://wordpress.org/support/theme/faced/reviews/?filter=5" target="_blank"
            class="btn btn-secondary"><?php esc_html_e('Rate this theme', 'faced'); ?></a>
        </div>
      </div>
      <div class="faced-panel">
        <div class="faced-panel-content">
          <div class="theme-title">
            <h3><?php esc_html_e('View all Demos', 'faced'); ?></h3>
          </div>
          <a href="https://faced.candidthemes.com/" target="_blank"
            class="btn btn-secondary"><?php esc_html_e('Default Demo', 'faced'); ?></a>
          <a href="https://demo.candidthemes.com/faced-pro/" target="_blank"
            class="btn btn-secondary"><?php esc_html_e('Faced Pro', 'faced'); ?></a>
          <a href="https://demo.candidthemes.com/faced-rtl/" target="_blank"
            class="btn btn-secondary"><?php esc_html_e('Faced RTL', 'faced'); ?></a>
        </div>
      </div>
    </div>
    <div class="das-col das-col-3">
      <div class="upgrade-div">
        <p>
          <strong>
            <?php esc_html_e('Pro Features Include:', 'faced'); ?>
          </strong>
          </h4>
        <ul>
          <li>
          <?php esc_html_e('Author Information including social icons and descriptions.', 'faced'); ?>
          </li>
          <li>
          <?php esc_html_e('Write your own powered by text with link in HTML formats.', 'faced'); ?>
          </li>
          <li>
          <?php esc_html_e('Change search placeholder text easily and write your own text.', 'faced'); ?>            
          </li>
          <li>
          <?php esc_html_e('Make your menu sticky on the top for better user experience.', 'faced'); ?>  
          </li>
        </ul>
        <div class="text-center">
          <a href="https://www.candidthemes.com/themes/faced-pro/" target="_blank"
            class="btn btn-success"><?php esc_html_e('Upgrade Pro $49', 'faced'); ?></a>
        </div>
      </div>
      <div class="faced-panel">
        <div class="theme-title">
          <h3><?php esc_html_e('Important Links', 'faced'); ?></h3>
        </div>
        <div>
          <ul>
            <li>
              <a href="https://www.candidthemes.com/themes/faced/"><?php esc_html_e('Theme page', 'faced'); ?></a>
            </li>
            <li>
              <a href="https://www.candidthemes.com/support-tickets/"><?php esc_html_e('Support', 'faced'); ?></a>
            </li>
          </ul>
        </div>
      </div>
      <div class="faced-panel">
        <div class="theme-title">
          <h3><?php esc_html_e('Other Popular Theme', 'faced'); ?></h3>
        </div>
        <a href="https://www.candidthemes.com/themes/refined-magazine-free-magazine-wordpress-theme/" target="_blank"
          class="btn btn-success"><?php esc_html_e('Refined Magazine', 'faced'); ?></a>
      </div>
    </div>
  </div>
</div>
<?php
}
