root 7e1279f72f Fix PHP 8.4 compatibility issues in Sensational theme
- 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>
2025-10-06 11:52:28 +02:00

88 lines
3.2 KiB
PHP

<?php
// look up for the path
require_once('mnm_config.php');
// check for rights
if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
wp_die(__("You are not allowed to be here", "mythemeshop"));
global $wpdb;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Shortcode Panel</title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo get_template_directory_uri() ?>/functions/tinymce/tinymce.js"></script>
<base target="_self" />
<style type="text/css">
<!--
select#mnmshortcode_tag optgroup { font:bold 11px Tahoma, Verdana, Arial, Sans-serif;}
select#mnmshortcode_tag optgroup option { font:normal 11px/18px Tahoma, Verdana, Arial, Sans-serif; padding-top:1px; padding-bottom:1px;}
-->
</style>
</head>
<body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';
document.getElementById('mnmshortcode_tag').focus();" style="display: none">
<!-- <form onsubmit="insertLink();return false;" action="#"> -->
<form name="mnm_tabs" action="#">
<div class="tabs">
<ul>
<li id="mnm_tab" class="current"><span><a href="javascript:mcTabs.displayTab('mnm_tab','mnmshortcode_panel');" onMouseDown="return false;">Shortcodes</a></span></li>
</ul>
</div>
<div class="panel_wrapper">
<!-- gallery panel -->
<div id="mnmshortcode_panel" class="panel current">
<br />
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td nowrap="nowrap"><label for="mnmshortcode_tag"><?php _e("Select Shortcodes", 'shortcodes'); ?></label></td>
<td><select id="mnmshortcode_tag" name="mnmshortcode_tag" style="width: 200px">
<option value="0">No Style!</option>
<?php
if(is_array($shortcode_tags))
{
$i=1;
foreach ($shortcode_tags as $mnm_shortcodekey => $short_code_value)
{
if( stristr($short_code_value, 'mnm_') )
{
$mnm_shortcode_name = str_replace('mnm_', '' ,$short_code_value);
$mnm_shortcode_names = str_replace('_', ' ' ,$mnm_shortcode_name);
$mnm_shortcodenames = ucwords($mnm_shortcode_names);
echo '<option value="' . $mnm_shortcodekey . '" >' . $mnm_shortcodenames.'</option>' . "\n";
echo '</optgroup>';
$i++;
}
}
}
?>
</select></td>
</tr>
</table>
</div>
</div>
</div>
<div class="mceActionPanel">
<div style="float: left">
<input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();" />
</div>
<div style="float: right">
<input type="submit" id="insert" name="insert" value="Insert" onClick="mnmshortcodesubmit();" />
</div>
</div>
</form>
</body>
</html>