@total_onion/onion-library 2.0.124 → 2.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/block-group-container-v3/group_6865578ada499.json +95 -1
- package/components/block-post-type-filter-grid-v3/group_64690c62487bc.json +2 -2
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.php +0 -31
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.twig +8 -1
- package/components/component-endpoints/endpoints.php +32 -0
- package/components/component-grid-layout-container-v3/group_6882282e65bf2.json +1523 -1495
- package/components/component-grid-layout-element-v3/group_68822860bda9f.json +8 -64
- package/components/component-social-networks-v3/social-networks-v3.twig +4 -11
- package/package.json +1 -1
- package/public/jsAssets.mjs +1 -0
|
@@ -1178,6 +1178,100 @@
|
|
|
1178
1178
|
"acfe_layout_col": "auto",
|
|
1179
1179
|
"acfe_layout_allowed_col": false
|
|
1180
1180
|
},
|
|
1181
|
+
"layout_691213a075272": {
|
|
1182
|
+
"key": "layout_691213a075272",
|
|
1183
|
+
"name": "post_type_filter_grid_v3",
|
|
1184
|
+
"label": "Post Type Filter Grid v3",
|
|
1185
|
+
"display": "block",
|
|
1186
|
+
"sub_fields": [
|
|
1187
|
+
{
|
|
1188
|
+
"key": "field_691213a075275",
|
|
1189
|
+
"label": "Grid Layout",
|
|
1190
|
+
"name": "",
|
|
1191
|
+
"aria-label": "",
|
|
1192
|
+
"type": "tab",
|
|
1193
|
+
"instructions": "",
|
|
1194
|
+
"required": 0,
|
|
1195
|
+
"conditional_logic": 0,
|
|
1196
|
+
"wrapper": {
|
|
1197
|
+
"width": "",
|
|
1198
|
+
"class": "",
|
|
1199
|
+
"id": ""
|
|
1200
|
+
},
|
|
1201
|
+
"placement": "top",
|
|
1202
|
+
"endpoint": 0,
|
|
1203
|
+
"no_preference": 0,
|
|
1204
|
+
"selected": 0
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"key": "field_691213a075276",
|
|
1208
|
+
"label": "grid layout",
|
|
1209
|
+
"name": "grid_layout_copy",
|
|
1210
|
+
"aria-label": "",
|
|
1211
|
+
"type": "clone",
|
|
1212
|
+
"instructions": "",
|
|
1213
|
+
"required": 0,
|
|
1214
|
+
"conditional_logic": 0,
|
|
1215
|
+
"wrapper": {
|
|
1216
|
+
"width": "",
|
|
1217
|
+
"class": "",
|
|
1218
|
+
"id": ""
|
|
1219
|
+
},
|
|
1220
|
+
"clone": [
|
|
1221
|
+
"group_68822860bda9f"
|
|
1222
|
+
],
|
|
1223
|
+
"display": "seamless",
|
|
1224
|
+
"layout": "block",
|
|
1225
|
+
"prefix_label": 0,
|
|
1226
|
+
"prefix_name": 0,
|
|
1227
|
+
"acfe_seamless_style": 0,
|
|
1228
|
+
"acfe_clone_modal": 0,
|
|
1229
|
+
"acfe_clone_modal_close": 0,
|
|
1230
|
+
"acfe_clone_modal_button": "",
|
|
1231
|
+
"acfe_clone_modal_size": "large"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"key": "field_691213a075277",
|
|
1235
|
+
"label": "PTFG fields",
|
|
1236
|
+
"name": "ptfg_fields",
|
|
1237
|
+
"aria-label": "",
|
|
1238
|
+
"type": "clone",
|
|
1239
|
+
"instructions": "",
|
|
1240
|
+
"required": 0,
|
|
1241
|
+
"conditional_logic": 0,
|
|
1242
|
+
"wrapper": {
|
|
1243
|
+
"width": "",
|
|
1244
|
+
"class": "",
|
|
1245
|
+
"id": ""
|
|
1246
|
+
},
|
|
1247
|
+
"clone": [
|
|
1248
|
+
"group_64690c62487bc"
|
|
1249
|
+
],
|
|
1250
|
+
"display": "seamless",
|
|
1251
|
+
"layout": "block",
|
|
1252
|
+
"prefix_label": 0,
|
|
1253
|
+
"prefix_name": 0,
|
|
1254
|
+
"acfe_seamless_style": 0,
|
|
1255
|
+
"acfe_clone_modal": 0,
|
|
1256
|
+
"acfe_clone_modal_close": 0,
|
|
1257
|
+
"acfe_clone_modal_button": "",
|
|
1258
|
+
"acfe_clone_modal_size": "large"
|
|
1259
|
+
}
|
|
1260
|
+
],
|
|
1261
|
+
"min": "",
|
|
1262
|
+
"max": "",
|
|
1263
|
+
"acfe_flexible_render_template": false,
|
|
1264
|
+
"acfe_flexible_render_style": false,
|
|
1265
|
+
"acfe_flexible_render_script": false,
|
|
1266
|
+
"acfe_flexible_thumbnail": false,
|
|
1267
|
+
"acfe_flexible_settings": false,
|
|
1268
|
+
"acfe_flexible_settings_size": "medium",
|
|
1269
|
+
"acfe_layout_locations": [],
|
|
1270
|
+
"acfe_flexible_modal_edit_size": false,
|
|
1271
|
+
"acfe_flexible_category": false,
|
|
1272
|
+
"acfe_layout_col": "auto",
|
|
1273
|
+
"acfe_layout_allowed_col": false
|
|
1274
|
+
},
|
|
1181
1275
|
"layout_68719944c8671": {
|
|
1182
1276
|
"key": "layout_68719944c8671",
|
|
1183
1277
|
"name": "cover_link_v3",
|
|
@@ -3494,5 +3588,5 @@
|
|
|
3494
3588
|
"acfe_display_title": "",
|
|
3495
3589
|
"acfe_meta": "",
|
|
3496
3590
|
"acfe_note": "",
|
|
3497
|
-
"modified":
|
|
3591
|
+
"modified": 1762792840
|
|
3498
3592
|
}
|
|
@@ -4025,7 +4025,7 @@
|
|
|
4025
4025
|
"label_placement": "top",
|
|
4026
4026
|
"instruction_placement": "label",
|
|
4027
4027
|
"hide_on_screen": "",
|
|
4028
|
-
"active":
|
|
4028
|
+
"active": false,
|
|
4029
4029
|
"description": "Library version - Do not modify in this project as any changes will be overwritten by future updates.",
|
|
4030
4030
|
"show_in_rest": 0,
|
|
4031
4031
|
"display_title": "",
|
|
@@ -4036,5 +4036,5 @@
|
|
|
4036
4036
|
"acfe_display_title": "",
|
|
4037
4037
|
"acfe_meta": "",
|
|
4038
4038
|
"acfe_note": "",
|
|
4039
|
-
"modified":
|
|
4039
|
+
"modified": 1762792712
|
|
4040
4040
|
}
|
|
@@ -15,34 +15,3 @@ acf_register_block_type(
|
|
|
15
15
|
),
|
|
16
16
|
)
|
|
17
17
|
);
|
|
18
|
-
|
|
19
|
-
function ptfg_next_page()
|
|
20
|
-
{
|
|
21
|
-
$pageNum = isset($_REQUEST['pageNum']) ? stripslashes($_REQUEST['pageNum']) : null;
|
|
22
|
-
$sorting = isset($_REQUEST['sorting']) ? stripslashes($_REQUEST['sorting']) : 'postorder';
|
|
23
|
-
$postType = isset($_REQUEST['postType']) ? stripslashes($_REQUEST['postType']) : null;
|
|
24
|
-
$currentMarket = isset($_REQUEST['currentMarket']) ? stripslashes($_REQUEST['currentMarket']) : null;
|
|
25
|
-
$categoryIds = isset($_REQUEST['categoryIds']) ? stripslashes($_REQUEST['categoryIds']) : 'all';
|
|
26
|
-
$limitPostsToSelectedCategories = isset($_REQUEST['limitPostsToSelectedCategories']) ? stripslashes($_REQUEST['limitPostsToSelectedCategories']) : null;
|
|
27
|
-
$initialPostsPerPage = isset($_REQUEST['initialPostsPerPage']) ? stripslashes($_REQUEST['initialPostsPerPage']) : null;
|
|
28
|
-
$desktopPostsPerPage = isset($_REQUEST['desktopPostsPerPage']) ? stripslashes($_REQUEST['desktopPostsPerPage']) : null;
|
|
29
|
-
$includeReviews = isset($_REQUEST['includeReviews']) ? stripslashes($_REQUEST['includeReviews']) : null;
|
|
30
|
-
$reviewDisplayOptions = isset($_REQUEST['reviewDisplayOptions']) ? stripslashes($_REQUEST['reviewDisplayOptions']) : null;
|
|
31
|
-
$context['pageNum'] = $pageNum;
|
|
32
|
-
$context['sorting'] = $sorting;
|
|
33
|
-
$context['postType'] = $postType;
|
|
34
|
-
$context['categoryIds'] = $categoryIds;
|
|
35
|
-
$context['limitPostsToSelectedCategories'] = $limitPostsToSelectedCategories;
|
|
36
|
-
$context['initialPostsPerPage'] = $initialPostsPerPage;
|
|
37
|
-
$context['desktopPostsPerPage'] = $desktopPostsPerPage;
|
|
38
|
-
$context['includeReviews'] = $includeReviews;
|
|
39
|
-
$context['reviewDisplayOptions'] = $reviewDisplayOptions;
|
|
40
|
-
do_action('wpml_switch_language', $currentMarket);
|
|
41
|
-
|
|
42
|
-
$context['currentMarket'] = apply_filters('wpml_current_language', NULL);
|
|
43
|
-
Timber::render('views/blocks/post-type-filter-grid-v3/ptfg-posts.twig', $context);
|
|
44
|
-
wp_die();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
add_action('wp_ajax_nopriv_ptfg_next_page', 'ptfg_next_page');
|
|
48
|
-
add_action('wp_ajax_ptfg_next_page', 'ptfg_next_page');
|
|
@@ -6,7 +6,14 @@
|
|
|
6
6
|
{% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields: fields, block: block, is_preview: is_preview }, with_context = false) %}
|
|
7
7
|
{% set postType = fields.post_type|ru %}
|
|
8
8
|
{% set postFieldConfig = fields.post_data %}
|
|
9
|
-
|
|
9
|
+
{# <br/>
|
|
10
|
+
<br/>
|
|
11
|
+
<br/>
|
|
12
|
+
<br/>
|
|
13
|
+
<br/>
|
|
14
|
+
<pre>
|
|
15
|
+
{{ fn('var_export', fields) }}
|
|
16
|
+
</pre> #}
|
|
10
17
|
{% if fields.limit_posts_to_selected_categories %}
|
|
11
18
|
{% set limitPostsToSelectedCategories = 'true' %}
|
|
12
19
|
{% else %}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
function ptfg_next_page()
|
|
4
|
+
{
|
|
5
|
+
$pageNum = isset($_REQUEST['pageNum']) ? stripslashes($_REQUEST['pageNum']) : null;
|
|
6
|
+
$sorting = isset($_REQUEST['sorting']) ? stripslashes($_REQUEST['sorting']) : 'postorder';
|
|
7
|
+
$postType = isset($_REQUEST['postType']) ? stripslashes($_REQUEST['postType']) : null;
|
|
8
|
+
$currentMarket = isset($_REQUEST['currentMarket']) ? stripslashes($_REQUEST['currentMarket']) : null;
|
|
9
|
+
$categoryIds = isset($_REQUEST['categoryIds']) ? stripslashes($_REQUEST['categoryIds']) : 'all';
|
|
10
|
+
$limitPostsToSelectedCategories = isset($_REQUEST['limitPostsToSelectedCategories']) ? stripslashes($_REQUEST['limitPostsToSelectedCategories']) : null;
|
|
11
|
+
$initialPostsPerPage = isset($_REQUEST['initialPostsPerPage']) ? stripslashes($_REQUEST['initialPostsPerPage']) : null;
|
|
12
|
+
$desktopPostsPerPage = isset($_REQUEST['desktopPostsPerPage']) ? stripslashes($_REQUEST['desktopPostsPerPage']) : null;
|
|
13
|
+
$includeReviews = isset($_REQUEST['includeReviews']) ? stripslashes($_REQUEST['includeReviews']) : null;
|
|
14
|
+
$reviewDisplayOptions = isset($_REQUEST['reviewDisplayOptions']) ? stripslashes($_REQUEST['reviewDisplayOptions']) : null;
|
|
15
|
+
$context['pageNum'] = $pageNum;
|
|
16
|
+
$context['sorting'] = $sorting;
|
|
17
|
+
$context['postType'] = $postType;
|
|
18
|
+
$context['categoryIds'] = $categoryIds;
|
|
19
|
+
$context['limitPostsToSelectedCategories'] = $limitPostsToSelectedCategories;
|
|
20
|
+
$context['initialPostsPerPage'] = $initialPostsPerPage;
|
|
21
|
+
$context['desktopPostsPerPage'] = $desktopPostsPerPage;
|
|
22
|
+
$context['includeReviews'] = $includeReviews;
|
|
23
|
+
$context['reviewDisplayOptions'] = $reviewDisplayOptions;
|
|
24
|
+
do_action('wpml_switch_language', $currentMarket);
|
|
25
|
+
|
|
26
|
+
$context['currentMarket'] = apply_filters('wpml_current_language', NULL);
|
|
27
|
+
Timber::render('views/blocks/post-type-filter-grid-v3/ptfg-posts.twig', $context);
|
|
28
|
+
wp_die();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
add_action('wp_ajax_nopriv_ptfg_next_page', 'ptfg_next_page');
|
|
32
|
+
add_action('wp_ajax_ptfg_next_page', 'ptfg_next_page');
|