Skip to content

Commit

Permalink
feat: add banner support
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Nov 6, 2024
1 parent d2f5a6a commit 01ddc5c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/Visualizer/Module/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ public function renderLibraryPage() {

$this->load_survey();

if ( ! apply_filters( 'visualizer_is_business', false ) ) {
do_action( 'themeisle_sdk_load_banner', 'visualizer' );
}

$render->render();
}

Expand Down
2 changes: 2 additions & 0 deletions classes/Visualizer/Render/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ private function _renderLibrary() {

// Added by Ash/Upwork
$filterBy = ! empty( $_GET['s'] ) ? sanitize_text_field( wp_unslash( $_GET['s'] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification.Recommended

// Added by Ash/Upwork
echo $this->custom_css;

Expand All @@ -276,6 +277,7 @@ private function _renderLibrary() {
$this->getDisplayForm();
echo '</div>';
echo '<div id="visualizer-content-wrapper">';
echo '<div id="tsdk_banner" class="visualizer-banner"></div>';
if ( ! empty( $this->charts ) ) {
echo '<div id="visualizer-library" class="visualizer-clearfix">';
$count = 0;
Expand Down
5 changes: 5 additions & 0 deletions css/library.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
#visualizer-content-wrapper {
padding: 0;
}

.visualizer-banner {
margin: 40px 0;
}

#visualizer-library {
width: auto;
margin: 20px -10px;
Expand Down

0 comments on commit 01ddc5c

Please sign in to comment.