PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.5.2
WP Coder – Insert & Manage Code Snippets v4.5.2
4.5.2 4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 All 40 releases
← All changes | includes/class-wow-company.php +37 -6 3.0.5 → 4.5.2 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3 3 * Wow Company Class
4 4 *
5 - * @package WOW_Plugin
5 + * @package WPCoder
6 6 * @subpackage Includes/Wow_Company
7 7 * @author Dmytro Lobov <[email protected]>
8 8 * @copyright 2019 Wow-Company
9 9 * @license GNU Publisher License
@@ -9,9 +9,9 @@
9 9 * @license GNU Publisher License
10 10 * @version 1.0
11 11 */
12 12
13 -use WPCoder\WOW_Plugin;
13 +use WPCoder\WPCoder;
14 14
15 15 defined( 'ABSPATH' ) || exit;
16 16
17 17 /**
@@ -30,9 +30,9 @@
30 30
31 31 }
32 32
33 33 public function admin_style( $hook ): void {
34 - wp_enqueue_style( 'wow-page', WOW_Plugin::url() . 'assets/css/admin-wow-company.css' );
34 + wp_enqueue_style( 'wow-page', WPCoder::url() . 'assets/css/admin-wow-company.css' );
35 35 }
36 36
37 37 /**
38 38 * Register the plugin menu on sidebar menu in admin panel.
@@ -46,16 +46,47 @@
46 46 add_menu_page( 'Wow Plugins', 'Wow Plugins', 'manage_options', 'wow-company', array(
47 47 $this,
48 48 'main_page',
49 49 ), $icon );
50 - add_submenu_page( 'wow-company', 'Welcome to Wow-Company', 'Welcome', 'manage_options', 'wow-company' );
50 + $menu_logo = $this->menu_logo();
51 + $menu_title = $menu_logo . __('Welcome', 'wp-coder');
52 +
53 + add_submenu_page( 'wow-company', 'Welcome to Wow-Company', $menu_title, 'manage_options', 'wow-company' );
51 54 }
52 55
56 + private function menu_logo() {
57 + return '<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
58 + width="15" height="15" viewBox="0 0 512.000000 512.000000"
59 + preserveAspectRatio="xMidYMid meet" class="wowp-menu-logo">
60 +
61 +<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
62 +fill="currentColor" stroke="none">
63 +<path d="M2493 5105 c-18 -8 -42 -29 -53 -47 -19 -32 -20 -49 -20 -538 l0
64 +-506 -772 -549 c-425 -303 -788 -563 -806 -579 -57 -50 -77 -100 -77 -192 0
65 +-72 3 -86 30 -129 36 -59 101 -110 155 -125 l40 -11 0 -1214 0 -1215 205 0
66 +205 0 0 1313 0 1312 183 129 c100 71 358 255 574 408 l392 279 556 -392 555
67 +-393 0 -1328 0 -1328 205 0 205 0 0 1215 0 1215 33 1 c79 2 169 61 212 140 25
68 +46 30 65 30 124 -1 58 -6 79 -30 124 -36 66 32 15 -903 676 l-722 510 0 88 0
69 +87 480 0 c264 0 480 2 480 5 0 3 -59 94 -131 201 l-131 196 131 197 131 196
70 +-480 3 c-450 2 -480 3 -480 20 0 32 -36 85 -71 104 -40 21 -82 22 -126 3z"/>
71 +<path d="M2141 2831 l-411 -266 3 -475 c2 -441 3 -478 21 -513 26 -52 65 -77
72 +139 -88 84 -12 1246 -11 1321 1 75 12 119 45 143 107 17 44 18 85 18 507 l0
73 +460 -335 218 c-184 120 -369 240 -411 267 l-76 49 -412 -267z m624 -353 l205
74 +-133 0 -227 0 -228 -415 0 -415 0 0 229 0 228 203 131 c111 73 205 132 210
75 +132 4 0 100 -60 212 -132z"/>
76 +<path d="M2451 1340 c-81 -12 -180 -43 -256 -83 -91 -47 -213 -174 -258 -267
77 +-68 -140 -70 -152 -75 -592 l-4 -398 211 0 211 0 0 368 c0 347 2 369 21 412
78 +82 182 334 219 463 68 64 -74 66 -91 66 -490 l0 -358 205 0 205 0 0 383 c0
79 +434 -5 472 -77 610 -123 236 -429 385 -712 347z"/>
80 +</g>
81 +</svg>';
82 + }
83 +
53 84 /**
54 85 * Include the main file
55 86 */
56 87 public function main_page(): void {
57 - require_once WOW_Plugin::dir() . 'includes/wow-company/main.php';
88 + require_once WPCoder::dir() . 'includes/wow-company/main.php';
58 89 }
59 90
60 91 public function footer_text( $footer_text ) {
61 92 global $pagenow;
@@ -61,9 +92,9 @@
61 92 global $pagenow;
62 93
63 94 if ( $pagenow === 'admin.php' && ( isset( $_GET['page'] ) && $_GET['page'] === 'wow-company' ) ) {
64 95 $text = __( 'Thank you for using <b>Our plugins</b>! Our website <a href="https://wow-estore.com/" target="_blank">Wow-Estore.com</a>',
65 - 'wpcoder' );
96 + 'wp-coder' );
66 97
67 98 return str_replace( '</span>', '', $footer_text ) . ' | ' . $text . '</span>';
68 99 }
69 100