- Fixed deprecated WP_Widget constructors in all widget files - Changed $this->WP_Widget() to parent::__construct() in: * widget-social.php * widget-fblikebox.php * widget-googleplus.php * widget-tabs.php - Fixed old-style constructor methods to __construct() in: * widget-ad125.php (mts_Ad_Widget -> __construct) * widget-ad300.php (mts_ad_300_Widget -> __construct) - Fixed for loop syntax error in widget-tweets.php (for(i; -> for($i = 1;) - Enabled registration for ad125 and ad300 widgets - Added new 'After First Paragraph' widget area for in-content ads All widgets now compatible with PHP 8.4 and editable in WordPress admin. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
66 lines
2.8 KiB
PHP
66 lines
2.8 KiB
PHP
<!DOCTYPE html>
|
|
<?php $mts_options = get_option('sensational'); ?>
|
|
<html class="no-js" <?php language_attributes(); ?>>
|
|
<head>
|
|
<meta charset="<?php bloginfo('charset'); ?>">
|
|
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
|
|
<!--[if IE ]>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<![endif]-->
|
|
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
|
<title><?php wp_title( '|', true, 'right' ); ?></title>
|
|
<?php mts_meta(); ?>
|
|
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
|
<?php wp_head(); ?>
|
|
</head>
|
|
<body id ="blog" <?php body_class('main'); ?> itemscope itemtype="http://schema.org/WebPage">
|
|
<div class="main-container <?php if ($mts_options['mts_layout'] != 'scslayout' || $mts_options['mts_layout'] != 'scclayout') { echo 'threecolumns'; } ?>">
|
|
<?php if($mts_options['mts_floating_header'] == '1') { ?>
|
|
<div class="clear" id="catcher"></div>
|
|
<header id="sticky" class="main-header">
|
|
<?php } else { ?>
|
|
<header class="main-header">
|
|
<?php } ?>
|
|
<div class="container">
|
|
<div id="header">
|
|
<div class="logo-wrap">
|
|
<?php if ($mts_options['mts_logo'] != '') { ?>
|
|
<?php if( is_front_page() || is_home() || is_404() ) { ?>
|
|
<h1 id="logo" class="image-logo">
|
|
<a href="<?php echo home_url(); ?>"><img src="<?php echo $mts_options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>"></a>
|
|
</h1><!-- END #logo -->
|
|
<?php } else { ?>
|
|
<h2 id="logo" class="image-logo">
|
|
<a href="<?php echo home_url(); ?>"><img src="<?php echo $mts_options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>"></a>
|
|
</h2><!-- END #logo -->
|
|
<?php } ?>
|
|
<?php } else { ?>
|
|
<?php if( is_front_page() || is_home() || is_404() ) { ?>
|
|
<h1 id="logo" class="text-logo">
|
|
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
|
|
</h1><!-- END #logo -->
|
|
<?php } else { ?>
|
|
<h2 id="logo" class="text-logo">
|
|
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
|
|
</h2><!-- END #logo -->
|
|
<?php } ?>
|
|
<?php } ?>
|
|
</div>
|
|
<div class="main-navigation">
|
|
<nav id="navigation" class="clearfix">
|
|
<?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
|
|
<?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_class' => 'menu clearfix', 'container' => '' ) ); ?>
|
|
<?php } else { ?>
|
|
<ul class="menu">
|
|
<li class="home-tab"><a href="<?php echo home_url(); ?>">Home</a></li>
|
|
<?php wp_list_pages('title_li='); ?>
|
|
</ul>
|
|
<?php } ?>
|
|
<a href="#" id="pull"><?php _e('Menu','mythemeshop'); ?></a>
|
|
</nav>
|
|
<?php mts_cart(); ?>
|
|
</div>
|
|
</div><!--#header-->
|
|
</div><!--.container-->
|
|
</header>
|
|
<div id="content_area">
|