Skip to content

Commit

Permalink
Add new Sortable Pill Checkbox Custom Control. Also tidied up some code.
Browse files Browse the repository at this point in the history
  • Loading branch information
maddisondesigns committed Oct 25, 2019
1 parent a78f211 commit f37f621
Show file tree
Hide file tree
Showing 8 changed files with 561 additions and 121 deletions.
150 changes: 137 additions & 13 deletions css/customizer.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function skyrocket_generate_social_urls() {
* Return an unordered list of linked social media icons, based on the urls provided in the Customizer Sortable Repeater
* This is a sample function to display some social icons on your site.
* This sample function is also used to show how you can call a PHP function to refresh the customizer preview.
* Add the following to header.php if you want to see the sample social icons displayed in the customizer preview and your theme.
* Add the following code to header.php if you want to see the sample social icons displayed in the customizer preview and your theme.
* Before any social icons display, you'll also need to add the relevent URL's to the Header Navigation > Social Icons section in the Customizer.
* <div class="social">
* <?php echo skyrocket_get_social_media(); ?>
Expand Down Expand Up @@ -225,6 +225,10 @@ function skyrocket_generate_defaults() {
'sample_single_accordion' => '',
'sample_alpha_color' => 'rgba(209,0,55,0.7)',
'sample_wpcolorpicker_alpha_color' => 'rgba(55,55,55,0.5)',
'sample_wpcolorpicker_alpha_color2' => 'rgba(33,33,33,0.8)',
'sample_pill_checkbox' => 'tiger,elephant,hippo',
'sample_pill_checkbox2' => 'captainmarvel,msmarvel,squirrelgirl',
'sample_pill_checkbox3' => 'author,categories,comments',
'sample_simple_notice' => '',
'sample_dropdown_select2_control_single' => 'vic',
'sample_dropdown_select2_control_multi' => 'Antarctica/McMurdo,Australia/Melbourne,Australia/Broken_Hill',
Expand Down
Loading

0 comments on commit f37f621

Please sign in to comment.