| @@ -91,16 +91,8 @@ | ||
| 91 | 91 | */ |
| 92 | 92 | protected $_supportsAnimation = true; |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * Which library does this this chart implement? | |
| 96 | - * | |
| 97 | - * @access protected | |
| 98 | - * @var string | |
| 99 | - */ | |
| 100 | - protected $_library = null; | |
| 101 | - | |
| 102 | - /** | |
| 103 | 95 | * Constructor. |
| 104 | 96 | * |
| 105 | 97 | * @since 1.0.0 |
| 106 | 98 | * |
| @@ -131,10 +123,8 @@ | ||
| 131 | 123 | '' => '', |
| 132 | 124 | '1' => esc_html__( 'Yes', 'visualizer' ), |
| 133 | 125 | '0' => esc_html__( 'No', 'visualizer' ), |
| 134 | 126 | ); |
| 135 | - | |
| 136 | - $this->hooks(); | |
| 137 | 127 | } |
| 138 | 128 | |
| 139 | 129 | /** |
| 140 | 130 | * Renders chart title settings. |
| @@ -174,9 +164,9 @@ | ||
| 174 | 164 | self::_renderGroupEnd(); |
| 175 | 165 | |
| 176 | 166 | self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) ); |
| 177 | 167 | self::_renderSectionStart(); |
| 178 | - self::_renderSectionDescription( '<span class="viz-gvlink">' . sprintf( __( 'Configure the graph by providing configuration variables right from the %1$sGoogle Visualization API%2$s', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/gallery/?#configuration-options" target="_blank">', '</a>' ) . '</span>' ); | |
| 168 | + self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the', 'visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' ); | |
| 179 | 169 | |
| 180 | 170 | $example = ' |
| 181 | 171 | { |
| 182 | 172 | "vAxis": { |
| @@ -192,10 +182,9 @@ | ||
| 192 | 182 | esc_html__( 'Configuration', 'visualizer' ), |
| 193 | 183 | 'manual', |
| 194 | 184 | $this->manual, |
| 195 | 185 | sprintf( |
| 196 | - esc_html__( 'One per line in valid JSON (key:value) format e.g. %s', 'visualizer' ), | |
| 197 | - '<br><code>' . $example . '</code>' | |
| 186 | + esc_html__( 'One per line in valid JSON (key:value) format e.g. %s', 'visualizer' ), '<br><code>' . $example . '</code>' | |
| 198 | 187 | ), |
| 199 | 188 | '', |
| 200 | 189 | array( 'rows' => 5 ) |
| 201 | 190 | ); |
| @@ -756,14 +745,7 @@ | ||
| 756 | 745 | echo '<b>', $title, '</b>'; |
| 757 | 746 | echo '<textarea class="control-text" ', $attributes, ' name="', $name, '" placeholder="', $placeholder, '">', $value, '</textarea>'; |
| 758 | 747 | echo '<p class="viz-section-description">', $desc, '</p>'; |
| 759 | 748 | echo '</div>'; |
| 760 | - } | |
| 761 | - | |
| 762 | - /** | |
| 763 | - * Returns the library this chart implements. | |
| 764 | - */ | |
| 765 | - public function getLibrary() { | |
| 766 | - return $this->_library; | |
| 767 | 749 | } |
| 768 | 750 | |
| 769 | 751 | } |