File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,17 @@ protected function _toHTML() {
55
55
*/
56
56
protected function _renderGeneralSettings () {
57
57
self ::_renderGroupStart ( esc_html__ ( 'General Settings ' , 'visualizer ' ) );
58
- self ::_renderSectionStart ();
58
+
59
+ self ::_renderSectionStart ( esc_html__ ( 'Title ' , 'visualizer ' ), false );
60
+ self ::_renderTextItem (
61
+ esc_html__ ( 'Chart Title ' , 'visualizer ' ),
62
+ 'title ' ,
63
+ $ this ->title ,
64
+ esc_html__ ( 'Text to display in the back-end admin area. ' , 'visualizer ' )
65
+ );
66
+ self ::_renderSectionEnd ();
67
+
68
+ self ::_renderSectionStart ( esc_html__ ( 'Gauge Settings ' , 'visualizer ' ), false );
59
69
60
70
echo '<div class="viz-section-item"> ' ;
61
71
echo '<a class="more-info" href="javascript:;">[?]</a> ' ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class Visualizer_Render_Sidebar_Type_Geo extends Visualizer_Render_Sidebar {
38
38
* @access protected
39
39
*/
40
40
protected function _toHTML () {
41
+ $ this ->_renderGeneralSettings ();
41
42
$ this ->_renderMapSettings ();
42
43
$ this ->_renderColorAxisSettings ();
43
44
$ this ->_renderSizeAxisSettings ();
@@ -46,6 +47,26 @@ protected function _toHTML() {
46
47
$ this ->_renderAdvancedSettings ();
47
48
}
48
49
50
+ /**
51
+ * Renders general settings group.
52
+ *
53
+ * @since 1.0.0
54
+ *
55
+ * @access protected
56
+ */
57
+ protected function _renderGeneralSettings () {
58
+ self ::_renderGroupStart ( esc_html__ ( 'General Settings ' , 'visualizer ' ) );
59
+ self ::_renderSectionStart ( esc_html__ ( 'Title ' , 'visualizer ' ), false );
60
+ self ::_renderTextItem (
61
+ esc_html__ ( 'Chart Title ' , 'visualizer ' ),
62
+ 'title ' ,
63
+ $ this ->title ,
64
+ esc_html__ ( 'Text to display in the back-end admin area. ' , 'visualizer ' )
65
+ );
66
+ self ::_renderSectionEnd ();
67
+ self ::_renderGroupEnd ();
68
+ }
69
+
49
70
/**
50
71
* Renders map settings group.
51
72
*
Original file line number Diff line number Diff line change @@ -88,7 +88,9 @@ function visualizer_launch() {
88
88
if ( is_admin () || defined ( 'WP_TESTS_DOMAIN ' ) ) {
89
89
// set admin modules
90
90
$ plugin ->setModule ( Visualizer_Module_Admin::NAME );
91
- } else {
91
+ }
92
+
93
+ if ( ! is_admin () || defined ( 'WP_TESTS_DOMAIN ' ) ) {
92
94
// set frontend modules
93
95
$ plugin ->setModule ( Visualizer_Module_Frontend::NAME );
94
96
}
You can’t perform that action at this time.
0 commit comments