Skip to content

Commit d94383d

Browse files
Soare-Robert-DanielHardeepAsranidependabot[bot]pirate-bot
authored
feat: add SDK banner support
* feat: add update option to URL Crawl * feat: add SDK banner support * chore: add BF banner * Development (#24) * feat: add update option to URL Crawl * chore: add dependabot * chore(deps): bump yethee/tiktoken from 0.6.0 to 0.7.0 (#14) Bumps [yethee/tiktoken](https://github.com/yethee/tiktoken-php) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/yethee/tiktoken-php/releases) - [Commits](yethee/tiktoken-php@0.6.0...0.7.0) --- updated-dependencies: - dependency-name: yethee/tiktoken dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump yoast/phpunit-polyfills from 2.0.2 to 3.0.0 (#15) Bumps [yoast/phpunit-polyfills](https://github.com/Yoast/PHPUnit-Polyfills) from 2.0.2 to 3.0.0. - [Release notes](https://github.com/Yoast/PHPUnit-Polyfills/releases) - [Changelog](https://github.com/Yoast/PHPUnit-Polyfills/blob/3.x/CHANGELOG.md) - [Commits](Yoast/PHPUnit-Polyfills@2.0.2...3.0.0) --- updated-dependencies: - dependency-name: yoast/phpunit-polyfills dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @wordpress/icons from 9.49.0 to 10.11.0 (#22) * feat: add update option to URL Crawl * Create dependabot.yml * chore(deps): bump @wordpress/icons from 9.49.0 to 10.11.0 Bumps [@wordpress/icons](https://github.com/WordPress/gutenberg/tree/HEAD/packages/icons) from 9.49.0 to 10.11.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/icons/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/icons) --- updated-dependencies: - dependency-name: "@wordpress/icons" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Hardeep Asrani <[email protected]> Co-authored-by: themeisle[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): remove @dqbd/tiktoken * chore(deps): bump codeinwp/themeisle-sdk from 3.3.30 to 3.3.37 (#18) Bumps [codeinwp/themeisle-sdk](https://github.com/Codeinwp/themeisle-sdk) from 3.3.30 to 3.3.37. - [Release notes](https://github.com/Codeinwp/themeisle-sdk/releases) - [Changelog](https://github.com/Codeinwp/themeisle-sdk/blob/v3.3.37/CHANGELOG.md) - [Commits](Codeinwp/themeisle-sdk@v3.3.30...v3.3.37) --- updated-dependencies: - dependency-name: codeinwp/themeisle-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump phpstan/phpstan from 1.12.6 to 1.12.8 (#16) Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.12.6 to 1.12.8. - [Release notes](https://github.com/phpstan/phpstan/releases) - [Changelog](https://github.com/phpstan/phpstan/blob/2.0.x/CHANGELOG.md) - [Commits](phpstan/phpstan@1.12.6...1.12.8) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump tailwindcss from 3.4.4 to 3.4.14 (#19) Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.4 to 3.4.14. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.14/CHANGELOG.md) - [Commits](tailwindlabs/tailwindcss@v3.4.4...v3.4.14) --- updated-dependencies: - dependency-name: tailwindcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: themeisle[bot] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Hardeep Asrani <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: themeisle[bot] <[email protected]>
1 parent 88a1945 commit d94383d

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

assets/images/black-friday.jpg

89.9 KB
Loading

inc/Main.php

+5
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ public function enqueue_options_assets() {
169169
]
170170
)
171171
);
172+
173+
$has_pro = apply_filters( 'product_hyve_license_status', false );
174+
if ( ! $has_pro ) {
175+
do_action( 'themeisle_sdk_load_banner', 'hyve' );
176+
}
172177
}
173178

174179
/**

src/backend/App.js

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ const App = () => {
4141

4242
setSettings( response );
4343
setLoading();
44+
45+
const sdkEvent = new Event( 'themeisle:banner:init' );
46+
document.dispatchEvent( sdkEvent );
4447
};
4548

4649
fetchData();
@@ -80,6 +83,7 @@ const App = () => {
8083
)}
8184

8285
<div className="mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10">
86+
<div id="tsdk_banner" class="hyve-banner mb-4 md:mb-6 2xl:mb-10 hidden"></div>
8387
<div className="mx-auto max-w-270">
8488
<div className="grid grid-cols-6 gap-8">
8589
<Sidebar/>

src/backend/style.scss

+4
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,7 @@
7979
color: #333;
8080
}
8181
}
82+
83+
.hyve-banner:has(.tsdk-banner-cta) {
84+
display: block;
85+
}

0 commit comments

Comments
 (0)