Skip to content

Commit 8609f98

Browse files
Merge pull request #1190 from Codeinwp/feat/banner
feat: add banner support
2 parents 937fb05 + 2785309 commit 8609f98

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,10 @@ public function renderLibraryPage() {
10931093

10941094
$this->load_survey();
10951095

1096+
if ( ! apply_filters( 'visualizer_is_business', false ) ) {
1097+
do_action( 'themeisle_sdk_load_banner', 'visualizer' );
1098+
}
1099+
10961100
$render->render();
10971101
}
10981102

classes/Visualizer/Render/Library.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ private function _renderLibrary() {
266266

267267
// Added by Ash/Upwork
268268
$filterBy = ! empty( $_GET['s'] ) ? sanitize_text_field( wp_unslash( $_GET['s'] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
269+
269270
// Added by Ash/Upwork
270271
echo $this->custom_css;
271272

@@ -276,6 +277,7 @@ private function _renderLibrary() {
276277
$this->getDisplayForm();
277278
echo '</div>';
278279
echo '<div id="visualizer-content-wrapper">';
280+
echo '<div id="tsdk_banner" class="visualizer-banner"></div>';
279281
if ( ! empty( $this->charts ) ) {
280282
echo '<div id="visualizer-library" class="visualizer-clearfix">';
281283
$count = 0;

css/library.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#visualizer-content-wrapper {
3535
padding: 0;
3636
}
37+
38+
.visualizer-banner {
39+
margin: 40px 0;
40+
}
41+
3742
#visualizer-library {
3843
width: auto;
3944
margin: 20px -10px;

images/black-friday.jpg

88.6 KB
Loading

0 commit comments

Comments
 (0)