for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Defines field variables to be used across multiple components.
*/
namespace Flynt\FieldVariables;
function getTheme()
{
return [
'label' => __('Theme', 'flynt'),
'name' => 'theme',
'type' => 'select',
'allow_null' => 0,
'multiple' => 0,
'ui' => 0,
'ajax' => 0,
'choices' => [
'' => __('(none)', 'flynt'),
'themeLight' => __('Light', 'flynt'),
'themeDark' => __('Dark', 'flynt'),
'themeHero' => __('Hero', 'flynt'),
]
];
}
function getIcon()
'label' => __('Icon', 'flynt'),
'name' => 'icon',
'type' => 'text',
'instructions' => __('Enter a valid icon name from <a href="https://feathericons.com">Feather Icons</a> (e.g. `check-circle`).', 'flynt'),
'required' => 1