class-admin-feed-columns.php
2 years ago
class-admin-menu.php
3 years ago
class-admin-notice.php
3 years ago
class-admin-page.php
3 years ago
class-admin-rateus-ajax.php
3 years ago
class-admin-rev.php
3 years ago
class-admin-tophead.php
3 years ago
class-admin-tophead.php
59 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WP_Rplg_Google_Reviews\Includes\Admin; |
| 4 | |
| 5 | class Admin_Tophead { |
| 6 | |
| 7 | public function register() { |
| 8 | add_action('wp_after_admin_bar_render', array($this, 'render')); |
| 9 | } |
| 10 | |
| 11 | public function render() { |
| 12 | $current_screen = get_current_screen(); |
| 13 | |
| 14 | if (empty($current_screen)) { |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | if (strpos($current_screen->id, 'grw') !== false) { |
| 19 | |
| 20 | $current_screen->render_screen_meta(); |
| 21 | |
| 22 | ?> |
| 23 | <div class="grw-tophead"> |
| 24 | <div class="grw-tophead-title"> |
| 25 | <!--span class="grw-tophead-logo" style="position: relative; margin-right: 10px; vertical-align: middle"> |
| 26 | <svg width="32" height="32" viewBox="0 0 1792 1792"><path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5t-30.5 14.5q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="#FABB08"></path></svg> |
| 27 | <svg width="18" height="18" viewBox="-5 -5 10 10" style="position: absolute;bottom: 2px;right: 4px;outline: 2px solid #fff;border-radius: 50%;background: #fff;"> |
| 28 | <defs> |
| 29 | <path id="a" d="M 3 0 A 3.1 3.1 0 0 0 0 -3 L 0 -5 A 5 5 0 0 1 5 0"/> |
| 30 | </defs> |
| 31 | <use xlink:href="#a" fill="#4285F4" transform="rotate(45)"/> |
| 32 | <use xlink:href="#a" fill="#34A853" transform="rotate(135)"/> |
| 33 | <use xlink:href="#a" fill="#FABB08" transform="rotate(225)"/> |
| 34 | <use xlink:href="#a" fill="#E94135" transform="rotate(315)"/> |
| 35 | </svg> |
| 36 | <svg width="12" height="12" viewBox="0 0 512 512" style="position: absolute; bottom: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%;"><path fill="#34A853" d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" style=" |
| 37 | "></path></svg> |
| 38 | </span!--> |
| 39 | <img src="<?php esc_attr_e(GRW_ASSETS_URL . 'img/logo.png') ?>" alt="logo"> |
| 40 | Google Reviews |
| 41 | </div> |
| 42 | <div class="grw-version"> |
| 43 | <div class="grw-version-free">Free Version: <?php echo GRW_VERSION; ?></div> |
| 44 | <div class="grw-version-upgrade"> |
| 45 | <span>Upgrade to business</span> |
| 46 | <div id="grw-upgrade-tips"> |
| 47 | <div class="grw-upgrade-head">Most easiest way to show all G reviews with business version</div> |
| 48 | No Place ID, No API key, No Billing needed, only Google My Business (GMB) owner account to show all G reviews with constantly auto synced |
| 49 | <!--div>30% off with promo code: GRGROW23</div--> |
| 50 | <a href="https://richplugins.com/business-reviews-bundle-wordpress-plugin?promo=GRGROW23" target="_blank">Upgrade today with 30% off!</a> |
| 51 | </div> |
| 52 | </div> |
| 53 | </div> |
| 54 | </div> |
| 55 | <?php |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 |