Skip to content

Commit

Permalink
Simplify component generation; define default style
Browse files Browse the repository at this point in the history
  • Loading branch information
dlh01 committed May 8, 2024
1 parent 623fab2 commit d5b59c2
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 568 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public function __construct( $page ) {
'description' => __( 'If you have configured an In Article module via Customize JSON, the position that the module should be inserted into. Defaults to 3, which is after the third content block in the article body (e.g., the third paragraph).', 'apple-news' ),
],
'aside_component_class' => [
'label' => __( 'Aside Component CSS Class', 'apple-news' ),
'label' => __( 'Aside Content CSS Class', 'apple-news' ),
'type' => 'text',
'description' => __( 'Enter an optional CSS class that will be used to generate the Aside component. Do not prefix with a period.', 'apple-news' ),
'description' => __( 'Enter a CSS class name that will be used to generate the Aside component. Do not prefix with a period.', 'apple-news' ),
],
];

Expand All @@ -87,7 +87,7 @@ public function __construct( $page ) {
'settings' => [ 'html_support', 'in_article_position' ],
],
'aside' => [
'label' => __( 'Aside Component Settings', 'apple-news' ),
'label' => __( 'Aside Component', 'apple-news' ),
'settings' => [ 'aside_component_class' ],
]
];
Expand Down
Loading

0 comments on commit d5b59c2

Please sign in to comment.