Changeset 335456
- Timestamp:
- 06/26/2026 10:53:26 AM (4 months ago)
- Location:
- chromenews/6.2.1
- Files:
-
- 2 edited
- 1 copied
-
. (copied) (copied from chromenews/6.2.0 )
-
inc/template-functions.php (modified) (1 diff)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
chromenews/6.2.1/inc/template-functions.php
r316052 r335456 980 980 return $urls; 981 981 } 982 983 if (!function_exists('chromenews_athfb_add_custom_admin_menu')) { 984 985 function chromenews_athfb_add_custom_admin_menu($wp_admin_bar) 986 { 987 // Show only for admins (change capability if needed) 988 if (!current_user_can('manage_options')) { 989 return; 990 } 991 992 // Parent menu icon (optional) 993 $afthemes_icon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="50px" height="50px" viewBox="0 0 50 49" version="1.1"> 994 <g id="surface1"> 995 <path style=" stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1;" d="M 22.332031 2.984375 C 18.230469 3.53125 14.289062 5.273438 11.003906 7.976562 C 7.398438 10.933594 4.695312 15.402344 3.71875 20.03125 C 3.273438 22.113281 3.089844 24.902344 3.308594 26.105469 L 3.398438 26.570312 L 4.136719 25.5 C 5.496094 23.511719 6.90625 22.234375 8.808594 21.25 C 12.152344 19.507812 16.191406 19.433594 19.675781 21.042969 C 21.144531 21.722656 22.132812 22.417969 23.28125 23.550781 C 24.800781 25.058594 25.839844 26.851562 26.457031 29.078125 C 26.71875 29.980469 26.730469 30.34375 26.789062 37.324219 C 26.863281 45.164062 26.851562 44.992188 27.496094 45.554688 C 28.175781 46.136719 29.519531 46.34375 30.238281 45.980469 C 30.695312 45.75 31.199219 45.1875 31.386719 44.75 C 31.484375 44.46875 31.523438 40.671875 31.496094 29.394531 C 31.484375 15.804688 31.496094 14.332031 31.683594 13.625 C 32.621094 10.070312 36.253906 8.023438 39.882812 9.011719 C 40.378906 9.15625 40.824219 9.230469 40.871094 9.179688 C 41.007812 9.035156 38.996094 7.292969 37.683594 6.429688 C 35.574219 5.042969 33.496094 4.128906 30.941406 3.46875 C 28.410156 2.824219 24.976562 2.628906 22.332031 2.984375 Z M 22.332031 2.984375 "/> 996 <path style=" stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1;" d="M 36.375 12.859375 C 35.820312 13.140625 35.4375 13.527344 35.191406 14.0625 C 34.980469 14.515625 34.957031 14.988281 34.957031 21.152344 L 34.957031 27.761719 L 37.859375 27.761719 C 41.019531 27.761719 41.21875 27.800781 41.738281 28.445312 C 42.082031 28.882812 42.269531 29.613281 42.167969 30.164062 C 42.058594 30.734375 41.355469 31.5 40.785156 31.660156 C 40.527344 31.722656 39.144531 31.78125 37.710938 31.78125 L 35.078125 31.78125 L 35.078125 44.082031 L 35.796875 43.726562 C 36.191406 43.53125 37.019531 43.046875 37.625 42.632812 C 42.785156 39.234375 46.183594 33.546875 46.949219 27.03125 C 47.257812 24.328125 46.925781 20.738281 46.121094 18.339844 C 45.554688 16.644531 44.34375 14.125 44.082031 14.125 C 44.035156 14.125 44.046875 14.332031 44.109375 14.574219 C 44.171875 14.832031 44.21875 15.367188 44.21875 15.78125 C 44.21875 16.476562 44.195312 16.546875 43.761719 16.960938 C 43.21875 17.511719 42.578125 17.707031 41.871094 17.546875 C 40.785156 17.304688 40.402344 16.804688 40.007812 15.125 C 39.796875 14.175781 39.675781 13.894531 39.304688 13.492188 C 39.070312 13.222656 38.710938 12.933594 38.523438 12.835938 C 38.066406 12.601562 36.84375 12.617188 36.375 12.859375 Z M 36.375 12.859375 "/> 997 <path style=" stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1;" d="M 13.464844 23.878906 C 10.585938 24.160156 7.917969 26.082031 6.78125 28.714844 C 6.152344 30.136719 5.964844 32.535156 6.359375 34.035156 C 6.964844 36.359375 8.609375 38.355469 10.746094 39.367188 C 12.128906 40.027344 12.945312 40.207031 14.5 40.195312 C 17.859375 40.195312 20.675781 38.441406 22.046875 35.496094 C 22.628906 34.265625 22.789062 33.488281 22.789062 31.964844 C 22.777344 29.6875 22 27.800781 20.441406 26.242188 C 18.625 24.414062 16.230469 23.609375 13.464844 23.878906 Z M 13.464844 23.878906 "/> 998 <path style=" stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1;" d="M 22 41.644531 C 20.527344 42.730469 18.949219 43.449219 16.871094 43.957031 L 15.527344 44.289062 L 16.378906 44.675781 C 18.847656 45.820312 23.097656 46.808594 23.097656 46.246094 C 23.097656 45.992188 22.714844 41.339844 22.691406 41.242188 C 22.679688 41.195312 22.367188 41.378906 22 41.644531 Z M 22 41.644531 "/> 999 </g> 1000 </svg>'; 1001 1002 $parent_title = $afthemes_icon . esc_html__('ChromeNews Options', 'chromenews'); 1003 1004 // Add parent menu 1005 $wp_admin_bar->add_menu(array( 1006 'id' => 'chromenews-menu', 1007 'title' => $parent_title, 1008 'href' => admin_url('admin.php?page=chromenews-pro'), 1009 'meta' => array( 1010 'title' => esc_attr__('ChromeNews Options', 'chromenews'), // Tooltip 1011 // 'target' => '_blank', // Open in new tab 1012 ), 1013 )); 1014 1015 // Define submenu items 1016 $submenu_items = array( 1017 1018 1019 array( 1020 'id' => 'starter-sites-submenu', 1021 'title' => __('Starter Sites', 'chromenews'), 1022 'href' => admin_url('admin.php?page=starter-sites'), 1023 ), 1024 array( 1025 'id' => 'header-submenu', 1026 'title' => __('Header Builder', 'chromenews'), 1027 'href' => admin_url('customize.php?autofocus[section]=header_builder'), 1028 ), 1029 array( 1030 'id' => 'banner-submenu', 1031 'title' => __('Front-page Banner', 'chromenews'), 1032 'href' => admin_url('customize.php?autofocus[section]=frontpage_main_banner_section_settings'), 1033 ), 1034 array( 1035 'id' => 'footer-submenu', 1036 'title' => __('Footer Builder', 'chromenews'), 1037 'href' => admin_url('customize.php?autofocus[section]=footer_builder'), 1038 ), 1039 array( 1040 'id' => 'af-speed-submenu', 1041 'title' => __('Speed Booster', 'chromenews'), 1042 'href' => admin_url('admin.php?page=af-speed'), 1043 ), 1044 array( 1045 'id' => 'af-growth-submenu', 1046 'title' => __('Growth Tools', 'chromenews'), 1047 'href' => admin_url('admin.php?page=af-growth'), 1048 ), 1049 array( 1050 'id' => 'upgrade-submenu', 1051 'title' => __('Upgrade to Pro', 'chromenews'), 1052 'href' => "https://afthemes.com/products/chromenews-pro", 1053 ) 1054 ); 1055 1056 // Loop and add submenu items 1057 foreach ($submenu_items as $item) { 1058 $wp_admin_bar->add_menu(array( 1059 'id' => $item['id'], 1060 'title' => esc_html($item['title']), 1061 'href' => $item['href'], 1062 'parent' => 'chromenews-menu', 1063 'meta' => array( 1064 'title' => $item['title'], 1065 'target' => '_blank', // Open in new tab 1066 ), 1067 )); 1068 } 1069 } 1070 1071 // Hook into admin bar menu 1072 add_action('admin_bar_menu', 'chromenews_athfb_add_custom_admin_menu', 100); 1073 add_action('admin_enqueue_scripts', 'chromenews_admin_bar_styling'); 1074 add_action('wp_enqueue_scripts', 'chromenews_admin_bar_styling'); // Also in frontend if admin bar visible 1075 1076 function chromenews_admin_bar_styling() 1077 { 1078 if (is_admin_bar_showing()) { 1079 wp_add_inline_style( 1080 'admin-bar', 1081 ' 1082 /* Base parent menu style */ 1083 #wpadminbar #wp-admin-bar-chromenews-menu > .ab-item { 1084 background-color: #007ACC !important; 1085 color: #fff !important; 1086 font-weight: bold; 1087 // border-radius: 3px; 1088 padding: 0 6px; 1089 } 1090 1091 /* Hover, focus, active, and "hover" class from WP */ 1092 #wpadminbar #wp-admin-bar-chromenews-menu > .ab-item:hover, 1093 #wpadminbar #wp-admin-bar-chromenews-menu.hover > .ab-item, 1094 #wpadminbar #wp-admin-bar-chromenews-menu > .ab-item:focus, 1095 #wpadminbar #wp-admin-bar-chromenews-menu > .ab-item:active { 1096 background-color: #006eb8 !important; 1097 color: #fff !important; 1098 } 1099 1100 /* Visited state (rarely used in admin bar) */ 1101 #wpadminbar #wp-admin-bar-chromenews-menu > .ab-item:visited { 1102 color: #fff !important; 1103 } 1104 1105 /* Icon alignment */ 1106 // #wpadminbar #wp-admin-bar-chromenews-menu img { 1107 // vertical-align: middle; 1108 // margin-right: 4px; 1109 // color: #fff !important; 1110 // } 1111 #wpadminbar #wp-admin-bar-chromenews-menu svg { 1112 height:20px; 1113 width: 20px; 1114 fill: #fff; 1115 color: #fff; 1116 vertical-align: middle; 1117 margin-right: 5px; 1118 } 1119 #wpadminbar #wp-admin-bar-chromenews-menu:hover svg { 1120 fill: #ffcc00; 1121 } 1122 1123 #wpadminbar ul li#wp-admin-bar-upgrade-submenu{ 1124 background-color: #039562; 1125 margin-bottom: 0; 1126 } 1127 1128 #wpadminbar ul li#wp-admin-bar-upgrade-submenu a{ 1129 color:#ffffff; 1130 text-transform: uppercase; 1131 padding: 3px 10px; 1132 } 1133 1134 ' 1135 ); 1136 } 1137 } 1138 } -
chromenews/6.2.1/style.css
r334641 r335456 5 5 Author URI: https://www.afthemes.com/ 6 6 Description: ChromeNews is a powerful WordPress theme that's perfect for news, blogs, and magazines. The theme comes with a number of free starter sites that may be easily integrated to construct a fantastic news hub. The theme is fully widgetized, with 9+ custom widgets and widget sections, allowing users to customize site content. It also offers a light and dark color mode for viewing articles and blog posts in a fashionable manner. It also includes a variety of useful customizer choices for creating an aesthetically pleasing news site. You may set it up as you want and see how it looks before making any changes with the live customizer. It supports Gutenberg blocks and Elementor, as well as the WooCommerce plugin, allowing you to combine an online store with our newspaper theme. The RTL languages supported theme is appropriate for a news, journal, magazine, publishing, or review website, as well as blogging. It's well-designed to help the website rank higher in search engines, and users will receive excellent support from the staff if they run into any issues while using it. Find demos: https://afthemes.com/products/chromenews/#aft-view-starter-sites Videos: https://www.youtube.com/@wpafthemes/ Docs: https://docs.afthemes.com/chromenews/ 7 Version: 6.2. 07 Version: 6.2.1 8 8 Requires at least: 4.0 9 9 Requires PHP: 5.0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)