Submit
Path:
~
/
home
/
getwphos
/
public_html
/
giulianos
/
wp-content
/
themes
/
mechano
/
admin
/
File Content:
functions-core.php
<?php function mechano_core_header_style() { $post_header_style = ""; $front_page_displays = get_option('show_on_front'); // Reading Settings. if (is_home() && ($front_page_displays == 'posts')) // Blog page is homepage. { $post_header_style = get_theme_mod('mechano_setting_blog_homepage_header_style', ""); // Get blog homepage header style class. (customizer) --- BLOG HOMEPAGE } elseif (is_singular() || is_home()) // Blog page is a subpage. { if (function_exists('pixelwars_core_header_style')) { $post_header_style = pixelwars_core_header_style(); if (($post_header_style == 'inherit') || empty($post_header_style)) { if (is_singular('page') || is_home()) // Blog page AND other pages. { $post_header_style = get_theme_mod('mechano_setting_page_header_style_global', ""); // Get page header style class. (customizer) --- BLOG PAGE / PAGES } elseif (is_singular('post')) // Blog posts. { $post_header_style = get_theme_mod('mechano_setting_post_header_style_global', ""); // Get post header style class. (customizer) --- BLOG POSTS } else // Portfolio posts AND other custom post types. { if (! is_attachment()) { $post_header_style = get_theme_mod('mechano_setting_custom_post_header_style_global', ""); // Get post header style class. (customizer) --- PORTFOLIO POSTS / CUSTOM POST TYPES } } } } } return $post_header_style; } /* ============================================================================================================================================= */ function mechano_core_post_style() { if (function_exists('pixelwars_core_post_style')) { return pixelwars_core_post_style(); } } /* ============================================================================================================================================= */ function mechano_core_title_visibility() { if (function_exists('pixelwars_core_title_visibility')) { return pixelwars_core_title_visibility(); } } /* ============================================================================================================================================= */ function mechano_core_featured_media__url() { if (function_exists('pixelwars_core_featured_media__url')) { return pixelwars_core_featured_media__url(); } else { return ""; } } function mechano_core_featured_media__new_tab() { if (function_exists('pixelwars_core_featured_media__new_tab')) { return pixelwars_core_featured_media__new_tab(); } } /* ============================================================================================================================================= */ function mechano_core_iframe_from_xml($browser_address_url) { if (function_exists('pixelwars_core_iframe_from_xml')) { return pixelwars_core_iframe_from_xml($browser_address_url); } } function mechano_iframe_from_xml($browser_address_url) { return mechano_core_iframe_from_xml($browser_address_url); } /* ============================================================================================================================================= */ function mechano_core_gallery_type() { if (function_exists('pixelwars_core_gallery_type')) { return pixelwars_core_gallery_type(); } } /* ============================================================================================================================================= */ function mechano_core_share_links_meta() { if (function_exists('pixelwars_core_share_links_meta')) { pixelwars_core_share_links_meta(); } } function mechano_core_share_links() { $share_links = get_theme_mod('mechano_setting_share_links', 'Yes'); if ($share_links != 'No') { if (function_exists('pixelwars_core_share_links')) { pixelwars_core_share_links(); } } } /* ============================================================================================================================================= */ function mechano_core_related_posts() { if (is_singular('post')) { if (function_exists('pixelwars_core_related_posts')) { $related_posts = get_theme_mod('mechano_setting_related_posts', 'Yes'); if ($related_posts != 'No') { $related_posts_category = get_theme_mod('mechano_setting_related_posts_category', 'all'); $orderby = get_theme_mod('mechano_setting_related_posts_order', 'rand'); $posts_per_page = get_theme_mod('mechano_setting_related_posts_count', '3'); $related_posts_style = get_theme_mod('mechano_setting_related_posts_style', 'overlay'); pixelwars_core_related_posts($related_posts_category, $orderby, $posts_per_page, $related_posts_style); } } } } /* ============================================================================================================================================= */ function mechano_core_featured_area() { if (function_exists('pixelwars_core_featured_area')) { if (is_singular('page')) { $select_page_featured_area = pixelwars_core_featured_area(); if ($select_page_featured_area == 'pixelwars_core_sidebar__blog_featured_area') { $select_page_featured_area = 'mechano_sidebar_13'; } elseif ($select_page_featured_area == 'pixelwars_core_sidebar__page_featured_area') { $select_page_featured_area = 'mechano_sidebar_14'; } elseif ($select_page_featured_area == 'pixelwars_core_sidebar__portfolio_featured_area') { $select_page_featured_area = 'mechano_sidebar_17'; } elseif ($select_page_featured_area == 'pixelwars_core_sidebar__shop_featured_area') { $select_page_featured_area = 'mechano_sidebar_18'; } if ((! isset($_GET['featured_area'])) && is_active_sidebar($select_page_featured_area)) { ?> <section class="top-content"> <div class="layout-medium"> <div class="featured-area"> <?php dynamic_sidebar($select_page_featured_area); ?> </div> <!-- .featured-area --> </div> <!-- .layout-medium --> </section> <!-- .top-content --> <?php } } else { if ((! isset($_GET['featured_area'])) && is_home() && is_active_sidebar('mechano_sidebar_13')) { ?> <section class="top-content"> <div class="layout-medium"> <div class="featured-area"> <?php dynamic_sidebar('mechano_sidebar_13'); ?> </div> <!-- .featured-area --> </div> <!-- .layout-medium --> </section> <!-- .top-content --> <?php } } } } /* ============================================================================================================================================= */ function mechano_core_sidebar($post_id) { if (function_exists('pixelwars_core_sidebar')) { $select_sidebar = pixelwars_core_sidebar($post_id); if ($select_sidebar == 'pixelwars_core_sidebar__blog_sidebar') { $select_sidebar = 'mechano_sidebar_1'; } elseif ($select_sidebar == 'pixelwars_core_sidebar__post_sidebar') { $select_sidebar = 'mechano_sidebar_2'; } elseif ($select_sidebar == 'pixelwars_core_sidebar__page_sidebar') { $select_sidebar = 'mechano_sidebar_3'; } elseif ($select_sidebar == 'pixelwars_core_sidebar__portfolio_sidebar') { $select_sidebar = 'mechano_sidebar_15'; } elseif ($select_sidebar == 'pixelwars_core_sidebar__shop_sidebar') { $select_sidebar = 'mechano_sidebar_16'; } elseif ($select_sidebar == 'pixelwars_core_sidebar__course_sidebar') { $select_sidebar = 'mechano_sidebar_course'; } return $select_sidebar; } } /* ============================================================================================================================================= */ function mechano_core_fonts() { if (function_exists('pixelwars_core_fonts')) { return pixelwars_core_fonts(); } else { return array("" => 'OS Default'); } } ?>
Submit
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