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 @@ -
atw-w-full"> +
atw-w-full atw-flex atw-flex-col"> @@ -55,11 +55,11 @@
-
+
- + ">
@@ -72,14 +72,14 @@ -
- +
+
- Description +
- +
@@ -112,7 +112,7 @@ -
+
diff --git a/includes/class-types-admin.php b/includes/class-types-admin.php index 48d12e9..e77a8ba 100644 --- a/includes/class-types-admin.php +++ b/includes/class-types-admin.php @@ -737,7 +737,7 @@ protected function _edit_form_renderers( $object, $type ) { "label" => __( "Renderer Template", "wpadverts" ), "order" => 10, "value" => "", - "options" => $template_options + "options" => wpadverts_get_block_templates_options() ) ) ); diff --git a/includes/functions.php b/includes/functions.php index b6d508a..bb300dd 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -3981,6 +3981,8 @@ function adverts_default_comments_status( $post_type ) { function adverts_get_taxonomy_path( $term, $glue = false ) { + include_once ADVERTS_PATH . '/includes/class-html.php'; + $a = array(); $path = advert_term_path( $term ); diff --git a/wpadverts.php b/wpadverts.php index b327617..363060a 100644 --- a/wpadverts.php +++ b/wpadverts.php @@ -5,7 +5,7 @@ * Description: The lightweight WordPress classifieds plugin done right. * Author: Greg Winiarski * Text Domain: wpadverts - * Version: 2.0.0.b001 + * Version: 2.0.0.b002 * * Adverts is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by