Skip to content

Commit

Permalink
refactor: assets name
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Jan 30, 2024
1 parent 9cfed4a commit ecf9dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions includes/feedzy-rss-feeds-limited-offers.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function prepare_black_friday_assets( $data ) {
array(
'bannerUrl' => FEEDZY_ABSURL . 'img/black-friday-banner.png',
'bannerAlt' => 'Feedzy Black Friday Sale',
'linkDashboard' => esc_url_raw( $data['feedzy_dashboard_url'] ),
'bannerStoreUrl' => esc_url_raw( $data['feedzy_dashboard_url'] ),
'linkGlobal' => '',
'urgencyText' => esc_html( $data['urgency_text'] ),
)
Expand Down Expand Up @@ -319,7 +319,7 @@ public function has_priority() {
*/
public function render_banner() {

if ( empty( $this->assets['linkDashboard'] ) || empty( $this->assets['bannerUrl'] ) ) {
if ( empty( $this->assets['bannerStoreUrl'] ) || empty( $this->assets['bannerUrl'] ) ) {
return;
}

Expand Down Expand Up @@ -385,7 +385,7 @@ public function render_banner() {
}
</style>
<div class="themeisle-sale-banner">
<a href="<?php echo esc_url( $this->assets['linkDashboard'] ); ?>" target="_blank" rel="external noreferrer noopener">
<a href="<?php echo esc_url( $this->assets['bannerStoreUrl'] ); ?>" target="_blank" rel="external noreferrer noopener">
<img src="<?php echo esc_url( $this->assets['bannerUrl'] ); ?>" alt="<?php echo esc_attr( ! empty( $this->assets['bannerAlt'] ) ? $this->assets['bannerAlt'] : '' ); ?>">
<div class="themeisle-sale-urgency">
<?php echo esc_html( ! empty( $this->assets['urgencyText'] ) ? $this->assets['urgencyText'] : '' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion includes/layouts/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="feedzy-container">
<?php if ( ! empty( $offer_data['active'] ) ) { ?>
<div class="feedzy-sale">
<a href="<?php echo esc_url( $offer_data['linkDashboard'] ); ?>">
<a href="<?php echo esc_url( $offer_data['bannerStoreUrl'] ); ?>">
<img src="<?php echo esc_url( $offer_data['bannerUrl'] ); ?>" alt="<?php echo esc_html( $offer_data['bannerAlt'] ); ?>">
<div class="feedzy-urgency"><?php echo esc_html( $offer_data['urgencyText'] ); ?></div>
</a>
Expand Down

0 comments on commit ecf9dfb

Please sign in to comment.