| @@ -128,15 +128,11 @@ | ||
| 128 | 128 | self::_renderTextAreaItem( |
| 129 | 129 | esc_html__( 'Chart Description', 'visualizer' ), |
| 130 | 130 | 'description', |
| 131 | 131 | $this->description, |
| 132 | - sprintf( | |
| 133 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 134 | - esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ), | |
| 135 | - '<a href="https://developers.google.com/search/docs/data-types/dataset#dataset" target="_blank">', | |
| 136 | - '</a>' | |
| 137 | - ) | |
| 132 | + sprintf( esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ), '<a href="https://developers.google.com/search/docs/data-types/dataset#dataset" target="_blank">', '</a>' ) | |
| 138 | 133 | ); |
| 134 | + | |
| 139 | 135 | } |
| 140 | 136 | |
| 141 | 137 | /** |
| 142 | 138 | * Renders general settings block for horizontal axis settings. |
| @@ -153,33 +149,8 @@ | ||
| 153 | 149 | esc_html__( 'The title of the horizontal axis.', 'visualizer' ) |
| 154 | 150 | ); |
| 155 | 151 | |
| 156 | 152 | self::_renderSelectItem( |
| 157 | - esc_html__( 'Slanted Text', 'visualizer' ), | |
| 158 | - 'hAxis[slantedText]', | |
| 159 | - isset( $this->hAxis['slantedText'] ) ? $this->hAxis['slantedText'] : false, | |
| 160 | - array( | |
| 161 | - false => 'False', | |
| 162 | - true => 'True', | |
| 163 | - ), | |
| 164 | - '', | |
| 165 | - false | |
| 166 | - ); | |
| 167 | - | |
| 168 | - self::_renderTextItem( | |
| 169 | - esc_html__( 'Slanted Text Angle', 'visualizer' ), | |
| 170 | - 'hAxis[slantedTextAngle]', | |
| 171 | - isset( $this->hAxis['slantedTextAngle'] ) ? $this->hAxis['slantedTextAngle'] : 45, | |
| 172 | - '', | |
| 173 | - 45, | |
| 174 | - 'number', | |
| 175 | - array( | |
| 176 | - 'min' => 1, | |
| 177 | - 'step' => 15, | |
| 178 | - ) | |
| 179 | - ); | |
| 180 | - | |
| 181 | - self::_renderSelectItem( | |
| 182 | 153 | esc_html__( 'Text Position', 'visualizer' ), |
| 183 | 154 | 'hAxis[textPosition]', |
| 184 | 155 | isset( $this->hAxis['textPosition'] ) ? $this->hAxis['textPosition'] : '', |
| 185 | 156 | $this->_positions, |
| @@ -191,9 +162,9 @@ | ||
| 191 | 162 | 'hAxis[direction]', |
| 192 | 163 | isset( $this->hAxis['direction'] ) ? $this->hAxis['direction'] : '', |
| 193 | 164 | array( |
| 194 | 165 | '' => '', |
| 195 | - '1' => esc_html__( 'Default Direction', 'visualizer' ), | |
| 166 | + '1' => esc_html__( 'Identical Direction', 'visualizer' ), | |
| 196 | 167 | '-1' => esc_html__( 'Reverse Direction', 'visualizer' ), |
| 197 | 168 | ), |
| 198 | 169 | esc_html__( 'The direction in which the values along the horizontal axis grow.', 'visualizer' ) |
| 199 | 170 | ); |
| @@ -245,9 +216,9 @@ | ||
| 245 | 216 | isset( $this->hAxis['minorGridlines']['count'] ) ? $this->hAxis['minorGridlines']['count'] : '', |
| 246 | 217 | esc_html__( 'Specify 0 to disable the minor gridlines.', 'visualizer' ), |
| 247 | 218 | 0, |
| 248 | 219 | 'number', |
| 249 | - array( 'min' => 0, 'step' => 1 ) | |
| 220 | + array( 'min' => 0, 'max' => 1, 'step' => 1 ) | |
| 250 | 221 | ); |
| 251 | 222 | |
| 252 | 223 | self::_renderColorPickerItem( |
| 253 | 224 | esc_html__( 'Color', 'visualizer' ), |
| @@ -306,9 +277,9 @@ | ||
| 306 | 277 | 'vAxis[direction]', |
| 307 | 278 | isset( $this->vAxis['direction'] ) ? $this->vAxis['direction'] : '', |
| 308 | 279 | array( |
| 309 | 280 | '' => '', |
| 310 | - '1' => esc_html__( 'Default Direction', 'visualizer' ), | |
| 281 | + '1' => esc_html__( 'Identical Direction', 'visualizer' ), | |
| 311 | 282 | '-1' => esc_html__( 'Reverse Direction', 'visualizer' ), |
| 312 | 283 | ), |
| 313 | 284 | esc_html__( 'The direction in which the values along the vertical axis grow.', 'visualizer' ) |
| 314 | 285 | ); |
| @@ -361,9 +332,9 @@ | ||
| 361 | 332 | isset( $this->vAxis['minorGridlines']['count'] ) ? $this->vAxis['minorGridlines']['count'] : '', |
| 362 | 333 | esc_html__( 'Specify 0 to disable the minor gridlines.', 'visualizer' ), |
| 363 | 334 | 0, |
| 364 | 335 | 'number', |
| 365 | - array( 'min' => 0, 'step' => 1 ) | |
| 336 | + array( 'min' => 0, 'max' => 1, 'step' => 1 ) | |
| 366 | 337 | ); |
| 367 | 338 | |
| 368 | 339 | self::_renderColorPickerItem( |
| 369 | 340 | esc_html__( 'Color', 'visualizer' ), |
| @@ -459,8 +430,9 @@ | ||
| 459 | 430 | null |
| 460 | 431 | ); |
| 461 | 432 | |
| 462 | 433 | $this->_renderRoleField( $index ); |
| 434 | + | |
| 463 | 435 | } |
| 464 | 436 | |
| 465 | 437 | /** |
| 466 | 438 | * Renders format field for horizontal axis. |
| @@ -477,17 +449,15 @@ | ||
| 477 | 449 | sprintf( |
| 478 | 450 | '%s<br><br>%s<br><br>%s', |
| 479 | 451 | esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ), |
| 480 | 452 | sprintf( |
| 481 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 482 | - esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Note: Using the #%% percentage format will multiply your values by 100.', 'visualizer' ), | |
| 453 | + esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.', 'visualizer' ), | |
| 483 | 454 | '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', |
| 484 | 455 | '</a>' |
| 485 | 456 | ), |
| 486 | 457 | sprintf( |
| 487 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 488 | 458 | esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ), |
| 489 | - '<a href="https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax" target="_blank">', | |
| 459 | + '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', | |
| 490 | 460 | '</a>' |
| 491 | 461 | ) |
| 492 | 462 | ) |
| 493 | 463 | ); |
| @@ -508,19 +478,18 @@ | ||
| 508 | 478 | sprintf( |
| 509 | 479 | '%s<br><br>%s<br><br>%s', |
| 510 | 480 | esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ), |
| 511 | 481 | sprintf( |
| 512 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 513 | - esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Note: Using the #%% percentage format will multiply your values by 100.', 'visualizer' ), | |
| 482 | + esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.', 'visualizer' ), | |
| 514 | 483 | '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', |
| 515 | 484 | '</a>' |
| 516 | 485 | ), |
| 517 | 486 | sprintf( |
| 518 | - // translators: %1$s - HTML link tag, %2$s - HTML closing link tag. | |
| 519 | 487 | esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ), |
| 520 | - '<a href="https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax" target="_blank">', | |
| 488 | + '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', | |
| 521 | 489 | '</a>' |
| 522 | 490 | ) |
| 523 | 491 | ) |
| 524 | 492 | ); |
| 525 | 493 | } |
| 494 | + | |
| 526 | 495 | } |