1 2 3 4 5 6 7 8 9 10 11 12 13 | //☆--オリジナルメニューを追加 function example_dashboard_widget_function() { echo ' <div class = "da d1" ><a href= "./post-new.php" >投稿</a></div> <div class = "da d1" ><a href= "./edit.php" >投稿一覧</a></div> <div class = "da d6" ><a href= "./admin.php?page=home/goldsource/www/temp/ecoroop/wp-content/themes/D/functions.php" >マニュアル</a></div> '; } function example_add_dashboard_widgets() { wp_add_dashboard_widget( 'example_dashboard_widget' , '更新' , 'example_dashboard_widget_function' ); } add_action( 'wp_dashboard_setup' , 'example_add_dashboard_widgets' ); //オリジナルメニューを追加--☆ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | //☆--オリジナルメニューを追加 function example_dashboard_widget_function() { echo ' <div class = "da d1" ><a href= "./post-new.php" >新規 JC NEWS</a></div> <div class = "da d1" ><a href= "edit.php?post_type=member_only" >新規 ファイルアップロード</a></div> <div class = "da d6" ><a href= "post-new.php?post_type=public_information" >新規 公開情報</a></div> <div style= "clear:both" ></div> '; } function example_add_dashboard_widgets() { wp_add_dashboard_widget( 'example_dashboard_widget' , '更新' , 'example_dashboard_widget_function' ); } add_action( 'wp_dashboard_setup' , 'example_add_dashboard_widgets' ); //オリジナルメニューを追加--☆ |
カスタムアドミンに
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | .da{ float : left ; padding-top : 10px ; padding-right : 5px ; padding-bottom : 10px ; padding-left : 5px ; } .da a{ padding : 15px ; background-color : #4091B4 ; color : #FFF ; -webkit- border-top-left-radius : 5px ; -webkit- border-top-right-radius : 5px ; -webkit- border-bottom-right-radius : 5px ; -webkit- border-bottom-left-radius : 5px ; -moz-border-radius-topleft: 5px ; -moz-border-radius-topright: 5px ; -moz-border-radius-bottomright: 5px ; -moz-border-radius-bottomleft: 5px ; } |