Skip to content

Commit d4bc419

Browse files
Merge pull request #196 from brainstormforce/codex/migrate-analytics-option-and-add-save-button
Improve advanced settings layout
2 parents 57d2f00 + 8bb7a5e commit d4bc419

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

admin/css/admin.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,24 @@ html{ display:block !important;}
2929
}
3030
div#tab-1 p,
3131
div#tab-4 p,
32-
div#tab-3 p {
32+
div#tab-3 p,
33+
div#tab-6 p{
34+
font-size: 14px;
35+
}
36+
37+
.schema-notice {
38+
border: 1px dashed #23282d45;
39+
padding: 2px 15px;
40+
margin: 0 5px;
41+
}
42+
43+
.panel-container.bsf-panel .updated p,
44+
.panel-container.bsf-panel .error p {
45+
font-size: 14px;
46+
}
47+
48+
.panel-container.bsf-panel .updated p,
49+
.panel-container.bsf-panel .error p {
3350
font-size: 14px;
3451
}
3552
.schema-notice {

admin/index.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -855,12 +855,12 @@ function rich_snippet_dashboard() {
855855
<form id="aiosrs_advanced_form" method="post">
856856
<input type="hidden" name="aiosrs_advanced_nonce_field" value="' . esc_attr( wp_create_nonce( 'aiosrs_advanced_form_action' ) ) . '" />
857857
<table class="bsf_metabox">
858-
<tr>
859-
<td>
860-
<input type="checkbox" name="aiosrs_analytics_optin" id="aiosrs_analytics_optin" value="yes" ' . checked( 'yes', get_option( 'aiosrs_analytics_optin', 'no' ), false ) . ' />
861-
<label for="aiosrs_analytics_optin">' . esc_html__( 'Enable feature', 'rich-snippets' ) . '</label>
862-
</td>
863-
</tr>
858+
<tr>
859+
<td>
860+
<label for="aiosrs_analytics_optin">' . esc_html__( 'Enable Anonymous Analytics', 'rich-snippets' ) . '</label>
861+
<input style="margin-left:10px;" type="checkbox" name="aiosrs_analytics_optin" id="aiosrs_analytics_optin" value="yes" ' . checked( 'yes', get_option( 'aiosrs_analytics_optin', 'no' ), false ) . ' />
862+
</td>
863+
</tr>
864864
<tr>
865865
<td><input type="submit" class="button-primary" name="aiosrs_advanced_submit" value="' . esc_html__( 'Save', 'rich-snippets' ) . '" /></td>
866866
</tr>
@@ -999,7 +999,7 @@ function rich_snippet_dashboard() {
999999
jQuery("#postbox-container-9").css("width","35%");
10001000
jQuery("#postbox-container-10").css("width","35%");
10011001
jQuery("#postbox-container-11").css({"width":"87%","padding-right":"2%"});
1002-
jQuery("#postbox-container-18").css("width","35%");
1002+
jQuery("#postbox-container-18").css({"width":"87%"});
10031003
jQuery(".postbox h3").click( function() {
10041004
jQuery(jQuery(this).parent().get(0)).toggleClass("closed");
10051005
});

0 commit comments

Comments
 (0)