diff --git a/src/config.php b/src/config.php index c475b0c..4c3e744 100644 --- a/src/config.php +++ b/src/config.php @@ -28,24 +28,24 @@ // Predefined colours 'colours' => [ [ - 'label' => 'red', - 'color' => '#ff0000', + 'label' => 'red', + 'color' => '#ff0000', 'default' => false, ], [ - 'label' => 'green', - 'color' => '#00ff00', + 'label' => 'green', + 'color' => '#00ff00', 'default' => false, ], [ - 'label' => 'blue', - 'color' => '#0000ff', + 'label' => 'blue', + 'color' => '#0000ff', 'default' => false, ], [ - 'label' => 'pink', - 'color' => '#ff00ff', + 'label' => 'pink', + 'color' => '#ff00ff', 'default' => false, - ] + ], ], ]; diff --git a/src/fields/ColourSwatches.php b/src/fields/ColourSwatches.php index e1fa804..44784df 100644 --- a/src/fields/ColourSwatches.php +++ b/src/fields/ColourSwatches.php @@ -132,8 +132,8 @@ public function getSettingsHtml() return Craft::$app->getView()->renderTemplate( 'colour-swatches/settings', [ - 'field' => $this, - 'config' => $config, + 'field' => $this, + 'config' => $config, 'configOptions' => Plugin::$plugin->settings->colours, ] ); diff --git a/src/models/Settings.php b/src/models/Settings.php index 23b4636..00fb2b2 100644 --- a/src/models/Settings.php +++ b/src/models/Settings.php @@ -7,4 +7,4 @@ class Settings extends Model { public $colours = []; -} \ No newline at end of file +}