← All changes
|
classes/Visualizer/Render/Sidebar/Columnar.php
+14
-47
3.10.11
→
1.4.2.2
View file →
| @@ -18,8 +18,10 @@ | ||
| 18 | 18 | // | MA 02110-1301 USA | |
| 19 | 19 | // +----------------------------------------------------------------------+ |
| 20 | 20 | // | Author: Eugene Manuilov <eugene@manuilov.org> | |
| 21 | 21 | // +----------------------------------------------------------------------+ |
| 22 | + | |
| 23 | + | |
| 22 | 24 | /** |
| 23 | 25 | * Base class for sidebar settings of columnar based charts. |
| 24 | 26 | * |
| 25 | 27 | * @category Visualizer |
| @@ -38,39 +40,39 @@ | ||
| 38 | 40 | * |
| 39 | 41 | * @access protected |
| 40 | 42 | */ |
| 41 | 43 | protected function _renderColumnarSettings() { |
| 42 | - self::_renderGroupStart( esc_html__( 'Bars Settings', 'visualizer' ) ); | |
| 44 | + self::_renderGroupStart( esc_html__( 'Bars Settings', Visualizer_Plugin::NAME ) ); | |
| 43 | 45 | self::_renderSectionStart(); |
| 44 | 46 | self::_renderSelectItem( |
| 45 | - esc_html__( 'Focus Target', 'visualizer' ), | |
| 47 | + esc_html__( 'Focus Target', Visualizer_Plugin::NAME ), | |
| 46 | 48 | 'focusTarget', |
| 47 | 49 | $this->focusTarget, |
| 48 | 50 | array( |
| 49 | 51 | '' => '', |
| 50 | - 'datum' => esc_html__( 'Focus on a single data point.', 'visualizer' ), | |
| 51 | - 'category' => esc_html__( 'Focus on a grouping of all data points along the major axis.', 'visualizer' ), | |
| 52 | + 'datum' => esc_html__( 'Focus on a single data point.', Visualizer_Plugin::NAME ), | |
| 53 | + 'category' => esc_html__( 'Focus on a grouping of all data points along the major axis.', Visualizer_Plugin::NAME ), | |
| 52 | 54 | ), |
| 53 | - esc_html__( 'The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse click.', 'visualizer' ) | |
| 55 | + esc_html__( 'The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse click.', Visualizer_Plugin::NAME ) | |
| 54 | 56 | ); |
| 55 | 57 | |
| 56 | - echo '<div class="viz-section-delimiter"></div>'; | |
| 58 | + echo '<div class="section-delimiter"></div>'; | |
| 57 | 59 | |
| 58 | 60 | self::_renderSelectItem( |
| 59 | - esc_html__( 'Is Stacked', 'visualizer' ), | |
| 61 | + esc_html__( 'Is Stacked', Visualizer_Plugin::NAME ), | |
| 60 | 62 | 'isStacked', |
| 61 | 63 | $this->isStacked, |
| 62 | 64 | $this->_yesno, |
| 63 | - esc_html__( 'If set to yes, series elements are stacked.', 'visualizer' ) | |
| 65 | + esc_html__( 'If set to yes, series elements are stacked.', Visualizer_Plugin::NAME ) | |
| 64 | 66 | ); |
| 65 | 67 | |
| 66 | - echo '<div class="viz-section-delimiter"></div>'; | |
| 68 | + echo '<div class="section-delimiter"></div>'; | |
| 67 | 69 | |
| 68 | 70 | self::_renderTextItem( |
| 69 | - esc_html__( 'Bars Opacity', 'visualizer' ), | |
| 71 | + esc_html__( 'Bars Opacity', Visualizer_Plugin::NAME ), | |
| 70 | 72 | 'dataOpacity', |
| 71 | 73 | $this->dataOpacity, |
| 72 | - esc_html__( 'Bars transparency, with 1.0 being completely opaque and 0.0 fully transparent.', 'visualizer' ), | |
| 74 | + esc_html__( 'Bars transparency, with 1.0 being completely opaque and 0.0 fully transparent.', Visualizer_Plugin::NAME ), | |
| 73 | 75 | '1.0' |
| 74 | 76 | ); |
| 75 | 77 | self::_renderSectionEnd(); |
| 76 | 78 | self::_renderGroupEnd(); |
| @@ -75,40 +77,5 @@ | ||
| 75 | 77 | self::_renderSectionEnd(); |
| 76 | 78 | self::_renderGroupEnd(); |
| 77 | 79 | } |
| 78 | 80 | |
| 79 | - | |
| 80 | - /** | |
| 81 | - * Renders general settings block for vertical axis settings. | |
| 82 | - * | |
| 83 | - * @since 1.4.0 | |
| 84 | - * | |
| 85 | - * @access protected | |
| 86 | - */ | |
| 87 | - protected function _renderVerticalAxisGeneralSettings() { | |
| 88 | - parent::_renderVerticalAxisGeneralSettings(); | |
| 89 | - self::_renderColorPickerItem( | |
| 90 | - esc_html__( 'Axis Text Color', 'visualizer' ), | |
| 91 | - 'vAxis[textStyle]', | |
| 92 | - isset( $this->vAxis['textStyle'] ) ? $this->vAxis['textStyle'] : null, | |
| 93 | - '#000' | |
| 94 | - ); | |
| 95 | - } | |
| 96 | - | |
| 97 | - /** | |
| 98 | - * Renders general settings block for vertical axis settings. | |
| 99 | - * | |
| 100 | - * @since 1.4.0 | |
| 101 | - * | |
| 102 | - * @access protected | |
| 103 | - */ | |
| 104 | - protected function _renderHorizontalAxisGeneralSettings() { | |
| 105 | - parent::_renderHorizontalAxisGeneralSettings(); | |
| 106 | - self::_renderColorPickerItem( | |
| 107 | - esc_html__( 'Axis Text Color', 'visualizer' ), | |
| 108 | - 'hAxis[textStyle]', | |
| 109 | - isset( $this->hAxis['textStyle'] ) ? $this->hAxis['textStyle'] : null, | |
| 110 | - '#000' | |
| 111 | - ); | |
| 112 | - } | |
| 113 | - | |
| 114 | -} | |
| 81 | +} | |