Submit
Path:
~
/
home
/
getwphos
/
public_html
/
giulianos
/
wp-content
/
themes
/
mechano
/
admin
/
File Content:
automatic-excerpt.php
<?php function mechano_excerpt_length($length) { $layout = 'Regular'; if (isset($_GET['layout'])) { $layout = $_GET['layout']; } else { $layout = mechano_archive_layout(); } if (($layout == 'Regular') || ($layout == 'regular')) { return get_theme_mod('mechano_setting_excerpt_length', '65'); } else { return get_theme_mod('mechano_setting_excerpt_length_layout_grid', '0'); } } add_filter('excerpt_length', 'mechano_excerpt_length', 999); /* ============================================================================================================================================= */ function mechano_read_more_link() { $more_link_text = get_theme_mod('mechano_setting_more_link_text', ""); $more_link_text = trim($more_link_text); if (empty($more_link_text)) { $more_link_text = esc_html__('Read More', 'mechano'); } return '<p class="more"><a class="more-link" href="' . esc_url(get_permalink()) . '">' . $more_link_text . '</a></p>'; } add_filter('the_content_more_link', 'mechano_read_more_link'); function mechano_excerpt_more($more) { return '... ' . mechano_read_more_link(); } add_filter('excerpt_more', 'mechano_excerpt_more'); /* ============================================================================================================================================= */ function mechano_content() { if (is_singular() || is_post_type_archive() || is_tax()) { the_content(); // Content for: All Single posts/pages/custom posts/custom pages, Custom post type archives, Custom taxonomy archives. } else { // Content for: Blog page, Search results, Default archives (Category, Tag, Author, Date). if (! has_post_format('chat')) { if (has_excerpt()) { the_excerpt(); echo mechano_read_more_link(); } else { $automatic_excerpt = get_theme_mod('mechano_setting_automatic_excerpt', 'standard'); // Regular archives. if (isset($_GET['layout'])) { if ($_GET['layout'] != 'regular') { $automatic_excerpt = 'Yes'; // Grid, List, Circles archives. } } else { $layout = mechano_archive_layout(); if ($layout == 'Other') { $automatic_excerpt = 'No'; // For other archives. } elseif ($layout != 'Regular') { $automatic_excerpt = 'Yes'; // For Grid, List, Circles archives. } } if ($automatic_excerpt == 'Yes') { the_excerpt(); // For all posts (all formats). } elseif ($automatic_excerpt == 'standard') { $format = get_post_format(); if ($format == false) { the_excerpt(); // Only for standard posts (standard format). } else { the_content(); // For other posts (other formats). } } else { the_content(); // For all posts (all formats). } } } } wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__('Pages:', 'mechano') . '</span>', 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>' ) ); } ?>
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
css
---
0755
demo-data
---
0755
js
---
0755
plugins
---
0755
about-author.php
1412 bytes
0644
admin--class-tgm-plugin-activation.php
126853 bytes
0644
admin--demo-import.php
10565 bytes
0644
admin--help-tab.php
2049 bytes
0644
admin--notice.php
9889 bytes
0644
ajax-loader.gif
4203 bytes
0644
archive-title.php
3072 bytes
0644
automatic-excerpt.php
3257 bytes
0644
content-none.php
1105 bytes
0644
customizer-default-values.php
3280 bytes
0644
customizer-sections.php
8509 bytes
0644
customizer-settings.php
262878 bytes
0644
enqueue-inline-script.php
2601 bytes
0644
enqueue-inline-style.php
66490 bytes
0644
enqueue-styles-scripts.php
13122 bytes
0644
functions-core.php
8160 bytes
0644
functions-layout-grid.php
1082 bytes
0644
functions-layout-regular.php
802 bytes
0644
functions-portfolio.php
2917 bytes
0644
functions-singular.php
13678 bytes
0644
functions-woocommerce.php
4674 bytes
0644
html-attributes.php
18503 bytes
0644
image-sizes.php
1986 bytes
0644
index.php
30 bytes
0644
navigation-archive.php
1231 bytes
0644
navigation-single.php
4441 bytes
0644
override-post-class.php
1447 bytes
0644
override-post-gallery.php
7368 bytes
0644
post-meta.php
7608 bytes
0644
pre-get-posts.php
353 bytes
0644
theme-options.php
11646 bytes
0644
widget_area-register.php
10228 bytes
0644
widget_area-sidebar-archive.php
4224 bytes
0644
widget_area-sidebar-singular.php
7161 bytes
0644
N4ST4R_ID | Naxtarrr