السلام عليكم ورحمة الله وبركاته
اثناء عملي على تعديل احد الاستايلات لمجلة وردبريس
ظهرت لي هذه المشكلة في ملف functions.php
المشكلة بالسطر 217
تظهر المشكلة عند تشغيل الموقع وهذه هي رسالتها
Parse error: syntax error, unexpected $end in C:\AppServ\www\mv\wp-content\themes\movieXpress\functions.php on line 217
اتمنى مساعدتي وجزيتم خيرا
اثناء عملي على تعديل احد الاستايلات لمجلة وردبريس
ظهرت لي هذه المشكلة في ملف functions.php
المشكلة بالسطر 217
تظهر المشكلة عند تشغيل الموقع وهذه هي رسالتها
Parse error: syntax error, unexpected $end in C:\AppServ\www\mv\wp-content\themes\movieXpress\functions.php on line 217
PHP:
?>?><?php
$themename = "movieXpress Theme";
$shortname = "movieXpress";
$options = array (
array( "name" => "125x125 BANNERS MANAGEMENT",
"type" => "title"),
array( "type" => "open"),
array( "name" => "125X125 Banner #1 Image",
"id" => $shortname."_banner1image",
"std" => "http://www.zinruss.com/movie-wordpress-themes/wp-content/themes/movieXpress/images/125x125.gif",
"type" => "text"),
array( "name" => "125X125 Banner #1 URL",
"id" => $shortname."_banner1url",
"std" => "#",
"type" => "text"),
array( "name" => "125x125 Banner #1 ALT Text",
"desc" => "Enter alt text for banner #1 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner1alt",
"std" => "",
"type" => "text"),
array( "name" => "125x125 Banner #1 Title Tag",
"desc" => "Enter title tag for banner #1 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner1title",
"std" => "",
"type" => "text"),
array( "name" => "125X125 Banner #2 Image",
"id" => $shortname."_banner2image",
"std" => "http://www.zinruss.com/movie-wordpress-themes/wp-content/themes/movieXpress/images/125x125.gif",
"type" => "text"),
array( "name" => "125X125 Banner #2 URL",
"id" => $shortname."_banner2url",
"std" => "#",
"type" => "text"),
array( "name" => "125x125 Banner #2 ALT Text",
"desc" => "Enter alt text for banner #2 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner2alt",
"std" => "",
"type" => "text"),
array( "name" => "125x125 Banner #2 Title Tag",
"desc" => "Enter title tag for banner #2 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner2title",
"std" => "",
"type" => "text"),
array( "name" => "125X125 Banner #3 Image",
"id" => $shortname."_banner3image",
"std" => "http://www.zinruss.com/movie-wordpress-themes/wp-content/themes/movieXpress/images/125x125.gif",
"type" => "text"),
array( "name" => "125X125 Banner #3 URL",
"id" => $shortname."_banner3url",
"std" => "#",
"type" => "text"),
array( "name" => "125x125 Banner #3 ALT Text",
"desc" => "Enter alt text for banner #3 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner3alt",
"std" => "",
"type" => "text"),
array( "name" => "125x125 Banner #3 Title Tag",
"desc" => "Enter title tag for banner #3 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner3title",
"std" => "",
"type" => "text"),
array( "name" => "125X125 Banner #4 Image",
"id" => $shortname."_banner4image",
"std" => "http://www.zinruss.com/movie-wordpress-themes/wp-content/themes/movieXpress/images/125x125.gif",
"type" => "text"),
array( "name" => "125X125 Banner #4 URL",
"id" => $shortname."_banner4url",
"std" => "#",
"type" => "text"),
array( "name" => "125x125 Banner #4 ALT Text",
"desc" => "Enter alt text for banner #4 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner4alt",
"std" => "",
"type" => "text"),
array( "name" => "125x125 Banner #4 Title Tag",
"desc" => "Enter title tag for banner #4 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner4title",
"std" => "",
"type" => "text"),
array( "name" => "125X125 Banner #5 Image",
"id" => $shortname."_banner5image",
"std" => "http://www.zinruss.com/movie-wordpress-themes/wp-content/themes/movieXpress/images/125x125.gif",
"type" => "text"),
array( "name" => "125X125 Banner #5 URL",
"id" => $shortname."_banner5url",
"std" => "#",
"type" => "text"),
array( "name" => "125x125 Banner #5 ALT Text",
"desc" => "Enter alt text for banner #5 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner5alt",
"std" => "",
"type" => "text"),
array( "name" => "125x125 Banner #5 Title Tag",
"desc" => "Enter title tag for banner #5 here, for SEO purposes. Off course, you can leave it blank.",
"id" => $shortname."_banner5title",
"std" => "",
"type" => "text"),
array( "type" => "close")
);
function mytheme_add_admin() {
global $themename, $shortname, $options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ( 'save' == $_REQUEST['action'] ) {
foreach ($options as $value) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($options as $value) {
if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }
header("Location: themes.php?page=functions.php&saved=true");
die;
} else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: themes.php?page=functions.php&reset=true");
die;
}
}
add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
function mytheme_admin() {
global $themename, $shortname, $options;
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
?>
<div class="wrap">
<h2><?php echo $themename; ?> by <a href="http://www.freewatchonlinemovies.com" title="Watch Online Movies" target="_blank">Watch Online Movies</a> in collaboration with
<a href="http://www.matezap.com" title="Free Text Messages" target="_blank">Free Text Messages</a> | <a href="http://www.zinbay.com" title="Resume Builder" target="_blank">Resume Builder</a> | <a href="http://www.collectiondvdboxset.com" title="DVD Boxset" target="_blank">DVD Boxset</a></h2>
<form method="post">
<?php foreach ($options as $value) {
switch ( $value['type'] ) {
case "open":
?>
<table width="100%" border="0" style="background-color:#f1f1f1; border: 1px solid #e3e3e3; padding:10px;">
<?php break;
case "close":
?>
</table><br />
<?php break;
case "title":
?>
<table width="100%" border="0" style="background-color:#464646; padding:5px 10px;"><tr>
<td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif; color: #ffffff;"><?php echo $value['name']; ?></h3></td>
</tr>
<?php break;
case 'text':
?>
<tr>
<td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
<td width="80%"><input style="width:600px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></td>
</tr>
<tr>
<td><small><?php echo $value['desc']; ?></small></td>
</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;"> </td></tr><tr><td colspan="2"> </td></tr>
<?php
break;
case 'textarea':
?>
<tr>
<td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
<td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:400px; height:200px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>
اتمنى مساعدتي وجزيتم خيرا