Changeset 3438893
- Timestamp:
- 01/13/2026 06:05:12 PM (3 months ago)
- Location:
- rank-authority
- Files:
-
- 8 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/icon.svg (added)
-
tags/1.0.1/rank-authority.php (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/uninstall.php (added)
-
trunk/assets (added)
-
trunk/assets/icon.svg (added)
-
trunk/rank-authority.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rank-authority/trunk/rank-authority.php
r3438857 r3438893 4 4 * Plugin URI: https://rankauthority.com/plugins/rankauthority 5 5 * Description: Secure API connector to publish posts / overwrite posts from the RA Dashboard to WordPress. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Rank Authority 8 8 * Author URI: https://rankauthority.com … … 28 28 add_action('admin_menu', [$this, 'admin_menu']); 29 29 add_action('admin_enqueue_scripts', [$this, 'admin_enqueue_scripts']); 30 add_action('admin_head', [$this, 'admin_menu_icon_css']); 30 31 add_action('rest_api_init', [$this, 'register_routes']); 31 32 add_action('wp_enqueue_scripts', [$this, 'enqueue_seo_scripts']); … … 55 56 /** Admin menu */ 56 57 public function admin_menu() { 58 // Get SVG icon URL 59 $icon_url = plugin_dir_url(__FILE__) . 'assets/icon.svg'; 60 57 61 add_menu_page( 58 62 'Rank Authority', … … 61 65 'rank-authority', 62 66 [$this, 'settings_page'], 63 'dashicons-admin-links'67 $icon_url 64 68 ); 69 } 70 71 /** Add custom menu icon CSS */ 72 public function admin_menu_icon_css() { 73 $icon_url = plugin_dir_url(__FILE__) . 'assets/icon.svg'; 74 ?> 75 <style type="text/css"> 76 #toplevel_page_rank-authority .wp-menu-image img { 77 width: 20px; 78 height: 20px; 79 padding: 0; 80 } 81 #toplevel_page_rank-authority .wp-menu-image { 82 background-image: url('<?php echo esc_url($icon_url); ?>') !important; 83 background-size: 20px 20px; 84 background-repeat: no-repeat; 85 background-position: center; 86 } 87 #toplevel_page_rank-authority .wp-menu-image:before { 88 display: none; 89 } 90 </style> 91 <?php 65 92 } 66 93 -
rank-authority/trunk/readme.txt
r3438857 r3438893 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.