Browse code

寄付リンク追加

nita authored on 2015/10/19 03:16:52
Showing 3 changed files
... ...
@@ -57,3 +57,13 @@
57 57
 .rc-rollback-datetime {
58 58
     display: inline-block;
59 59
 }
60
+
61
+.rc-donation {
62
+    float: left;
63
+    clear: both;
64
+    background-color: #faf096;
65
+    border: 1px solid #faa824;
66
+    border-radius: 3px;
67
+    padding: 0 12px;
68
+    color: #212121;
69
+}
... ...
@@ -46,6 +46,9 @@ class Class_Rucy_Setting {
46 46
 <div class="wrap">
47 47
     <h2><?php _e( 'Rucy Settings', RC_TXT_DOMAIN ); ?></h2>
48 48
     <p><?php _e( 'Configure content types reservation update.', RC_TXT_DOMAIN ); ?></p>
49
+    <div class="rc-donation">
50
+        <p><?php _e( 'Your contribution will continue to better this plugin.', RC_TXT_DOMAIN ); ?> <a href="http://www.amazon.co.jp/registry/wishlist/27FDI6LJU0X1O" class="button"><?php _e( 'Donate', RC_TXT_DOMAIN ); ?></a></p>
51
+    </div>
49 52
     <form method="post" action="#">
50 53
         <?php wp_nonce_field('update-options'); ?>
51 54
         <table class="form-table">
... ...
@@ -75,7 +75,7 @@ class Rucy_Class {
75 75
      */
76 76
     public function enqueue_style_script() {
77 77
         global $hook_suffix;
78
-        if ( in_array( $hook_suffix, array( 'post.php', 'post-new.php' ) ) ) {
78
+        if ( in_array( $hook_suffix, array( 'post.php', 'post-new.php', 'settings_page_rucy' ) ) ) {
79 79
             wp_register_style('rucy.css', RC_PLUGIN_URL . 'css/rucy.css',array(),'0.1.0');
80 80
             wp_register_script('rucy.js', RC_PLUGIN_URL . 'js/rucy.js', array('jquery'), '0.1.1');
81 81
             wp_enqueue_style('rucy.css');