Skip to content

Commit

Permalink
Merge pull request #35 from moderntribe/release/0.9.0
Browse files Browse the repository at this point in the history
Package version 0.9.0
  • Loading branch information
bookernath committed Jul 24, 2018
2 parents ad17709 + 0caf9d2 commit 12d03b1
Show file tree
Hide file tree
Showing 168 changed files with 6,823 additions and 1,874 deletions.
44 changes: 30 additions & 14 deletions admin-views/admin-dialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @package BigCommerce Admin
*
* @var string $query_builder_sidebar
* @var string $query_settings_sidebar
*/

?>
Expand All @@ -18,11 +19,34 @@

<section class="bc-shortcode-ui__products" data-js="bc-shortcode-ui-products">
<div class="bc-shortcode-ui__search">
<form action="<?php echo esc_url( home_url() ); ?>" method="get" enctype="multipart/form-data" data-js="bc-shortcode-ui-search" class="bc-shortcode-ui__searchform">
<label for="bcqb-input" class="screen-reader-text"><?php esc_html_e( 'Search for products', 'bigcommerce' ); ?></label>
<input id="bcqb-input" type="text" placeholder="<?php esc_attr_e( 'Product ID, Name, SKU', 'bigcommerce' ); ?>" class="bc-shortcode-ui__search-input" data-js="bcqb-input">
<button type="button" class="bc-shortcode-ui-search__submit-button" data-js="bcqb-submit"><?php esc_html_e( 'Search', 'bigcommerce' ); ?></button>
<button type="button" class="bc-shortcode-ui-search__clear-search" data-js="bcqb-clear"><?php esc_html_e( '(Clear Search)', 'bigcommerce' ); ?> </button>
<form
action="<?php echo esc_url( home_url() ); ?>"
method="get"
enctype="multipart/form-data"
data-js="bc-shortcode-ui-search"
class="bc-shortcode-ui__searchform"
>
<label
for="bcqb-input"
class="screen-reader-text"
><?php esc_html_e( 'Search for products', 'bigcommerce' ); ?></label>
<input
id="bcqb-input"
type="text"
placeholder="<?php esc_attr_e( 'Product ID, Name, SKU', 'bigcommerce' ); ?>"
class="bc-shortcode-ui__search-input"
data-js="bcqb-input"
>
<button
type="button"
class="bc-shortcode-ui-search__submit-button"
data-js="bcqb-submit"
><?php esc_html_e( 'Search', 'bigcommerce' ); ?></button>
<button
type="button"
class="bc-shortcode-ui-search__clear-search"
data-js="bcqb-clear"
><?php esc_html_e( '(Clear Search)', 'bigcommerce' ); ?> </button>
</form>
</div>

Expand All @@ -33,16 +57,8 @@
<div class="bc-shortcode-ui__product-query-loader"></div>
</section>

<aside class="bc-shortcode-ui__selected-products" data-js="bc-shortcode-ui-selected-products" role="complementary">
<h4 class="bc-shortcode-ui__selected-products-title"><?php _ex( 'Products:', 'header for selected products sidebar', 'bigcommerce' ); ?></h4>
<ul class="bc-shortcode-ui__products-list" data-js="bc-shortcode-ui-product-list"></ul>
</aside>
<?php echo $query_settings_sidebar; ?>

<section class="bc-shortcode-ui__actions">
<button class="button button-primary button-large" data-js="bc-shortcode-ui-embed-button">
<?php esc_html_e( 'Embed Product(s)', 'bigcommerce' ); ?>
</button>
</section>
</div>

</section>
Expand Down
130 changes: 130 additions & 0 deletions admin-views/query-settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<?php
/**
* Admin UI Query Settings Template.
*
* @package BigCommerce Admin
*
* @var string $posts_per_page
*/

?>

<aside
class="bc-shortcode-ui__settings"
data-js="bc-shortcode-ui-settings"
role="complementary"
>

<section class="bc-shortcode-ui__settings-header" data-js="bc-shortcode-ui-settings-header">
<div class="bc-shortcode-ui__default-header active">
<h2><?php echo esc_html_x( 'Embed Big Commerce Products', 'default settings sidebar header', 'bigcommerce' ); ?></h2>
<p><?php echo esc_html_x( 'Customize your embedded products by selecting brands, categories or individual products.', 'description for dynamic listing terms sidebar', 'bigcommerce' ); ?></p>
</div>

<div class="bc-shortcode-ui__dynamic-listing-header">
<h4 class="bc-shortcode-ui__settings-title"><?php echo esc_html_x( 'Dynamic Listing', 'header for dynamic listing terms sidebar', 'bigcommerce' ); ?></h4>
<p><?php echo esc_html_x( 'Create a product loop with your current search terms.', 'description for dynamic listing terms sidebar', 'bigcommerce' ); ?></p>
</div>

<div class="bc-shortcode-ui__manual-listing-header">
<h4 class="bc-shortcode-ui__settings-title"><?php echo esc_html_x( 'Manual Selection', 'header for selected products sidebar', 'bigcommerce' ); ?></h4>
<p><?php echo esc_html_x( 'Manually embed products from your Big Commerce inventory.', 'description for dynamic listing terms sidebar', 'bigcommerce' ); ?></p>
</div>
</section>

<section class="bc-shortcode-ui__selections" data-js="bc-shortcode-ui-selections">
<div class="bc-shortcode-ui__selected-terms" data-js="bc-shortcode-ui-selected-terms">
<ul class="bc-shortcode-ui__terms-list" data-js="bc-shortcode-ui-terms-list"></ul>
<div class="bc-shortcode-ui__overflow-mask"></div>
</div>

<div class="bc-shortcode-ui__selected-products" data-js="bc-shortcode-ui-selected-products">
<ul class="bc-shortcode-ui__products-list" data-js="bc-shortcode-ui-product-list"></ul>
<div class="bc-shortcode-ui__overflow-mask"></div>
</div>
</section>

<section class="bc-shortcode-ui__actions" data-js="bc-shortcode-ui-display-settings">
<h4 class="bc-shortcode-ui__settings-title"><?php echo esc_html_x( 'Display Settings', 'header for display settings sidebar', 'bigcommerce' ); ?></h4>
<div class="bc-shortcode-ui__display-settings">
<div class="bc-shortcode-ui__product-order">
<span class="bc-shortcode-ui__field-label"><?php esc_html_e( 'Product Order:', 'bigcommerce' ); ?></span>
<label for="bc-shortcode-ui__product-order--asc">
<input
type="radio"
name="bc-shortcode-ui__product-order"
id="bc-shortcode-ui__product-order--asc"
value="asc"
>
<span class="bc-shortcode-ui__field-label"><?php esc_html_e( 'Ascending', 'bigcommerce' ); ?></span>
</label>
<label for="bc-shortcode-ui__product-order--desc">
<input
type="radio"
name="bc-shortcode-ui__product-order"
id="bc-shortcode-ui__product-order--desc"
value="desc"
>
<span class="bc-shortcode-ui__field-label"><?php esc_html_e( 'Descending', 'bigcommerce' ); ?></span>
</label>
</div>

<div class="bc-shortcode-ui__product-orderby">
<span class="bc-shortcode-ui__field-label"><?php esc_html_e( 'Order By:', 'bigcommerce' ); ?></span>
<label for="bc-shortcode-ui__product-orderby--title">
<input
type="radio"
name="bc-shortcode-ui__product-orderby"
id="bc-shortcode-ui__product-orderby--title"
value="title"
>
<span class="bc-shortcode-ui__field-label"><?php esc_html_e( 'Title', 'bigcommerce' ); ?></span>
</label>
<label for="bc-shortcode-ui__product-orderby--date">
<input
type="radio"
name="bc-shortcode-ui__product-orderby"
id="bc-shortcode-ui__product-orderby--date"
value="date"
>
<span class="bc-shortcode-ui__field-label"><?php esc_html_e( 'Date', 'bigcommerce' ); ?></span>
</label>
</div>

<div class="bc-shortcode-ui__pagination">
<label for="bc-shortcode-ui__posts-per-page">
<span class="bc-shortcode-ui__field-label"><?php esc_html_e( 'Products Per Page:', 'bigcommerce' ); ?></span>
<div class="bc-shortcode-ui__posts-per-page--control">
<i class="dashicons dashicons-screenoptions bc-shortcode-ui__posts-per-page-icon"></i>
<input
type="range"
min="1"
max="100"
name="bc-shortcode-ui__posts-per-page"
id="bc-shortcode-ui__posts-per-page"
class="bc-shortcode-ui__posts-per-page"
value="<?php esc_attr_e( $posts_per_page ); ?>"
>
<span
class="bc-shortcode-ui__posts-per-page-value"
data-js="bc-shortcode-ui-posts-per-page-indicator"
data-default="<?php esc_attr_e( $posts_per_page ); ?>"
></span>
<button
type="button"
data-js="bc-shortcode-ui-reset-posts-per-page"
data-reset-value="<?php esc_attr_e( $posts_per_page ); ?>"
class="bc-shortcode-ui__posts-per-page-reset"
>
<?php echo esc_html_x( 'reset', 'reset posts per page to the default value', 'bigcommerce' ); ?>
</button>
</div>
</label>
</div>

</div>
<button class="button button-primary button-large" data-js="bc-shortcode-ui-embed-button">
<?php esc_html_e( 'Embed Product(s)', 'bigcommerce' ); ?>
</button>
</section>
</aside>
Loading

0 comments on commit 12d03b1

Please sign in to comment.