Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/middletvnew/wp-content/themes/theme/ |
Upload File : |
<?php
/**
* The sidebar containing the main widget area
*
* @package Art Blog
*/
?>
<?php
if ( is_active_sidebar( 'sidebar-1' )) { ?>
<aside id="secondary" class="widget-area sidebar-width">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</aside>
<?php } else { ?>
<aside id="secondary" class="widget-area sidebar-width">
<div class="default-sidebar">
<aside id="search-3" class="widget widget_search">
<h2 class="widget-title"><?php esc_html_e('Search Anything', 'art-blog'); ?></h2>
<?php get_search_form(); ?>
</aside>
<aside id="recent-posts-2" class="widget widget_recent_entries">
<h2 class="widget-title"><?php esc_html_e('Latest Posts', 'art-blog'); ?></h2>
<ul>
<?php
$art_blog_recent_posts = wp_get_recent_posts(array('numberposts' => 5));
foreach ($art_blog_recent_posts as $art_blog_post) {
echo '<li><a href="' . esc_url(get_permalink($art_blog_post['ID'])) . '">' . esc_html($art_blog_post['post_title']) . '</a></li>';
}
?>
</ul>
</aside>
<aside id="recent-comments-2" class="widget widget_recent_comments">
<h2 class="widget-title"><?php esc_html_e('Latest Comments', 'art-blog'); ?></h2>
<ul id="recentcomments">
<?php
$art_blog_comments = get_comments(array(
'number' => 5,
'status' => 'approve',
));
foreach ($art_blog_comments as $art_blog_comment) {
echo '<li class="recentcomments">' . esc_html($art_blog_comment->comment_author) . ': <a href="' . esc_url(get_comment_link($art_blog_comment->comment_ID)) . '">' . esc_html(get_the_title($art_blog_comment->comment_post_ID)) . '</a></li>';
}
?>
</ul>
</aside>
<aside id="categories-2" class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e('Explore Categories', 'art-blog'); ?></h2>
<ul>
<?php
wp_list_categories(array(
'title_li' => '',
));
?>
</ul>
</aside>
<aside id="archives-2" class="widget widget_archive">
<h2 class="widget-title"><?php esc_html_e('Blog Archives', 'art-blog'); ?></h2>
<ul>
<?php
wp_get_archives(array(
'type' => 'postbypost',
'format' => 'html',
));
?>
</ul>
</aside>
<aside id="pages-2" class="widget widget_pages">
<h2 class="widget-title"><?php esc_html_e('Explore Our Pages', 'art-blog'); ?></h2>
<ul>
<?php
wp_list_pages(array(
'title_li' => '',
));
?>
</ul>
</aside>
<aside id="calendar-2" class="widget widget_calendar">
<h2 class="widget-title"><?php esc_html_e('Calender', 'art-blog'); ?></h2>
<?php get_calendar(); ?>
</aside>
</div>
</aside>
<?php } ?>