Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard - Add translations #768

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions tpl/banner/cloud_promo.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,23 @@
<div class="litespeed-banner-promo-qc-content">

<div class="litespeed-banner-promo-qc-description">
<h2><?php echo __( 'You just unlocked a promotion from QUIC.cloud!', 'litespeed-cache' );?></h2>
<p>Spread the love and earn <strong><?php echo $this->_summary[ 'promo' ][ 0 ][ 'quota' ]; ?></strong> credits to use in our QUIC.cloud online services.</p>
<h2><?php echo __('You just unlocked a promotion from QUIC.cloud!', 'litespeed-cache'); ?></h2>
<p>
<a class="button button-primary" href="<?php echo $this->_summary[ 'promo' ][ 0 ][ 'url' ]; ?>" target="_blank">Send to twitter to get <?php echo $this->_summary[ 'promo' ][ 0 ][ 'quota' ]; ?> bonus</a>
<a href="https://www.quic.cloud/faq/#credit" target="_blank"><?php echo __( 'Learn more', 'litespeed-cache' );?></a>
<?php
sprintf(
_e('Spread the love and earn %s credits to use in our QUIC.cloud online services.', 'litespeed-cache'),
'<strong>' . $this->_summary['promo'][0]['quota'] . '</strong>'
); ?></p>
<p>
<a class="button button-primary" href="<?php echo $this->_summary['promo'][0]['url']; ?>" target="_blank">
<?php
sprintf(
__('Send to twitter to get %s bonus', 'litespeed-cache')
$this->_summary['promo'][0]['quota']
);
?>
</a>
<a href="https://www.quic.cloud/faq/#credit" target="_blank"><?php echo __('Learn more', 'litespeed-cache'); ?></a>
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion tpl/banner/new_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

<div>
<?php $dismiss_url = Utility::build_url(Core::ACTION_DISMISS, GUI::TYPE_DISMISS_PROMO, false, null, array('promo_tag' => 'new_version', 'later' => 1)); ?>
<span class="screen-reader-text">Dismiss this notice.</span>
<span class="screen-reader-text"><?php _e('Dismiss this notice.', 'litespeed-cache'); ?></span>
<a href="<?php echo $dismiss_url; ?>" class="litespeed-notice-dismiss">X</a>
</div>
</div>
4 changes: 2 additions & 2 deletions tpl/banner/slack.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<div>
<?php $dismiss_url = Utility::build_url( Core::ACTION_DISMISS, GUI::TYPE_DISMISS_PROMO, false, null, array( 'promo_tag' => 'slack' ) ) ; ?>
<span class="screen-reader-text">Dismiss this notice.</span>
<a href="<?php echo $dismiss_url ; ?>" class="litespeed-notice-dismiss">
Dismiss
<a href="<?php echo $dismiss_url; ?>" class="litespeed-notice-dismiss">
<?php _e('Dismiss', 'litespeed-cache'); ?>
</a>
</div>
</div>
26 changes: 20 additions & 6 deletions tpl/dash/dashboard.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,27 @@
<?php if (!$__cloud->activated()) : ?>
<div class="litespeed-dashboard-unlock">
<div>
<h3 class="litespeed-dashboard-unlock-title"><strong class="litespeed-qc-text-gradient">Accelerate, Optimize, Protect</strong></h3>
<p class="litespeed-dashboard-unlock-desc">Speed up your WordPress site even further with <strong>QUIC.cloud Online Services and CDN</strong>.</p>
<p>Free monthly quota available.</p>
<p><a class="button button-primary" href="<?php echo Utility::build_url(Router::ACTION_CLOUD, Cloud::TYPE_ACTIVATE); ?>"><span class="dashicons dashicons-yes"></span>Enable QUIC.cloud services</a></p>
<h3 class="litespeed-dashboard-unlock-title">
<strong class="litespeed-qc-text-gradient">
<?php _e('Accelerate, Optimize, Protect', 'litespeed-cache'); ?>
</strong>
</h3>
<p class="litespeed-dashboard-unlock-desc"><?php _e('Speed up your WordPress site even further with <strong>QUIC.cloud Online Services and CDN</strong>.', 'litespeed-cache'); ?></p>
<p>
<?php _e('Free monthly quota available.', 'litespeed-cache'); ?>
</p>
<p>
<a class="button button-primary" href="<?php echo Utility::build_url(Router::ACTION_CLOUD, Cloud::TYPE_ACTIVATE); ?>">
<span class="dashicons dashicons-yes"></span>
<?php _e('Enable QUIC.cloud services', 'litespeed-cache'); ?>
</a>
</p>
<p class="litespeed-dashboard-unlock-footer">
QUIC.cloud provides CDN and online optimization services, and is not required. You may use many features of this plugin without QUIC.cloud.
<a href="https://www.quic.cloud/" target="_blank">Learn More about QUIC.cloud</a><br>
<?php _e('QUIC.cloud provides CDN and online optimization services, and is not required. You may use many features of this plugin without QUIC.cloud.', 'litespeed-cache'); ?>
<a href="https://www.quic.cloud/" target="_blank">
<?php _e('Learn More about QUIC.cloud', 'litespeed-cache'); ?>
</a>
<br>
</p>
</div>
</div>
Expand Down
Loading