Skip to content

Commit

Permalink
v3.7.20 build
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeo committed Dec 23, 2021
1 parent 08fd477 commit f3a45cb
Show file tree
Hide file tree
Showing 19 changed files with 348 additions and 344 deletions.
1 change: 0 additions & 1 deletion assets/admin/css/hu_admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ a.czr-rating-link:hover {
color: #f07829;
font-weight: bold;
text-decoration: none;
font-size: 16px;
min-width: 80px;
/* font-size: 19px; */
}
Expand Down
156 changes: 78 additions & 78 deletions functions/admin/class-admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,93 +10,17 @@ class HU_admin_page {

function __construct () {
self::$instance =& $this;
//add welcome page in menu
add_action( 'admin_menu' , array( $this , 'hu_add_welcome_page' ));

//build the support url
//build the support url
$this -> support_url = HU_IS_PRO ? esc_url( sprintf( '%ssupport' , 'presscustomizr.com/' ) ) : esc_url('wordpress.org/support/theme/hueman');
//fix #wpfooter absolute positioning in the welcome and about pages
add_action( 'admin_print_styles' , array( $this, 'hu_fix_wp_footer_link_style') );
}

/**
* Add fallback admin page.
* @package Hueman
* @since Hueman 1.1
*/
function hu_add_welcome_page() {
$_name = __( 'About Hueman' , 'hueman' );
$_name = HU_IS_PRO ? sprintf( '%s Pro', $_name ) : $_name;

$theme_page = add_theme_page(
$_name, // Name of page
$_name, // Label in menu
'edit_theme_options' , // Capability required
'welcome.php' , // Menu slug, used to uniquely identify the page
array( $this , 'hu_welcome_panel' ) //function to be called to output the content of this page
);
//add welcome page in menu
add_action( 'admin_menu' , array( $this , 'hu_add_welcome_page' ));
}


/**
* Render welcome admin page.
* @package Hueman
* @since Hueman 3.0.4
*/
function hu_welcome_panel() {
$_theme_name = HU_IS_PRO ? 'Hueman Pro' : 'Hueman';

?>
<div class="hueman-admin-panel">
<div class="about-text tc-welcome">
<?php
$title = sprintf( '<h1 class="czr-welcome-title">%1$s %2$s %3$s :)</h1>',
__( "Thank you for using", "hueman" ),
$_theme_name,
HUEMAN_VER
);
echo convert_smilies( $title );
?>

<?php
if ( !HU_IS_PRO ) {
printf( '<h3>%1$s ❤️.</h3><h4>%2$s</h4><h4>%3$s 🙏</h4><h4 style="font-weight:bold">%4$s</h4>',
sprintf( __( "If you enjoy using the Hueman theme for your website, you will love %s", "hueman"),
sprintf( '<a style="color:#d87f00" href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">%2$s</a>', 'https://presscustomizr.com/hueman-pro/', __("Hueman Pro", "hueman") )
),
__("With Hueman Pro, you get premium features like infinite scrolling, footer and header customization, font customizer and many more. In addition, our premium support will be there to help you resolve any issue you may have with the theme. When installing Hueman Pro, all your previous options used in Hueman free are kept.", 'hueman'),
__('And of course your support allows us to keep the theme at the highest level for your website. Thank you!', 'hueman'),
'Limited offer : get 25% off with code EOY2021 at checkout.' . ' <a class="hu-pro-link-in-dashboard" href="https://presscustomizr.com/hueman-pro/" rel="noopener noreferrer" title="Go Pro" target="_blank">Go Pro</a> <span style="color: #f07829;" class="dashicons dashicons-external"></span>'
);
}
?>
</div>

<?php echo $this->hu_print_changelog(); ?>


<div class="czr-col-50 first-col">
<h3 style="font-size:1.3em;"><?php _e( 'Knowledge base','hueman' ); ?></h3>
<p><?php _e( "We have prepared a complete online documentation of the theme.",'hueman' ) ?></br>
<a class="button-primary review-hueman" href="<?php echo 'https://docs.presscustomizr.com/' ?>" target="_blank"><?php _e('Hueman Documentation','hueman'); ?></a></p>
<!-- Place this tag where you want the widget to render. -->
</div>

<div class="czr-col-50">
<h3 style="font-size:1.3em;"><?php _e( 'Share your feedback','hueman' ); ?></h3>
<p><?php _e( 'If you are happy with the theme, say it on wordpress.org and give Hueman a nice review!','hueman' ) ?></br>
<a class="button-primary review-hueman" href="<?php echo esc_url('wordpress.org/support/view/theme-reviews/hueman') ?>" target="_blank"><?php _e('Share a review','hueman'); ?></a></p>
</div>

<?php echo $this->hu_config_infos() ?>
</div><!-- //#hueman-admin-panel -->
<?php
}




/**
* Extract changelog of latest version from readme.txt file
*
Expand Down Expand Up @@ -292,5 +216,81 @@ function hu_fix_wp_footer_link_style() {
<?php
}



/**
* Add fallback admin page.
* @package Hueman
* @since Hueman 1.1
*/
function hu_add_welcome_page() {
$_name = __( 'About Hueman' , 'hueman' );
$_name = HU_IS_PRO ? sprintf( '%s Pro', $_name ) : $_name;

$theme_page = add_theme_page(
$_name, // Name of page
$_name, // Label in menu
'edit_theme_options' , // Capability required
'welcome.php' , // Menu slug, used to uniquely identify the page
array( $this , 'hu_welcome_panel' ) //function to be called to output the content of this page
);
}


/**
* Render welcome admin page.
* @package Hueman
* @since Hueman 3.0.4
*/
function hu_welcome_panel() {
$_theme_name = HU_IS_PRO ? 'Hueman Pro' : 'Hueman';

?>
<div class="hueman-admin-panel">
<div class="about-text tc-welcome">
<?php
$title = sprintf( '<h1 class="czr-welcome-title">%1$s %2$s %3$s :)</h1>',
__( "Thank you for using", "hueman" ),
$_theme_name,
HUEMAN_VER
);
echo convert_smilies( $title );
?>

<?php
if ( !HU_IS_PRO ) {
printf( '<h4>%1$s ❤️.</h4><h4>%2$s</h4><h4>%3$s 🙏</h4><h3 style="font-weight:bold">%4$s</h3>',
sprintf( __( "If you enjoy using the Hueman theme for your website, you will love %s", "hueman"),
sprintf( '<a style="color:#d87f00" href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">%2$s</a>', 'https://presscustomizr.com/hueman-pro/', __("Hueman Pro", "hueman") )
),
__("With Hueman Pro, you get premium features like infinite scrolling, footer and header customization, font customizer and many more. In addition, our premium support will be there to help you resolve any issue you may have with the theme. When installing Hueman Pro, all your previous options used in Hueman free are kept.", 'hueman'),
__('And of course your support allows us to keep the theme at the highest level for your website. Thank you!', 'hueman'),
'Limited offer : get 25% off with code HELLO2022.' . ' <a class="hu-pro-link-in-dashboard" href="https://presscustomizr.com/hueman-pro/" rel="noopener noreferrer" title="Go Pro" target="_blank">Go Pro</a> <span style="color: #f07829;font-size: 26px;" class="dashicons dashicons-external"></span>'
);
}
?>
</div>

<?php echo $this->hu_print_changelog(); ?>


<div class="czr-col-50 first-col">
<h3 style="font-size:1.3em;"><?php _e( 'Knowledge base','hueman' ); ?></h3>
<p><?php _e( "We have prepared a complete online documentation of the theme.",'hueman' ) ?></br>
<a class="button-primary review-hueman" href="<?php echo 'https://docs.presscustomizr.com/' ?>" target="_blank"><?php _e('Hueman Documentation','hueman'); ?></a></p>
<!-- Place this tag where you want the widget to render. -->
</div>

<div class="czr-col-50">
<h3 style="font-size:1.3em;"><?php _e( 'Share your feedback','hueman' ); ?></h3>
<p><?php _e( 'If you are happy with the theme, say it on wordpress.org and give Hueman a nice review!','hueman' ) ?></br>
<a class="button-primary review-hueman" href="<?php echo esc_url('wordpress.org/support/view/theme-reviews/hueman') ?>" target="_blank"><?php _e('Share a review','hueman'); ?></a></p>
</div>

<?php echo $this->hu_config_infos() ?>
</div><!-- //#hueman-admin-panel -->
<?php
}

}//end of class
endif;
Binary file modified languages/en_CA.mo
Binary file not shown.
80 changes: 40 additions & 40 deletions languages/en_CA.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Themes - Hueman\n"
"Report-Msgid-Bugs-To: https://presscustomizr.com/contact/\n"
"POT-Creation-Date: 2021-12-02 17:37:03+00:00\n"
"POT-Creation-Date: 2021-12-23 12:59:27+00:00\n"
"PO-Revision-Date: 2016-11-04 13:55+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -65,24 +65,51 @@ msgstr ""
msgid "Customize now"
msgstr "customizer"

#: functions/admin/class-admin-page.php:29
#: functions/admin/class-admin-page.php:62
msgid "Changelog"
msgstr ""

#: functions/admin/class-admin-page.php:66
msgid "Read the latest release notes"
msgstr "Read the latest release notes"

#: functions/admin/class-admin-page.php:92
#, fuzzy
msgid "System Information"
msgstr "System Informations"

#: functions/admin/class-admin-page.php:93
#, fuzzy
msgid "Please include the following information when posting support requests"
msgstr ""
"Please include the following informations when posting support requests"

#: functions/admin/class-admin-page.php:94
msgid ""
"To copy the system infos, click below then press Ctrl + C (PC) or Cmd + C "
"(Mac)."
msgstr ""
"To copy the system infos, click below then press Ctrl + C (PC) or Cmd + C "
"(Mac)."

#: functions/admin/class-admin-page.php:227
msgid "About Hueman"
msgstr ""

#: functions/admin/class-admin-page.php:55
#: functions/admin/class-admin-page.php:253
msgid "Thank you for using"
msgstr ""

#: functions/admin/class-admin-page.php:65
#: functions/admin/class-admin-page.php:263
msgid "If you enjoy using the Hueman theme for your website, you will love %s"
msgstr ""

#: functions/admin/class-admin-page.php:66
#: functions/admin/class-admin-page.php:264
#: functions/class-utils-settings-map.php:627
msgid "Hueman Pro"
msgstr ""

#: functions/admin/class-admin-page.php:68
#: functions/admin/class-admin-page.php:266
msgid ""
"With Hueman Pro, you get premium features like infinite scrolling, footer "
"and header customization, font customizer and many more. In addition, our "
Expand All @@ -91,66 +118,39 @@ msgid ""
"in Hueman free are kept."
msgstr ""

#: functions/admin/class-admin-page.php:69
#: functions/admin/class-admin-page.php:267
msgid ""
"And of course your support allows us to keep the theme at the highest level "
"for your website. Thank you!"
msgstr ""

#: functions/admin/class-admin-page.php:80
#: functions/admin/class-admin-page.php:278
msgid "Knowledge base"
msgstr ""

#: functions/admin/class-admin-page.php:81
#: functions/admin/class-admin-page.php:279
msgid "We have prepared a complete online documentation of the theme."
msgstr ""

#: functions/admin/class-admin-page.php:82
#: functions/admin/class-admin-page.php:280
#, fuzzy
msgid "Hueman Documentation"
msgstr "Read the documentation"

#: functions/admin/class-admin-page.php:87
#: functions/admin/class-admin-page.php:285
msgid "Share your feedback"
msgstr ""

#: functions/admin/class-admin-page.php:88
#: functions/admin/class-admin-page.php:286
msgid ""
"If you are happy with the theme, say it on wordpress.org and give Hueman a "
"nice review!"
msgstr ""

#: functions/admin/class-admin-page.php:89
#: functions/admin/class-admin-page.php:287
msgid "Share a review"
msgstr ""

#: functions/admin/class-admin-page.php:138
msgid "Changelog"
msgstr ""

#: functions/admin/class-admin-page.php:142
msgid "Read the latest release notes"
msgstr "Read the latest release notes"

#: functions/admin/class-admin-page.php:168
#, fuzzy
msgid "System Information"
msgstr "System Informations"

#: functions/admin/class-admin-page.php:169
#, fuzzy
msgid "Please include the following information when posting support requests"
msgstr ""
"Please include the following informations when posting support requests"

#: functions/admin/class-admin-page.php:170
msgid ""
"To copy the system infos, click below then press Ctrl + C (PC) or Cmd + C "
"(Mac)."
msgstr ""
"To copy the system infos, click below then press Ctrl + C (PC) or Cmd + C "
"(Mac)."

#: functions/admin/class-admin-update-notification.php:99
#, fuzzy
msgid "You have recently updated to"
Expand Down
Binary file modified languages/es_VE.mo
Binary file not shown.
Loading

0 comments on commit f3a45cb

Please sign in to comment.