-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
651 lines (575 loc) · 24 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
<?php
/**
* Include Theme Customizer.
*
* @since v1.0
*/
$theme_customizer = get_template_directory() . '/inc/customizer.php';
if (is_readable($theme_customizer)) {
require_once $theme_customizer;
}
/**
* Include Support for wordpress.com-specific functions.
*
* @since v1.0
*/
$theme_wordpresscom = get_template_directory() . '/inc/wordpresscom.php';
if (is_readable($theme_wordpresscom)) {
require_once $theme_wordpresscom;
}
/**
* Set the content width based on the theme's design and stylesheet.
*
* @since v1.0
*/
if (!isset($content_width)) {
$content_width = 800;
}
/**
* General Theme Settings.
*
* @since v1.0
*/
if (!function_exists('polyglotwannabe_setup_theme')) :
function polyglotwannabe_setup_theme()
{
// Make theme available for translation: Translations can be filed in the /languages/ directory.
load_theme_textdomain('polyglotwannabe', get_template_directory() . '/languages');
// Theme Support.
add_theme_support('title-tag');
add_theme_support('automatic-feed-links');
add_theme_support('post-thumbnails');
add_theme_support(
'html5',
array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'script',
'style',
'navigation-widgets',
)
);
// Add support for Block Styles.
add_theme_support('wp-block-styles');
// Add support for full and wide alignment.
add_theme_support('align-wide');
// Add support for editor styles.
add_theme_support('editor-styles');
// Enqueue editor styles.
add_editor_style('style-editor.css');
// Default Attachment Display Settings.
update_option('image_default_align', 'none');
update_option('image_default_link_type', 'none');
update_option('image_default_size', 'large');
// Custom CSS-Styles of Wordpress Gallery.
add_filter('use_default_gallery_style', '__return_false');
}
add_action('after_setup_theme', 'polyglotwannabe_setup_theme');
// Disable Block Directory: https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/filters/editor-filters.md#block-directory
remove_action('enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets');
remove_action('enqueue_block_editor_assets', 'gutenberg_enqueue_block_editor_assets_block_directory');
endif;
/**
* Fire the wp_body_open action.
*
* Added for backwards compatibility to support pre 5.2.0 WordPress versions.
*
* @since v2.2
*/
if (!function_exists('wp_body_open')) :
function wp_body_open()
{
/**
* Triggered after the opening <body> tag.
*
* @since v2.2
*/
do_action('wp_body_open');
}
endif;
/**
* Add new User fields to Userprofile.
*
* @since v1.0
*/
if (!function_exists('polyglotwannabe_add_user_fields')) :
function polyglotwannabe_add_user_fields($fields)
{
// Add new fields.
$fields['facebook_profile'] = 'Facebook URL';
$fields['twitter_profile'] = 'Twitter URL';
$fields['linkedin_profile'] = 'LinkedIn URL';
$fields['xing_profile'] = 'Xing URL';
$fields['github_profile'] = 'GitHub URL';
return $fields;
}
add_filter('user_contactmethods', 'polyglotwannabe_add_user_fields'); // get_user_meta( $user->ID, 'facebook_profile', true );
endif;
/**
* Test if a page is a blog page.
* if ( is_blog() ) { ... }
*
* @since v1.0
*/
function is_blog()
{
global $post;
$posttype = get_post_type($post);
return ((is_archive() || is_author() || is_category() || is_home() || is_single() || (is_tag() && ('post' === $posttype))) ? true : false);
}
/**
* Disable comments for Media (Image-Post, Jetpack-Carousel, etc.)
*
* @since v1.0
*/
function polyglotwannabe_filter_media_comment_status($open, $post_id = null)
{
$media_post = get_post($post_id);
if ('attachment' === $media_post->post_type) {
return false;
}
return $open;
}
add_filter('comments_open', 'polyglotwannabe_filter_media_comment_status', 10, 2);
/**
* Style Edit buttons as badges: https://getbootstrap.com/docs/5.0/components/badge
*
* @since v1.0
*/
function polyglotwannabe_custom_edit_post_link($output)
{
return str_replace('class="post-edit-link"', 'class="post-edit-link badge badge-secondary"', $output);
}
add_filter('edit_post_link', 'polyglotwannabe_custom_edit_post_link');
function polyglotwannabe_custom_edit_comment_link($output)
{
return str_replace('class="comment-edit-link"', 'class="comment-edit-link badge badge-secondary"', $output);
}
add_filter('edit_comment_link', 'polyglotwannabe_custom_edit_comment_link');
/**
* Responsive oEmbed filter: https://getbootstrap.com/docs/5.0/helpers/ratio
*
* @since v1.0
*/
function polyglotwannabe_oembed_filter($html)
{
return '<div class="ratio ratio-16x9">' . $html . '</div>';
}
add_filter('embed_oembed_html', 'polyglotwannabe_oembed_filter', 10, 4);
if (!function_exists('polyglotwannabe_content_nav')) :
/**
* Display a navigation to next/previous pages when applicable.
*
* @since v1.0
*/
function polyglotwannabe_content_nav($nav_id)
{
global $wp_query;
if ($wp_query->max_num_pages > 1) :
?>
<div id="<?php echo esc_attr($nav_id); ?>" class="d-flex mb-4 justify-content-between">
<div><?php next_posts_link('<span aria-hidden="true">←</span> ' . esc_html__('Older posts', 'polyglotwannabe')); ?></div>
<div><?php previous_posts_link(esc_html__('Newer posts', 'polyglotwannabe') . ' <span aria-hidden="true">→</span>'); ?></div>
</div><!-- /.d-flex -->
<?php
else :
echo '<div class="clearfix"></div>';
endif;
}
// Add Class.
function posts_link_attributes()
{
return 'class="btn btn-secondary btn-lg"';
}
add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');
endif;
/**
* Init Widget areas in Sidebar.
*
* @since v1.0
*/
function polyglotwannabe_widgets_init()
{
// Area 1.
register_sidebar(
array(
'name' => 'Primary Widget Area (Sidebar)',
'id' => 'primary_widget_area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
)
);
// Area 2.
register_sidebar(
array(
'name' => 'Secondary Widget Area (Header Navigation)',
'id' => 'secondary_widget_area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
)
);
// Area 3.
register_sidebar(
array(
'name' => 'Third Widget Area (Footer)',
'id' => 'third_widget_area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
)
);
}
add_action('widgets_init', 'polyglotwannabe_widgets_init');
if (!function_exists('polyglotwannabe_article_posted_on')) :
/**
* "Theme posted on" pattern.
*
* @since v1.0
*/
function polyglotwannabe_article_posted_on()
{
printf(
wp_kses_post(__('<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author-meta vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'polyglotwannabe')),
esc_url(get_the_permalink()),
esc_attr(get_the_date() . ' - ' . get_the_time()),
esc_attr(get_the_date('c')),
esc_html(get_the_date() . ' - ' . get_the_time()),
esc_url(get_author_posts_url((int) get_the_author_meta('ID'))),
sprintf(esc_attr__('View all posts by %s', 'polyglotwannabe'), get_the_author()),
get_the_author()
);
}
endif;
/**
* Template for Password protected post form.
*
* @since v1.0
*/
function polyglotwannabe_password_form()
{
global $post;
$label = 'pwbox-' . (empty($post->ID) ? rand() : $post->ID);
$output = '<div class="row">';
$output .= '<form action="' . esc_url(site_url('wp-login.php?action=postpass', 'login_post')) . '" method="post">';
$output .= '<h4 class="col-md-12 alert alert-warning">' . esc_html__('This content is password protected. To view it please enter your password below.', 'polyglotwannabe') . '</h4>';
$output .= '<div class="col-md-6">';
$output .= '<div class="input-group">';
$output .= '<input type="password" name="post_password" id="' . esc_attr($label) . '" placeholder="' . esc_attr__('Password', 'polyglotwannabe') . '" class="form-control" />';
$output .= '<div class="input-group-append"><input type="submit" name="submit" class="btn btn-primary" value="' . esc_attr__('Submit', 'polyglotwannabe') . '" /></div>';
$output .= '</div><!-- /.input-group -->';
$output .= '</div><!-- /.col -->';
$output .= '</form>';
$output .= '</div><!-- /.row -->';
return $output;
}
add_filter('the_password_form', 'polyglotwannabe_password_form');
if (!function_exists('polyglotwannabe_comment')) :
/**
* Style Reply link.
*
* @since v1.0
*/
function polyglotwannabe_replace_reply_link_class($class)
{
return str_replace("class='comment-reply-link", "class='comment-reply-link btn btn-outline-secondary", $class);
}
add_filter('comment_reply_link', 'polyglotwannabe_replace_reply_link_class');
/**
* Template for comments and pingbacks:
* add function to comments.php ... wp_list_comments( array( 'callback' => 'polyglotwannabe_comment' ) );
*
* @since v1.0
*/
function polyglotwannabe_comment($comment, $args, $depth)
{
$GLOBALS['comment'] = $comment;
switch ($comment->comment_type):
case 'pingback':
case 'trackback':
?>
<li class="post pingback">
<p><?php esc_html_e('Pingback:', 'polyglotwannabe'); ?> <?php comment_author_link(); ?><?php edit_comment_link(esc_html__('Edit', 'polyglotwannabe'), '<span class="edit-link">', '</span>'); ?></p>
<?php
break;
default:
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<article id="comment-<?php comment_ID(); ?>" class="comment">
<footer class="comment-meta">
<div class="comment-author vcard">
<?php
$avatar_size = ('0' !== $comment->comment_parent ? 68 : 136);
echo get_avatar($comment, $avatar_size);
/* translators: 1: comment author, 2: date and time */
printf(
wp_kses_post(__('%1$s, %2$s', 'polyglotwannabe')),
sprintf('<span class="fn">%s</span>', get_comment_author_link()),
sprintf(
'<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
esc_url(get_comment_link($comment->comment_ID)),
get_comment_time('c'),
/* translators: 1: date, 2: time */
sprintf(esc_html__('%1$s ago', 'polyglotwannabe'), human_time_diff((int) get_comment_time('U'), current_time('timestamp')))
)
);
edit_comment_link(esc_html__('Edit', 'polyglotwannabe'), '<span class="edit-link">', '</span>');
?>
</div><!-- .comment-author .vcard -->
<?php if ('0' === $comment->comment_approved) : ?>
<em class="comment-awaiting-moderation"><?php esc_html_e('Your comment is awaiting moderation.', 'polyglotwannabe'); ?></em>
<br />
<?php endif; ?>
</footer>
<div class="comment-content"><?php comment_text(); ?></div>
<div class="reply">
<?php
comment_reply_link(
array_merge(
$args,
array(
'reply_text' => esc_html__('Reply', 'polyglotwannabe') . ' <span>↓</span>',
'depth' => $depth,
'max_depth' => $args['max_depth'],
)
)
);
?>
</div><!-- /.reply -->
</article><!-- /#comment-## -->
<?php
break;
endswitch;
}
/**
* Custom Comment form.
*
* @since v1.0
* @since v1.1: Added 'submit_button' and 'submit_field'
* @since v2.0.2: Added '$consent' and 'cookies'
*/
function polyglotwannabe_custom_commentform($args = array(), $post_id = null)
{
if (null === $post_id) {
$post_id = get_the_ID();
}
$commenter = wp_get_current_commenter();
$user = wp_get_current_user();
$user_identity = $user->exists() ? $user->display_name : '';
$args = wp_parse_args($args);
$req = get_option('require_name_email');
$aria_req = ($req ? " aria-required='true' required" : '');
$consent = (empty($commenter['comment_author_email']) ? '' : ' checked="checked"');
$fields = array(
'author' => '<div class="form-floating mb-3">
<input type="text" id="author" name="author" class="form-control" value="' . esc_attr($commenter['comment_author']) . '" placeholder="' . esc_html__('Name', 'polyglotwannabe') . ($req ? '*' : '') . '"' . $aria_req . ' />
<label for="author">' . esc_html__('Name', 'polyglotwannabe') . ($req ? '*' : '') . '</label>
</div>',
'email' => '<div class="form-floating mb-3">
<input type="email" id="email" name="email" class="form-control" value="' . esc_attr($commenter['comment_author_email']) . '" placeholder="' . esc_html__('Email', 'polyglotwannabe') . ($req ? '*' : '') . '"' . $aria_req . ' />
<label for="email">' . esc_html__('Email', 'polyglotwannabe') . ($req ? '*' : '') . '</label>
</div>',
'url' => '',
'cookies' => '<p class="form-check mb-3 comment-form-cookies-consent">
<input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" class="form-check-input" type="checkbox" value="yes"' . $consent . ' />
<label class="form-check-label" for="wp-comment-cookies-consent">' . esc_html__('Save my name, email, and website in this browser for the next time I comment.', 'polyglotwannabe') . '</label>
</p>',
);
$defaults = array(
'fields' => apply_filters('comment_form_default_fields', $fields),
'comment_field' => '<div class="form-floating mb-3">
<textarea id="comment" name="comment" class="form-control" aria-required="true" required placeholder="' . esc_attr__('Comment', 'polyglotwannabe') . ($req ? '*' : '') . '"></textarea>
<label for="comment">' . esc_html__('Comment', 'polyglotwannabe') . '</label>
</div>',
/** This filter is documented in wp-includes/link-template.php */
'must_log_in' => '<p class="must-log-in">' . sprintf(wp_kses_post(__('You must be <a href="%s">logged in</a> to post a comment.', 'polyglotwannabe')), wp_login_url(apply_filters('the_permalink', get_the_permalink(get_the_ID())))) . '</p>',
/** This filter is documented in wp-includes/link-template.php */
'logged_in_as' => '<p class="logged-in-as">' . sprintf(wp_kses_post(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'polyglotwannabe')), get_edit_user_link(), $user->display_name, wp_logout_url(apply_filters('the_permalink', get_the_permalink(get_the_ID())))) . '</p>',
'comment_notes_before' => '<p class="small comment-notes">' . esc_html__('Your Email address will not be published.', 'polyglotwannabe') . '</p>',
'comment_notes_after' => '',
'id_form' => 'commentform',
'id_submit' => 'submit',
'class_submit' => 'btn btn-primary',
'name_submit' => 'submit',
'title_reply' => '',
'title_reply_to' => esc_html__('Leave a Reply to %s', 'polyglotwannabe'),
'cancel_reply_link' => esc_html__('Cancel reply', 'polyglotwannabe'),
'label_submit' => esc_html__('Post Comment', 'polyglotwannabe'),
'submit_button' => '<input type="submit" id="%2$s" name="%1$s" class="%3$s" value="%4$s" />',
'submit_field' => '<div class="form-submit">%1$s %2$s</div>',
'format' => 'html5',
);
return $defaults;
}
add_filter('comment_form_defaults', 'polyglotwannabe_custom_commentform');
endif;
/**
* Nav menus.
*
* @since v1.0
*/
if (function_exists('register_nav_menus')) {
register_nav_menus(
array(
'main-menu' => 'Main Navigation Menu',
'footer-menu' => 'Footer Menu',
)
);
}
// Custom Nav Walker: wp_bootstrap_navwalker().
$custom_walker = get_template_directory() . '/inc/wp_bootstrap_navwalker.php';
if (is_readable($custom_walker)) {
require_once $custom_walker;
}
$custom_walker_footer = get_template_directory() . '/inc/wp_bootstrap_navwalker_footer.php';
if (is_readable($custom_walker_footer)) {
require_once $custom_walker_footer;
}
/**
* Loading All CSS Stylesheets and Javascript Files.
*
* @since v1.0
*/
function polyglotwannabe_scripts_loader()
{
$theme_version = wp_get_theme()->get('Version');
// 1. Styles.
wp_enqueue_style('style', get_template_directory_uri() . '/style.css', array(), $theme_version, 'all');
wp_enqueue_style('main', get_template_directory_uri() . '/assets/css/main.css', array(), $theme_version, 'all'); // main.scss: Compiled Framework source + custom styles.
if (is_rtl()) {
wp_enqueue_style('rtl', get_template_directory_uri() . '/assets/css/rtl.css', array(), $theme_version, 'all');
}
// 2. Scripts.
wp_enqueue_script('mainjs', get_template_directory_uri() . '/assets/js/main.bundle.js', array(), $theme_version, true);
if (is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
}
add_action('wp_enqueue_scripts', 'polyglotwannabe_scripts_loader');
// if is_archive() load masonry package o c'è già?
// <script src="js/masonry.pkgd.min.js" async></script>
// rimuovo quando compilo l'scss
function custom_scripts_loader()
{
wp_enqueue_style('style-custom', get_template_directory_uri() . '/style-custom.css', array(), null);
wp_enqueue_script('masonry-pkgd-min', get_template_directory_uri() . '/assets/js/masonry.pkgd.min.js', array(), false, true);
wp_enqueue_script('masonry-images-loader', get_template_directory_uri() . '/assets/js/masonry_images_loader.js', array('masonry-pkgd-min'), false, true);
}
add_action('wp_enqueue_scripts', 'custom_scripts_loader');
// WP posts, masonry
add_shortcode('pw_masonry_posts', 'pw_masonry_posts_cb');
function pw_masonry_posts_cb($attributes)
{
// aaa
ob_start();
?>
<div class="col-12">
<?php
global $paged;
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
$q = new WP_Query(array(
'post_type' => 'post',
'posts_per_page' => 10,
'paged' => $paged,
'orderby' => 'date',
'order' => 'DESC',
));
if ($q->have_posts()) :
?>
<div class="row" id="masonry-container">
<?php
while ($q->have_posts()) :
$q->the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('col-sm-6 col-lg-4 mb-4'); ?>>
<?php if (has_post_thumbnail()) : ?>
<div class="card card-with-img">
<a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'polyglotwannabe'), the_title_attribute('echo=0')); ?>" rel="bookmark">
<img src="<?php echo get_the_post_thumbnail_url(get_the_ID(), 'large'); ?>" alt="" class="card-img">
<div class="card-img-overlay d-flex flex-column justify-content-end bg-dark-gradient">
<h5 class="card-title"><?php the_title(); ?>
</h5>
</div>
</a>
</div>
<?php elseif (in_category('definitions')) : ?>
<div class="card">
<div class="card-body">
<h5 class="card-title">
<?php the_title(); ?>
</h5>
<hr class="w-25">
<div class="card-text entry-content text-pastel custom-link"><?php the_content(); ?></div>
</div>
</div>
<?php else : ?>
<div class="card">
<div class="card-body">
<h5 class="card-title">
<a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'polyglotwannabe'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a>
</h5>
<?php
if ('post' === get_post_type()) :
?>
<h6 class="card-subtitle mb-3"><small class="text-muted entry-meta">
<?php
printf(
wp_kses_post(__('<time class="entry-date" datetime="%1$s">%2$s</time>', 'polyglotwannabe')),
esc_attr(get_the_date('c')),
esc_html(get_the_date() . ' - ' . get_the_time())
)
?>
</small></h6>
<?php
endif;
?>
<div class="card-text entry-content">
<?php
if (is_search() or has_excerpt()) :
the_excerpt();
else :
the_content();
endif;
?>
<?php wp_link_pages(array('before' => '<div class="page-link"><span>' . esc_html__('Pages:', 'polyglotwannabe') . '</span>', 'after' => '</div>')); ?>
</div>
</div>
</div>
<?php endif; ?>
</article>
<?php
endwhile;
?>
</div>
<div class="pw-masonry-pagination">
<?php
$big = 999999999; // need an unlikely integer
echo paginate_links(
array(
'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
'format' => '/page/%#%',
'current' => max(
1,
get_query_var('page')
),
'total' => $q->max_num_pages //$q is your custom query
)
);
?>
</div>
<?php
endif;
wp_reset_postdata();
?>
</div>
<?php
return ob_get_clean();
}