Changeset 2686337
- Timestamp:
- 03/01/2022 06:40:32 AM (4 years ago)
- Location:
- eyoung/trunk
- Files:
-
- 3 edited
-
classes/admin.class.php (modified) (2 diffs)
-
classes/front.class.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
eyoung/trunk/classes/admin.class.php
r2685694 r2686337 299 299 add_action('wp_ajax_eys_delChatAll',array(__CLASS__,'delChatAll')); 300 300 add_filter('plugin_action_links', array(__CLASS__, 'setQuickUrl'), 10, 2); 301 wp_enqueue_style( 'eyservice_eyui_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css'); 302 wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js'); 301 add_action('admin_enqueue_scripts', array(__CLASS__,'setLoadScripts')); 303 302 } 304 303 305 304 add_action('wp_ajax_eys_imageupload',array(__CLASS__,'setImageUpload')); 305 } 306 307 public static function setLoadScripts(){ 308 wp_enqueue_style( 'eyservice_eyui_admin_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css'); 309 wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js'); 306 310 } 307 311 … … 497 501 //通过页面别名来判断页面是否已经存在 498 502 if( strtolower( $page->post_name ) == strtolower( $slug ) ){ 503 return $page->ID; 499 504 $exists = true; 500 505 } -
eyoung/trunk/classes/front.class.php
r2685263 r2686337 479 479 480 480 $uinfo = self::getUserInfo(); 481 482 wp_enqueue_style( 'eyservice_eyui_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css');483 wp_enqueue_style( 'eyservice_service_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/service.css');484 wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js');485 481 486 482 add_action('wp_ajax_eys_setContent', array(__CLASS__, 'setAjx')); … … 517 513 add_filter('the_content', array(__CLASS__, 'cantEnterTips')); 518 514 add_action('wp_footer', array(__CLASS__, 'renderUserScript')); 519 } 515 } 516 add_action('wp_enqueue_scripts', array(__CLASS__,'setLoadScripts'), 11); 517 } 518 519 public static function setLoadScripts(){ 520 wp_enqueue_style( 'eyservice_eyui_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css'); 521 wp_enqueue_style( 'eyservice_service_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/service.css'); 522 wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js'); 520 523 } 521 524 -
eyoung/trunk/readme.txt
r2685763 r2686337 5 5 Requires at least: 4.8 6 6 Tested up to: 5.9 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.