Forum
Addon settings checkbox CSS bug with hint
Hi,
Adding a new checkbox setting type using the API has some quirky CSS behaviour when adding an additional hint to it: https://www.dropbox.com/s/ke3qmfx50q4yh4h/settings-checkbox.png?dl=0
The code to activate this setting is:
$this->add_setting('root_analytics_cache_script', 'Cache analytics file', 'checkbox', 1, false, 'Caches the analytics.js file locally to take advantage of expires headers.');
Removing the last parameter (and the hint) displays as normal.
Perch info:
Perch Runway: 3.0.8, PHP: 7.0.13, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), root_analytics (2.0.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'root_analytics' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/James/Repositories/Root Studio/Perch-Google-Analytics/perch
PERCH_CORE: /Users/James/Repositories/Root Studio/Perch-Google-Analytics/perch/core
PERCH_RESFILEPATH: /Users/James/Repositories/Root Studio/Perch-Google-Analytics/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 32M, Max POST 32M, Memory: 512M, Total max file upload: 32M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Users/James/Repositories/Root Studio/Perch-Google-Analytics
HTTP_HOST: analytics.rootstudio.local
Browser: Safari Version 10.1 (12603.1.30.0.34)
Looks like it's missing a wrapper.