diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index 560337b..d073a02 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -452,6 +452,21 @@ @apply atw-px-3 md:atw-px-2 } + .wpadverts-form.wpa-flat input[type=text][readonly=readonly], + .wpadverts-form.wpa-solid input[type=text][readonly=readonly], + .wpadverts-form.wpa-bottom-border input[type=text][readonly=readonly], + .wpadverts-form.wpa-flat input[type=checkbox][readonly=readonly], + .wpadverts-form.wpa-solid input[type=checkbox][readonly=readonly], + .wpadverts-form.wpa-bottom-border input[type=checkbox][readonly=readonly], + .wpadverts-form.wpa-flat select[readonly=readonly], + .wpadverts-form.wpa-solid select[readonly=readonly], + .wpadverts-form.wpa-bottom-border select[readonly=readonly], + .wpadverts-form.wpa-flat textarea[readonly=readonly], + .wpadverts-form.wpa-solid textarea[readonly=readonly], + .wpadverts-form.wpa-bottom-border textarea[readonly=readonly] { + @apply atw-bg-gray-50 atw-opacity-80; + } + /* BUTTONS */ /* Button Primary */ @@ -776,4 +791,26 @@ .wpa-block-categories-item.wpa-item-aligned .wpa-block-categories-icon { @apply atw-px-3 } + + .wpa-row-inline-coma .wpa-row-value:after { + content: ', '; + } + .wpa-row-inline-coma .wpa-row-value:last-child:after { + content: ''; + } + + .wpa-row-inline { + @apply atw--mx-1 + } + .wpa-row-inline .wpa-row-value { + @apply atw-px-1 + } + + .wpa-row-block .wpa-row-value { + @apply atw-block atw-w-full + } + + .wpa-row-attach { + @apply atw-pr-2 + } } diff --git a/blocks/details/index.php b/blocks/details/index.php index 0c7599b..a7c6eba 100644 --- a/blocks/details/index.php +++ b/blocks/details/index.php @@ -92,6 +92,14 @@ public function render( $atts = array() ) { ), $post_id ); + $content_table = apply_filters( "wpadverts/block/details/content-table", array( + array( + "label" => __( "Description", "wpadverts" ), + "icon" => "", + "value" => $post_content + ) + ), $post_id ); + $contact_methods = $this->_get_contact_options( $atts, $post_id ); $contact_options = array( ); $contact_additional = array(); diff --git a/blocks/details/templates/single.php b/blocks/details/templates/single.php index 22c7c86..e0f47df 100644 --- a/blocks/details/templates/single.php +++ b/blocks/details/templates/single.php @@ -8,7 +8,7 @@ -