Skip to content

Commit

Permalink
Issue #34 - start to improve the Display select list descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Feb 4, 2020
1 parent c6751e9 commit 8372d13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions blocks/oik-content/bw_shortcodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const bw_shortcodes = {
//,"bw_alt_slogan":"Alternative slogan"
//,"bw_api":"Dynamic API syntax help"
//,"bw_archive":"Display category archives"
"bw_attachments":"List attachments with links"
"bw_attachments":"Attachments - List attachments with links"
//,"bw_autop":"Dynamically re-enable\/disable automatic paragraph generation"
//,"bw_background":"Use attached image as the background"
//,"bw_block":"Format an Artisteer block"
Expand Down Expand Up @@ -114,12 +114,12 @@ const bw_shortcodes = {
// ,"bw_graphviz":"Display a GraphViz diagram"
// ,"bw_group":"Display summary of selected items"
// ,"bw_iframe":"Embed a page in an iframe"
,"bw_images":"Display attached images"
,"bw_images":"Images - Display attached images"
// ,"bw_instagram":"Follow me on Instagram"
// ,"bw_jq":"Perform a jQuery method"
//,"bw_link":"Display a link to a post."
//,"bw_linkedin":"Follow me on LinkedIn"
// ,"bw_list":"Simple list of pages\/posts or custom post types"
,"bw_list":"List - Simple list of pages\/posts or custom post types"
//,"bw_login":"Display the login form or protected content"
//,"bw_loginout":"Display the Login or Logout link"
//,"bw_logo":"Display the company logo"
Expand All @@ -133,9 +133,9 @@ const bw_shortcodes = {
//,"bw_option":"Display the value of an option field"
// ,"bw_otd":"Display 'On this day' in history related content "
// ,"bw_page":"Add page button"
,"bw_pages":"Display page thumbnails and excerpts as links"
,"bw_pages":"Pages - Display page thumbnails and excerpts as links"
//,"bw_parent":"Display a link back to the parent page"
,"bw_pdf":"Display attached PDF files"
,"bw_pdf":"PDFs - Display attached PDF files"
//,"bw_picasa":"Follow me on Picasa"
// ,"bw_pinterest":"Follow me on Pinterest"
// ,"bw_plug":"Show plugin information"
Expand Down
4 changes: 2 additions & 2 deletions blocks/oik-content/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const edit= withInstanceId(
<InspectorControls>
<PanelBody>
<SelectControl label="Display" value={attributes.shortcode}
options={ map( bw_shortcodes, ( key, label ) => ( { value: label, label: label + ' - ' + key } ) ) }
options={ map( bw_shortcodes, ( key, label ) => ( { value: label, label: key + ' - ' + label } ) ) }
onChange={partial( onChangeAttr, 'shortcode' )}
/>

Expand Down Expand Up @@ -127,7 +127,7 @@ const edit= withInstanceId(

<div className="wp-block-oik-block-shortcode wp-block-shortcode">
<SelectControl label="Display" value={attributes.shortcode}
options={ map( bw_shortcodes, ( key, label ) => ( { value: label, label: label + ' - ' + key } ) ) }
options={ map( bw_shortcodes, ( key, label ) => ( { value: label, label: key + ' - ' + label } ) ) }
onChange={partial( onChangeAttr, 'shortcode' )}
/>

Expand Down

0 comments on commit 8372d13

Please sign in to comment.