IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Parse error: syntax error, unexpected end of file in /library/functions/options.php on line 1


Sujet :

Langage PHP

  1. #1
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Août 2011
    Messages
    33
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2011
    Messages : 33
    Points : 17
    Points
    17
    Par défaut Parse error: syntax error, unexpected end of file in /library/functions/options.php on line 1
    Bonjour à tous,

    Je suis coincé sur un accès admin d'un wordpress, il me donne l'erreur
    Parse error: syntax error, unexpected end of file in .../library/functions/options.php on line 1
    Cela doit être une bêtise mais n'étant pas programmeur, ça me semble bien chinois :/ et le code est en une ligne. J'ai essayé plusieurs outils en ligne mais rien de concret au final.

    Voici le code :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <?php   /** * A unique identifier is defined to store the options in the database and reference them from the theme. * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed. * If the identifier changes, it'll appear as if the options have been reset. *  */function evolve_option_name() {	// This gets the theme name from the stylesheet (lowercase and without spaces)	$themename = wp_get_theme();	$themename = $themename['Name'];	$themename = preg_replace("/\W/", "", strtolower($themename) );		$evolve_settings = get_option('evolve');	$evolve_settings['id'] = $themename;	update_option('evolve', $evolve_settings);	}/** * Defines an array of options that will be used to generate the settings page and be saved in the database. * When creating the "id" fields, make sure to use all lowercase and no spaces. *   */function evolve_options() {	// Pull all the categories into an array	$options_categories = array();  	$options_categories_obj = get_categories();	foreach ($options_categories_obj as $category) {    	$options_categories[$category->cat_ID] = $category->cat_name;	}		// Pull all the pages into an array	$options_pages = array();  	$options_pages_obj = get_pages('sort_column=post_parent,menu_order');	$options_pages[''] = 'Select a page:';	foreach ($options_pages_obj as $page) {    	$options_pages[$page->ID] = $page->post_title;	}		// If using image radio buttons, define a directory path  $imagepath = get_template_directory_uri() . '/library/functions/images/';  $imagepathfolder = get_template_directory_uri() . '/library/media/images/';  $evlshortname = "evl";  $template_url = get_template_directory_uri();			$options = array();    // Layout	$options[] = array( "name" => $evlshortname."-tab-1", "id" => $evlshortname."-tab-1",	"type" => "open-tab"); 		$options[] = array(		"name" => __( 'Select a layout', 'evolve'  ),		"desc" => __( 'Select main content and sidebar alignment.', 'evolve'  ),		"id" => $evlshortname."_layout",		"std" => "2cl",		"type" => "images",		"options" => array(			'1c' => $imagepath . '1c.png',			'2cl' => $imagepath . '2cl.png',			'2cr' => $imagepath . '2cr.png',			'3cm' => $imagepath . '3cm.png',			'3cr' => $imagepath . '3cr.png',      '3cl' => $imagepath . '3cl.png'			)		);     $options[] = array(		"name" => __( 'Width', 'evolve'  ),		"desc" => __( '<strong>Fixed</strong> = 960px / <strong>Fluid</strong> = 99% width of browser window', 'evolve'  ),		"id" => $evlshortname."_width_layout",		"std" => "fixed",		"type" => "select",		"options" => array(			'fixed' => __( 'Fixed &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			'fluid' => __( 'Fluid', 'evolve'  )			)		);         $options[] = array(  "name" => __( 'Number of widget cols in header', 'evolve'  ),        "desc" => __( 'Select how many header widget areas you want to display.', 'evolve'  ),        "id" => $evlshortname."_widgets_header",        "type" => "images",        "std" => "one",        "options" => array(			  'disable' => $imagepath . '1c.png',			  'one' => $imagepath . 'header-widgets-1.png',        'two' => $imagepath . 'header-widgets-2.png',        'three' => $imagepath . 'header-widgets-3.png',                 'four' => $imagepath . 'header-widgets-4.png',        ));            $options[] = array(		"name" => __( 'Header widgets placement', 'evolve'  ),		"desc" => __( 'Choose where to display header widgets', 'evolve'  ),		"id" => $evlshortname."_header_widgets_placement",		"std" => "home",		"type" => "select",		"options" => array(			'home' => __( 'Home page &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			'single' => __( 'Single Post', 'evolve'  ),      'page' => __( 'Pages', 'evolve'  ),      'all' => __( 'All pages', 'evolve'  )      			)		);                        $options[] = array(  "name" => __( 'Number of widget cols in footer', 'evolve'  ),        "desc" => __( 'Select how many footer widget areas you want to display.', 'evolve'  ),        "id" => $evlshortname."_widgets_num",        "type" => "images",        "std" => "disable",        "options" => array(			  'disable' => $imagepath . '1c.png',			  'one' => $imagepath . 'footer-widgets-1.png',        'two' => $imagepath . 'footer-widgets-2.png',        'three' => $imagepath . 'footer-widgets-3.png',                 'four' => $imagepath . 'footer-widgets-4.png',        ));            $options[] = array( "name" => $evlshortname."-tab-1", "id" => $evlshortname."-tab-1",	"type" => "close-tab" );          // Posts$options[] = array( "name" => $evlshortname."-tab-2", "id" => $evlshortname."-tab-2",	"type" => "open-tab");  $options[] = array(  "name" => __( 'Number of articles per row on home and archive pages - \'post boxes\'', 'evolve'  ),        "desc" => __( 'Option <strong>2</strong> or <strong>3</strong> is recommended to use with disabled <strong>Sidebar(s)</strong> or enabled <strong>Fluid</strong> width', 'evolve'  ),        "id" => $evlshortname."_post_layout",        "type" => "images",        "std" => "two",	      "options" => array(			   'one' => $imagepath . 'one-post.png',			   'two' => $imagepath . 'two-posts.png',         'three' => $imagepath . 'three-posts.png',		   	));        $options[] = array(  "name" => __( 'Enable post excerpts with thumbnails', 'evolve'  ),        "desc" => __( 'Check this box if you want to display post excerpts with post thumbnails on one column posts', 'evolve'  ),        "id" => $evlshortname."_excerpt_thumbnail",        "type" => "checkbox",        "std" => "0");         $options[] = array(  "name" => __( 'Enable post author avatar', 'evolve'  ),        "desc" => __( 'Check this box if you want to display post author avatar', 'evolve'  ),        "id" => $evlshortname."_author_avatar",        "type" => "checkbox",        "std" => "0");          $options[] = array(  "name" => __( 'Post meta header placement', 'evolve'  ),        "desc" => __( 'Choose placement of the post meta header - Date, Author, Comments', 'evolve'  ),        "id" => $evlshortname."_header_meta",        "type" => "select",        "std" => "disable",        "options" => array(			   'single_archive' => __( 'Single posts + Archive pages', 'evolve'  ),			   'single' => __( 'Single posts', 'evolve'  ),         'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  )		   	));          $options[] = array(  "name" => __( '\'Share This\' buttons placement', 'evolve'  ),        "desc" => __( 'Choose placement of the \'Share This\' buttons', 'evolve'  ),        "id" => $evlshortname."_share_this",        "type" => "select",        "std" => "single",        "options" => array(			   'single' => __( 'Single posts &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			   'single_archive' => __( 'Single posts + Archive pages', 'evolve'  ),         'all' => __( 'All pages', 'evolve'  ),         'disable' => __( 'Disable', 'evolve'  )		   	));           $options[] = array(  "name" => __( 'Position of previous/next posts links', 'evolve'  ),        "desc" => __( 'Choose the position of the <strong>Previous/Next Post</strong> links', 'evolve'  ),        "id" => $evlshortname."_post_links",        "type" => "select",        "std" => "after",        "options" => array(			  'after' => __( 'After posts &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'before' => __( 'Before posts', 'evolve'  ),        'both' => __( 'Both', 'evolve'  )        ));         $options[] = array(  "name" => __( 'Display Similar posts', 'evolve'  ),        "desc" => __( 'Choose if you want to display <strong>Similar posts</strong> in articles', 'evolve'  ),        "id" => $evlshortname."_similar_posts",        "type" => "select",        "std" => "disable",        "options" => array(			  'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'category' => __( 'Match by categories', 'evolve'  ),        'tag' => __( 'Match by tags', 'evolve'  )        ));                               $options[] = array( "name" => $evlshortname."-tab-2", "id" => $evlshortname."-tab-2",	"type" => "close-tab" );   // Subscribe buttons$options[] = array( "name" => $evlshortname."-tab-3", "id" => $evlshortname."-tab-3",	"type" => "open-tab");    $options[] = array(  "name" => __( 'Subscribe/Social buttons style', 'evolve'  ),        "desc" => __( 'Choose the color scheme of subscribe/social buttons', 'evolve'  ),        "id" => $evlshortname."_social_color",        "type" => "select",        "std" => "color",        "options" => array(			  'color' => __( 'Colored &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'blackwhite' => __( 'Black & White', 'evolve'  )        ));  // RSS Feed  $options[] = array(  "name" => __( 'RSS Feed', 'evolve'  ),        "desc" => __( 'Insert custom RSS Feed URL, e.g. <strong>http://feeds.feedburner.com/Example</strong>', 'evolve'  ),        "id" => $evlshortname."_rss_feed",        "type" => "text",        "std" => ""); // Newsletter$options[] = array(  "name" => __( 'Newsletter', 'evolve'  ),        "desc" => __( 'Insert custom newsletter URL, e.g. <strong>http://feedburner.google.com/fb/a/mailverify?uri=Example&amp;loc=en_US</strong>', 'evolve'  ),        "id" => $evlshortname."_newsletter",        "type" => "text",        "std" => "");  // Facebook$options[] = array(  "name" => __( 'Facebook', 'evolve'  ),        "desc" => __( 'Insert your Facebook ID. If your Facebook page is <strong>http://facebook.com/Example</strong>, insert only <strong>Example</strong>', 'evolve'  ),        "id" => $evlshortname."_facebook",        "type" => "text",        "std" => "pages/Theme4Press/100642700004832");  // Twitter $options[] =  array(  "name" => __( 'Twitter', 'evolve'  ),        "desc" => __( 'Insert your Twitter ID. If your Twitter page is <strong>http://twitter.com/username</strong>, insert only <strong>username</strong>', 'evolve'  ),        "id" => $evlshortname."_twitter_id",        "type" => "text",        "std" => "theme4press");  // MySpace$options[] = array(  "name" => __( 'MySpace', 'evolve'  ),        "desc" => __( 'Insert your MySpace ID. If your MySpace page is <strong>http://myspace.com/username</strong>, insert only <strong>username</strong>', 'evolve'  ),        "id" => $evlshortname."_myspace",        "type" => "text",        "std" => "");  // Skype$options[] = array(  "name" => __( 'Skype', 'evolve'  ),        "desc" => __( 'Insert your Skype ID, e.g. <strong>username</strong>', 'evolve'  ),        "id" => $evlshortname."_skype",        "type" => "text",        "std" => "");  // YouTube$options[] = array(  "name" => __( 'YouTube', 'evolve'  ),        "desc" => __( 'Insert your YouTube ID. If your YouTube page is <strong><strong>http://youtube.com/user/Username</strong></strong>, insert only <strong>Username</strong>', 'evolve'  ),        "id" => $evlshortname."_youtube",        "type" => "text",        "std" => "");  // Flickr$options[] = array(  "name" => __( 'Flickr', 'evolve'  ),        "desc" => __( 'Insert your Flickr ID. If your Flickr page is <strong>http://flickr.com/photos/example</strong>, insert only <strong>example</strong>', 'evolve'  ),        "id" => $evlshortname."_flickr",        "type" => "text",        "std" => "");  // LinkedIn$options[] = array(  "name" => __( 'LinkedIn', 'evolve'  ),        "desc" => __( 'Insert your LinkedIn profile URI, e.g. <strong>http://ca.linkedin.com/pub/your-name/3/859/23b</strong>', 'evolve'  ),        "id" => $evlshortname."_linkedin",        "type" => "text",        "std" => "");        // Google Plus$options[] = array(  "name" => __( 'Google Plus', 'evolve'  ),        "desc" => __( 'Insert your Google Plus profile ID, e.g. <strong>114573636521805298702</strong>', 'evolve'  ),        "id" => $evlshortname."_googleplus",        "type" => "text",        "std" => "");  $options[] = array( "name" => $evlshortname."-tab-3", "id" => $evlshortname."-tab-3",	"type" => "close-tab" );  // Header content$options[] = array( "name" => $evlshortname."-tab-4", "id" => $evlshortname."-tab-4",	"type" => "open-tab");$options[] = array( "name" => __( 'Custom logo', 'evolve'  ),        "desc" => __( 'Upload a logo for your theme, or specify an image URL directly.', 'evolve'  ),        "id" => $evlshortname."_header_logo",        "type" => "upload",        "std" => $template_url."/library/media/images/logo.png");                 $options[] = array(  "name" => __( 'Logo position', 'evolve'  ),        "desc" => __( 'Choose the position of your custom logo', 'evolve'  ),        "id" => $evlshortname."_pos_logo",        "type" => "select",        "std" => "left",        "options" => array(			  'left' => __( 'Left &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'right' => __( 'Right', 'evolve'  ),        'disable' => __( 'Disable', 'evolve'  )        ));         $options[] = array(  "name" => __( 'Disable Blog Title', 'evolve'  ),        "desc" => __( 'Check this box if you don\'t want to display title of your blog', 'evolve'  ),        "id" => $evlshortname."_blog_title",        "type" => "checkbox",        "std" => "1");            $options[] = array(  "name" => __( 'Blog Tagline position', 'evolve'  ),        "desc" => __( 'Choose the position of blog tagline', 'evolve'  ),        "id" => $evlshortname."_tagline_pos",        "type" => "select",        "std" => "next",        "options" => array(			  'next' => __( 'Next to blog title &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'above' => __( 'Above blog title', 'evolve'  ),        'under' => __( 'Under blog title', 'evolve'  ),        'disable' => __( 'Disable', 'evolve'  )                 ));             $options[] = array(  "name" => __( 'Home page header content', 'evolve'  ),        "desc" => "",        "id" => $evlshortname."_home_header_content",        "type" => "select",        "std" => "search_social",        "options" => array(			  'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve'  ),        'disable' =>__( 'Disable', 'evolve'  )        ));          $options[] = array(  "name" => __( 'Single post header content', 'evolve'  ),        "desc" => "",        "id" => $evlshortname."_single_header_content",        "type" => "select",        "std" => "search_social",        "options" => array(			  'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve'  ),        'disable' =>__( 'Disable', 'evolve'  )        ));         $options[] = array(  "name" => __( 'Archives and other pages header content', 'evolve'  ),        "desc" => "",        "id" => $evlshortname."_archives_header_content",        "type" => "select",        "std" => "search_social",        "options" => array(			  'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve'  ),        'disable' =>__( 'Disable', 'evolve'  )        ));                      $options[] = array(  "name" => __( 'Carousel', 'evolve'  ),        "desc" => __( 'To enable a carousel the <strong>Recent Posts + Search Field + Subscribe Buttons</strong> option must be enabled', 'evolve'  ),        "id" => $evlshortname."_header_slider",        "type" => "select",        "std" => "disable",        "options" => array(			  'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'normal' => __( 'Normal', 'evolve'  ),        'slow' => __( 'Slow', 'evolve'  ),        'fast' => __( 'Fast', 'evolve'  )        ));    $options[] = array( "name" => $evlshortname."-tab-4", "id" => $evlshortname."-tab-4",	"type" => "close-tab" ); // Footer content$options[] = array( "name" => $evlshortname."-tab-5", "id" => $evlshortname."-tab-5",	"type" => "open-tab");$options[] = array(  "name" => __( 'Custom footer', 'evolve'  ),        "desc" => __( 'Available <strong>HTML</strong> tags and attributes:<br /><br /> <code> &lt;b&gt; &lt;i&gt; &lt;a href="" title=""&gt; &lt;blockquote&gt; &lt;del datetime=""&gt; <br /> &lt;ins datetime=""&gt; &lt;img src="" alt="" /&gt; &lt;ul&gt; &lt;ol&gt; &lt;li&gt; <br /> &lt;code&gt; &lt;em&gt;  &lt;strong&gt; &lt;div&gt; &lt;span&gt; &lt;h1&gt; &lt;h2&gt; &lt;h3&gt; &lt;h4&gt; &lt;h5&gt; &lt;h6&gt; <br /> &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;br /&gt; &lt;hr /&gt;</code>', 'evolve'  ),        "id" => $evlshortname."_footer_content",        "type" => "textarea",        "std" => "");$options[] = array( "name" => $evlshortname."-tab-5", "id" => $evlshortname."-tab-5",	"type" => "close-tab" ); // Typography  $options[] = array( "id" => $evlshortname."-tab-6",	"type" => "open-tab");$options[] = array(  "name" => __( 'Blog Title font', 'evolve'  ),        "desc" => __( 'Select the typography you want for your blog title. * non web-safe font.', 'evolve'  ),        "id" => $evlshortname."_title_font",        "type" => "typography",        "std" => array('size' => '55px', 'face' => 'goudy bookletter 1911','style' => 'bold','color' => '')        );        $options[] = array(  "name" => __( 'Blog tagline font', 'evolve'  ),        "desc" => __( 'Select the typography you want for your blog tagline. * non web-safe font.', 'evolve'  ),        "id" => $evlshortname."_tagline_font",        "type" => "typography",        "std" => array('size' => '14px', 'face' => 'georgia','style' => 'italic','color' => '')        );           $options[] = array( "name" => __( 'Post title font', 'evolve'  ),        "desc" => __( 'Select the typography you want for your post titles. * non web-safe font.', 'evolve'  ),        "id" => $evlshortname."_post_font",        "type" => "typography",        "std" => array('size' => '28px', 'face' => 'droid serif, serif','style' => 'normal','color' => '')        );                         $options[] = array(  "name" => __( 'Content font', 'evolve'  ),        "desc" => __( 'Select the typography you want for your blog content. * non web-safe font.', 'evolve'  ),        "id" => $evlshortname."_content_font",        "type" => "typography",        "std" => array('size' => '16px', 'face' => 'nobile, sans-serif','style' => 'normal','color' => '')        );       $options[] = array( "name" => $evlshortname."-tab-6", "id" => $evlshortname."-tab-6",	"type" => "close-tab" ); // Navigation$options[] = array( "id" => $evlshortname."-tab-7",	"type" => "open-tab");$options[] = array(  "name" => __( 'Disable main menu', 'evolve'  ),        "desc" => __( 'Check this box if you don\'t want to display main menu', 'evolve'  ),        "id" => $evlshortname."_main_menu",        "type" => "checkbox",        "std" => "0");$options[] = array(  "name" => __( 'Position of navigation links', 'evolve'  ),        "desc" => __( 'Choose the position of the <strong>Older/Newer Posts</strong> links', 'evolve'  ),        "id" => $evlshortname."_nav_links",        "type" => "select",        "std" => "after",        "options" => array(			  'after' => __( 'After posts &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'before' => __( 'Before posts', 'evolve'  ),        'both' => __( 'Both', 'evolve'  )        ));           $options[] = array(  "name" => __( 'Position of \'Back to Top\' button', 'evolve'  ),        "desc" => "",        "id" => $evlshortname."_pos_button",        "type" => "select",        "std" => "disable",        "options" => array(			  'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),			  'left' => __( 'Left', 'evolve'  ),        'right' => __( 'Right', 'evolve'  ),        'middle' => __( 'Middle', 'evolve'  )        ));                        $options[] = array( "name" => $evlshortname."-tab-7", "id" => $evlshortname."-tab-7",	"type" => "close-tab" ); // Ads Spaces  $options[] = array( "name" => $evlshortname."-tab-8", "id" => $evlshortname."-tab-8",	"type" => "open-tab");$options[] = array(  "name" => __( 'Theme4Press Affiliate ID', 'evolve'  ),        "desc" => __( 'Insert your Theme4Press Affiliate ID. Get one <a href=\'http://theme4press.com/affiliates\' target=\'_blank\'><strong>here</strong></a>.', 'evolve'  ),        "id" => $evlshortname."_affiliate_id",        "type" => "text",        "std" => "");         $options[] = array( "name" => __( 'Please note', 'evolve'  ), "id" => $evlshortname."info_ads","desc" => __( 'Ad spaces are not supposed to work for <strong>&lt;javascript&gt;</strong> ads units. Here you may insert only <strong>&lt;html&gt;</strong> based ads banners. In order to use <strong>Google AdSense</strong> units, please have a look at <strong>EvoLve Pro</strong> version available <a target="_blank" href="http://theme4press.com/evolve-pro/">here</a>.', 'evolve'  ),	"type" => "info");               $options[] = array(  "name" => __( 'Ad Space 1 - Header Top', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Header Top</strong>        recommended max. ads width 468px', 'evolve'  ),        "id" => $evlshortname."_space_1",        "type" => "textarea",        "std" => "");        $options[] = array(  "name" => __( 'Ad Space 2 - Header Bottom', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Header Bottom</strong>        recommended max. ads width 960px', 'evolve'  ),        "id" => $evlshortname."_space_2",        "type" => "textarea",        "std" => "");        $options[] = array(  "name" => __( 'Ad Space 3 - Sidebar 1 Top', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 1 Top</strong>        recommended max. ads width 300px', 'evolve'  ),        "id" => $evlshortname."_space_3",        "type" => "textarea",        "std" => "");         $options[] = array(  "name" => __( 'Ad Space 4 - Sidebar 1 Bottom', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 1 Bottom</strong>        recommended max. ads width 300px', 'evolve'  ),        "id" => $evlshortname."_space_4",        "type" => "textarea",        "std" => "");           $options[] = array(  "name" => __( 'Ad Space 5 - Sidebar 2 Top', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 2 Top</strong>        recommended max. ads width 300px', 'evolve'  ),        "id" => $evlshortname."_space_5",        "type" => "textarea",        "std" => "");         $options[] = array(  "name" => __( 'Ad Space 6 - Sidebar 2 Bottom', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 2 Bottom</strong>        recommended max. ads width 300px', 'evolve'  ),        "id" => $evlshortname."_space_6",        "type" => "textarea",        "std" => "");         $options[] = array(  "name" => __( 'Ad Space 7 - Post Top', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Post Top</strong>        recommended max. ads width 600px', 'evolve'  ),        "id" => $evlshortname."_space_7",        "type" => "textarea",        "std" => "");         $options[] = array(  "name" => __( 'Ad Space 8 - Post Bottom', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Post Bottom</strong>        recommended max. ads width 600px', 'evolve'  ),        "id" => $evlshortname."_space_8",        "type" => "textarea",        "std" => "");         $options[] = array(  "name" => __( 'Ad Space 9 - Footer', 'evolve'  ),        "desc" => __( 'Insert an ads code here to display in the <strong>Footer</strong>        recommended max. ads width 960px', 'evolve'  ),        "id" => $evlshortname."_space_9",        "type" => "textarea",        "std" => "");        $options[] = array( "name" => $evlshortname."-tab-8", "id" => $evlshortname."-tab-8",	"type" => "close-tab" );   // General Styling$options[] = array( "name" => $evlshortname."-tab-10", "id" => $evlshortname."-tab-10",	"type" => "open-tab");     $options[] = array(  "name" => "Main color",        "desc" => "Custom background color of header and footer",        "id" => $evlshortname."_header_footer_back_color",        "type" => "color",        "std" => ""        );          $options[] = array(  "name" => __( 'Main pattern', 'evolve'  ),        "desc" => __( 'Choose the pattern for header and background', 'evolve'  ),        "id" => $evlshortname."_pattern",        "type" => "images",        "std" => "none",        "options" => array(        'none' => $imagepathfolder . '/header-two/none.jpg',			  'pattern_1.png' => $imagepathfolder . '/pattern/pattern_1_thumb.png',        'pattern_2.png' => $imagepathfolder . '/pattern/pattern_2_thumb.png',        'pattern_3.png' => $imagepathfolder . '/pattern/pattern_3_thumb.png',        'pattern_4.png' => $imagepathfolder . '/pattern/pattern_4_thumb.png',        'pattern_5.png' => $imagepathfolder . '/pattern/pattern_5_thumb.png',        'pattern_6.png' => $imagepathfolder . '/pattern/pattern_6_thumb.png',        'pattern_7.png' => $imagepathfolder . '/pattern/pattern_7_thumb.png'        ));                    $options[] = array(  "name" => __( 'Color scheme of the header widgets area', 'evolve'  ),        "desc" => __( 'Choose the color scheme for the area below header', 'evolve'  ),        "id" => $evlshortname."_scheme_widgets",        "type" => "images",        "std" => "none",        "options" => array(        'none' => $imagepathfolder . '/header-two/none.jpg',			  'blue-back.jpg' => $imagepathfolder . '/header-two/blue-back_thumb.jpg',        'green-back.jpg' => $imagepathfolder . '/header-two/green-back_thumb.jpg',        'red-back.jpg' => $imagepathfolder . '/header-two/red-back_thumb.jpg',        'pink-back.jpg' => $imagepathfolder . '/header-two/pink-back_thumb.jpg',        'black-back.jpg' => $imagepathfolder . '/header-two/black-back_thumb.jpg',        'grey-back.jpg' => $imagepathfolder . '/header-two/grey-back_thumb.jpg'                ));                        $options[] = array(  "name" => "Enable Bootstrap Elements support",        "desc" => "Check this box if you want to enable <a href='http://twitter.github.com/bootstrap/'>Bootstrap Elements</a> on your theme",        "id" => $evlshortname."_bootstrap",        "type" => "checkbox",        "std" => "1");$options[] = array(  "name" => "Enable Boxed Layout & Custom Background",        "desc" => "Check this box if you want to enable boxed layout with a custom background",        "id" => $evlshortname."_custom_background",        "type" => "checkbox",        "std" => "0");                $options[] = array(  "name" => "Disable background images",        "desc" => "Check this box if you don't want to display background images - 'nacked mode'",        "id" => $evlshortname."_back_images",        "type" => "checkbox",        "std" => "0");          $options[] = array(  "name" => "Enable Widget Title Black Background",        "desc" => "Check this box if you want to enable black background for widget titles",        "id" => $evlshortname."_widget_background",        "type" => "checkbox",        "std" => "0");           $options[] = array(  "name" => "Disable Widget Background",        "desc" => "Check this box if you want to disable widget background",        "id" => $evlshortname."_widget_background_image",        "type" => "checkbox",        "std" => "1");              $options[] = array(  "name" => "Menu color",        "desc" => "Background color of main menu",        "id" => $evlshortname."_menu_back",        "type" => "images",        "std" => "dark",        "options" => array(			  'light' => $imagepathfolder . 'light.jpg',			  'dark' => $imagepathfolder . 'dark.jpg'        ));                 $options[] = array(  "name" => "Or custom menu color",        "desc" => "Custom background color of main menu",        "id" => $evlshortname."_menu_back_color",        "type" => "color",        "std" => ""        );         $options[] = array(  "name" => "Content color",        "desc" => "Background color of content",        "id" => $evlshortname."_content_back",        "type" => "images",        "std" => "light",        "options" => array(			    'light' => $imagepathfolder . 'light.jpg',			  'dark' => $imagepathfolder . 'dark.jpg'        ));$options[] = array(  "name" => "Custom CSS",        "desc" => '<strong>For advanced users only</strong>: insert custom CSS, default <a href="'.$template_url.'/style.css" target="_blank">style.css</a> file',        "id" => $evlshortname."_css_content",        "type" => "textarea",        "std" => "");           $options[] = array( "name" => $evlshortname."-tab-10", "id" => $evlshortname."-tab-10",	"type" => "close-tab" );  return $options;}

    Grand merci d'avance

  2. #2
    Modérateur
    Avatar de kolodz
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2008
    Messages
    2 211
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2008
    Messages : 2 211
    Points : 8 316
    Points
    8 316
    Billets dans le blog
    52
    Par défaut
    Facile les retours à la lignes ont été supprimé...
    et tu as un commentaire de type fin de ligne //Commentaire de fin de ligne qui masque du code !!Dans ce que tu fournis c'est à la colonne 337 et il manque un retour à la colonne 415.

    En recherchant l'erreur sur le web, cette erreur est relativement fréquente. Et est dû à un fichier corrompu dans un themes wordpress.

    Cordialement,
    Patrick Kolodziejczyk.

  3. #3
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Août 2011
    Messages
    33
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2011
    Messages : 33
    Points : 17
    Points
    17
    Par défaut
    Bonjour,

    Merci pour ce retour mais comme expliqué dans mon mail d'origine, je ne suis pas programmeur donc c'est vraiment chinois, je n'y connais pas grand chose.

    Est-il possible de me fournir le code corrigé svp ?

    Merci encore,

  4. #4
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Août 2011
    Messages
    33
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2011
    Messages : 33
    Points : 17
    Points
    17
    Par défaut
    Bonjour à tous,

    Je me permets de revenir à la charge, si quelqu'un peut m'en dire plus sur les solutions ? Merci

  5. #5
    Expert éminent sénior
    Avatar de rawsrc
    Homme Profil pro
    Dev indep
    Inscrit en
    Mars 2004
    Messages
    6 142
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Dev indep

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 142
    Points : 16 545
    Points
    16 545
    Billets dans le blog
    12
    Par défaut
    Salut,

    voici une version propre du code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    <?php
    /** * A unique identifier is defined to store the options in the database and reference them from the theme.
     * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
     * If the identifier changes, it'll appear as if the options have been reset.
     **/
     function evolve_option_name() {
    // This gets the theme name from the stylesheet (lowercase and without spaces)
     
        $themename = wp_get_theme();
        $themename = $themename['Name'];
        $themename = preg_replace("/\W/", "", strtolower($themename));
        $evolve_settings = get_option('evolve');
        $evolve_settings['id'] = $themename;
        update_option('evolve', $evolve_settings);
    }
     
    /**
     * Defines an array of options that will be used to generate the settings page and be saved in the database.
     * When creating the "id" fields, make sure to use all lowercase and no spaces.
     **/
    function evolve_options() {
        // Pull all the categories into an array
        $options_categories = array();
        $options_categories_obj = get_categories();
        foreach ($options_categories_obj as $category) {
            $options_categories[$category->cat_ID] = $category->cat_name;
        }
        // Pull all the pages into an array
        $options_pages = array();
        $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
        $options_pages[''] = 'Select a page:';
        foreach ($options_pages_obj as $page) {
            $options_pages[$page->ID] = $page->post_title;
        }
     
        // If using image radio buttons, define a directory path
        $imagepath = get_template_directory_uri() . '/library/functions/images/';
        $imagepathfolder = get_template_directory_uri() . '/library/media/images/';
        $evlshortname = "evl";
        $template_url = get_template_directory_uri();
     
        $options = array();    // Layout
        $options[] = array(
            "name" => $evlshortname."-tab-1",
            "id" => $evlshortname."-tab-1",
            "type" => "open-tab"
        );
        $options[] = array(
            "name" => __( 'Select a layout', 'evolve'),
            "desc" => __( 'Select main content and sidebar alignment.', 'evolve'),
            "id" => $evlshortname."_layout",
            "std" => "2cl",
            "type" => "images",
            "options" => array(
                '1c' => $imagepath . '1c.png',
                '2cl' => $imagepath . '2cl.png',
                '2cr' => $imagepath . '2cr.png',
                '3cm' => $imagepath . '3cm.png',
                '3cr' => $imagepath . '3cr.png',
                '3cl' => $imagepath . '3cl.png'
            )
        );
        $options[] = array(
            "name" => __('Width', 'evolve'),
            "desc" => __('<strong>Fixed</strong> = 960px / <strong>Fluid</strong> = 99% width of browser window', 'evolve'),
            "id" => $evlshortname."_width_layout",
            "std" => "fixed",
            "type" => "select",
            "options" => array(
                'fixed' => __('Fixed &nbsp;&nbsp;&nbsp;(default)', 'evolve'),
                'fluid' => __('Fluid', 'evolve')
            )
        );
        $options[] = array(
            "name" => __('Number of widget cols in header', 'evolve'),
            "desc" => __('Select how many header widget areas you want to display.', 'evolve'),
            "id" => $evlshortname."_widgets_header",
            "type" => "images",
            "std" => "one",
            "options" => array(
                'disable' => $imagepath . '1c.png',
                'one' => $imagepath . 'header-widgets-1.png',
                'two' => $imagepath . 'header-widgets-2.png',
                'three' => $imagepath . 'header-widgets-3.png',
                'four' => $imagepath . 'header-widgets-4.png'
            )
        );
        $options[] = array(
            "name" => __( 'Header widgets placement', 'evolve'  ),
            "desc" => __( 'Choose where to display header widgets', 'evolve'  ),
            "id" => $evlshortname."_header_widgets_placement",
            "std" => "home",
            "type" => "select",
            "options" => array(
                'home' => __( 'Home page &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'single' => __( 'Single Post', 'evolve'  ),
                'page' => __( 'Pages', 'evolve'  ),
                'all' => __( 'All pages', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( 'Number of widget cols in footer', 'evolve'  ),
            "desc" => __( 'Select how many footer widget areas you want to display.', 'evolve'  ),
            "id" => $evlshortname."_widgets_num",
            "type" => "images",
            "std" => "disable",
            "options" => array(
                'disable' => $imagepath . '1c.png',
                'one' => $imagepath . 'footer-widgets-1.png',
                'two' => $imagepath . 'footer-widgets-2.png',
                'three' => $imagepath . 'footer-widgets-3.png',
                'four' => $imagepath . 'footer-widgets-4.png'
            )
        );
        $options[] = array(
            "name" => $evlshortname."-tab-1",
            "id" => $evlshortname."-tab-1",
            "type" => "close-tab"
        );
        // Posts
        $options[] = array(
            "name" => $evlshortname."-tab-2",
            "id" => $evlshortname."-tab-2",
            "type" => "open-tab"
        );
        $options[] = array(
            "name" => __( 'Number of articles per row on home and archive pages - \'post boxes\'', 'evolve'  ),
            "desc" => __( 'Option <strong>2</strong> or <strong>3</strong> is recommended to use with disabled <strong>Sidebar(s)</strong> or enabled <strong>Fluid</strong> width', 'evolve'  ),
            "id" => $evlshortname."_post_layout",
            "type" => "images",
            "std" => "two",
            "options" => array(
                'one' => $imagepath . 'one-post.png',
                'two' => $imagepath . 'two-posts.png',
                'three' => $imagepath . 'three-posts.png',
            )
        );
        $options[] = array(
            "name" => __( 'Enable post excerpts with thumbnails', 'evolve'  ),
            "desc" => __( 'Check this box if you want to display post excerpts with post thumbnails on one column posts', 'evolve'  ),
            "id" => $evlshortname."_excerpt_thumbnail",
            "type" => "checkbox",
            "std" => "0"
        );
        $options[] = array(
            "name" => __( 'Enable post author avatar', 'evolve'  ),
            "desc" => __( 'Check this box if you want to display post author avatar', 'evolve'  ),
            "id" => $evlshortname."_author_avatar",
            "type" => "checkbox",
            "std" => "0"
        );
        $options[] = array(
            "name" => __( 'Post meta header placement', 'evolve'  ),
            "desc" => __( 'Choose placement of the post meta header - Date, Author, Comments', 'evolve'  ),
            "id" => $evlshortname."_header_meta",
            "type" => "select",
            "std" => "disable",
            "options" => array(
                'single_archive' => __( 'Single posts + Archive pages', 'evolve'  ),
                'single' => __( 'Single posts', 'evolve'  ),
                'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( '\'Share This\' buttons placement', 'evolve'  ),
            "desc" => __( 'Choose placement of the \'Share This\' buttons', 'evolve'  ),
            "id" => $evlshortname."_share_this",
            "type" => "select",
            "std" => "single",
            "options" => array(
                'single' => __( 'Single posts &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'single_archive' => __( 'Single posts + Archive pages', 'evolve'  ),
                'all' => __( 'All pages', 'evolve'  ),
                'disable' => __( 'Disable', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( 'Position of previous/next posts links', 'evolve'  ),
            "desc" => __( 'Choose the position of the <strong>Previous/Next Post</strong> links', 'evolve'  ),
            "id" => $evlshortname."_post_links",
            "type" => "select",
            "std" => "after",
            "options" => array(
                'after' => __( 'After posts &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'before' => __( 'Before posts', 'evolve'  ),
                'both' => __( 'Both', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( 'Display Similar posts', 'evolve'  ),
            "desc" => __( 'Choose if you want to display <strong>Similar posts</strong> in articles', 'evolve'  ),
            "id" => $evlshortname."_similar_posts",
            "type" => "select",
            "std" => "disable",
            "options" => array(
                'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'category' => __( 'Match by categories', 'evolve'  ),
                'tag' => __( 'Match by tags', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => $evlshortname."-tab-2",
            "id" => $evlshortname."-tab-2",
            "type" => "close-tab"
        );
        // Subscribe buttons
        $options[] = array(
            "name" => $evlshortname."-tab-3",
            "id" => $evlshortname."-tab-3",
            "type" => "open-tab"
        );
        $options[] = array(
            "name" => __( 'Subscribe/Social buttons style', 'evolve'  ),
            "desc" => __( 'Choose the color scheme of subscribe/social buttons', 'evolve'  ),
            "id" => $evlshortname."_social_color",
            "type" => "select",
            "std" => "color",
            "options" => array(
                'color' => __( 'Colored &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'blackwhite' => __( 'Black & White', 'evolve'  )
            )
        );
        // RSS Feed
        $options[] = array(
            "name" => __( 'RSS Feed', 'evolve'  ),
            "desc" => __( 'Insert custom RSS Feed URL, e.g. <strong>http://feeds.feedburner.com/Example</strong>', 'evolve'  ),
            "id" => $evlshortname."_rss_feed",
            "type" => "text",
            "std" => ""
        );
        // Newsletter
        $options[] = array(
            "name" => __( 'Newsletter', 'evolve'  ),
            "desc" => __( 'Insert custom newsletter URL, e.g. <strong>http://feedburner.google.com/fb/a/mailverify?uri=Example&amp;loc=en_US</strong>', 'evolve'  ),
            "id" => $evlshortname."_newsletter",
            "type" => "text",
            "std" => ""
        );
        // Facebook
        $options[] = array(
            "name" => __( 'Facebook', 'evolve'  ),
            "desc" => __( 'Insert your Facebook ID. If your Facebook page is <strong>http://facebook.com/Example</strong>, insert only <strong>Example</strong>', 'evolve'  ),
            "id" => $evlshortname."_facebook",
            "type" => "text",
            "std" => "pages/Theme4Press/100642700004832"
        );
        // Twitter
        $options[] =  array(
            "name" => __( 'Twitter', 'evolve'  ),
            "desc" => __( 'Insert your Twitter ID. If your Twitter page is <strong>http://twitter.com/username</strong>, insert only <strong>username</strong>', 'evolve'  ),
            "id" => $evlshortname."_twitter_id",
            "type" => "text",
            "std" => "theme4press"
        );
        // MySpace
        $options[] = array(
            "name" => __( 'MySpace', 'evolve'  ),
            "desc" => __( 'Insert your MySpace ID. If your MySpace page is <strong>http://myspace.com/username</strong>, insert only <strong>username</strong>', 'evolve'  ),
            "id" => $evlshortname."_myspace",
            "type" => "text",
            "std" => ""
        );
        // Skype
        $options[] = array(
            "name" => __( 'Skype', 'evolve'  ),
            "desc" => __( 'Insert your Skype ID, e.g. <strong>username</strong>', 'evolve'  ),
            "id" => $evlshortname."_skype",
            "type" => "text",
            "std" => ""
        );
        // YouTube
        $options[] = array(
            "name" => __( 'YouTube', 'evolve'  ),
            "desc" => __( 'Insert your YouTube ID. If your YouTube page is <strong><strong>http://youtube.com/user/Username</strong></strong>, insert only <strong>Username</strong>', 'evolve'  ),
            "id" => $evlshortname."_youtube",
            "type" => "text",
            "std" => ""
        );
        // Flickr
        $options[] = array(
            "name" => __( 'Flickr', 'evolve'  ),
            "desc" => __( 'Insert your Flickr ID. If your Flickr page is <strong>http://flickr.com/photos/example</strong>, insert only <strong>example</strong>', 'evolve'  ),
            "id" => $evlshortname."_flickr",
            "type" => "text",
            "std" => ""
        );
        // LinkedIn
        $options[] = array(
            "name" => __( 'LinkedIn', 'evolve'  ),
            "desc" => __( 'Insert your LinkedIn profile URI, e.g. <strong>http://ca.linkedin.com/pub/your-name/3/859/23b</strong>', 'evolve'  ),
            "id" => $evlshortname."_linkedin",
            "type" => "text",
            "std" => ""
        );
        // Google Plus
        $options[] = array(
            "name" => __( 'Google Plus', 'evolve'  ),
            "desc" => __( 'Insert your Google Plus profile ID, e.g. <strong>114573636521805298702</strong>', 'evolve'  ),
            "id" => $evlshortname."_googleplus",
            "type" => "text",
            "std" => ""
        );
        $options[] = array(
            "name" => $evlshortname."-tab-3",
            "id" => $evlshortname."-tab-3",
            "type" => "close-tab"
        );
        // Header content
        $options[] = array(
            "name" => $evlshortname."-tab-4",
            "id" => $evlshortname."-tab-4",
            "type" => "open-tab"
        );
        $options[] = array(
            "name" => __( 'Custom logo', 'evolve'  ),
            "desc" => __( 'Upload a logo for your theme, or specify an image URL directly.', 'evolve'  ),
            "id" => $evlshortname."_header_logo",
            "type" => "upload",
            "std" => $template_url."/library/media/images/logo.png"
        );
        $options[] = array(
            "name" => __( 'Logo position', 'evolve'  ),
            "desc" => __( 'Choose the position of your custom logo', 'evolve'  ),
            "id" => $evlshortname."_pos_logo",
            "type" => "select",
            "std" => "left",
            "options" => array(
                'left' => __( 'Left &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'right' => __( 'Right', 'evolve'  ),
                'disable' => __( 'Disable', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( 'Disable Blog Title', 'evolve'  ),
            "desc" => __( 'Check this box if you don\'t want to display title of your blog', 'evolve'  ),
            "id" => $evlshortname."_blog_title",
            "type" => "checkbox",
            "std" => "1"
         );
         $options[] = array(
            "name" => __( 'Blog Tagline position', 'evolve'  ),
            "desc" => __( 'Choose the position of blog tagline', 'evolve'  ),
            "id" => $evlshortname."_tagline_pos",
            "type" => "select",
            "std" => "next",
            "options" => array(
                'next' => __( 'Next to blog title &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'above' => __( 'Above blog title', 'evolve'  ),
                'under' => __( 'Under blog title', 'evolve'  ),
                'disable' => __( 'Disable', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( 'Home page header content', 'evolve'  ),
            "desc" => "",
            "id" => $evlshortname."_home_header_content",
            "type" => "select",
            "std" => "search_social",
            "options" => array(
                'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve'  ),
                'disable' =>__( 'Disable', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( 'Single post header content', 'evolve'  ),
            "desc" => "",
            "id" => $evlshortname."_single_header_content",
            "type" => "select",
            "std" => "search_social",
            "options" => array(
                'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve'  ),
                'disable' =>__( 'Disable', 'evolve'  )
            )
        );
        $options[] = array(
            "name" => __( 'Archives and other pages header content', 'evolve'  ),
            "desc" => "",
            "id" => $evlshortname."_archives_header_content",
            "type" => "select",
            "std" => "search_social",
    		"options" => array(
                'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve'  ),
                'disable' =>__( 'Disable', 'evolve'  )
            )
        );
        $options[] = array(
    		"name" => __( 'Carousel', 'evolve'  ),
    		"desc" => __( 'To enable a carousel the <strong>Recent Posts + Search Field + Subscribe Buttons</strong> option must be enabled', 'evolve'  ),
    		"id" => $evlshortname."_header_slider",
    		"type" => "select",
            "std" => "disable",
    		"options" => array(
                'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'normal' => __( 'Normal', 'evolve'  ),
                'slow' => __( 'Slow', 'evolve'  ),
                'fast' => __( 'Fast', 'evolve'  )
            )
        );
        $options[] = array(
    		"name" => $evlshortname."-tab-4",
    		"id" => $evlshortname."-tab-4",
    		"type" => "close-tab"
        );
        // Footer content
        $options[] = array(
    		"name" => $evlshortname."-tab-5",
    		"id" => $evlshortname."-tab-5",
    		"type" => "open-tab"
        );
        $options[] = array(
    		"name" => __( 'Custom footer', 'evolve'  ),
    		"desc" => __( 'Available <strong>HTML</strong> tags and attributes:<br /><br /> <code> &lt;b&gt; &lt;i&gt; &lt;a href="" title=""&gt; &lt;blockquote&gt; &lt;del datetime=""&gt; <br /> &lt;ins datetime=""&gt; &lt;img src="" alt="" /&gt; &lt;ul&gt; &lt;ol&gt; &lt;li&gt; <br /> &lt;code&gt; &lt;em&gt;  &lt;strong&gt; &lt;div&gt; &lt;span&gt; &lt;h1&gt; &lt;h2&gt; &lt;h3&gt; &lt;h4&gt; &lt;h5&gt; &lt;h6&gt; <br /> &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;br /&gt; &lt;hr /&gt;</code>', 'evolve'  ),
    		"id" => $evlshortname."_footer_content",
    		"type" => "textarea",
            "std" => ""
        );
        $options[] = array(
    		"name" => $evlshortname."-tab-5",
    		"id" => $evlshortname."-tab-5",
    		"type" => "close-tab"
        );
        // Typography
        $options[] = array(
    		"id" => $evlshortname."-tab-6",
    		"type" => "open-tab"
        );
        $options[] = array(
    		"name" => __( 'Blog Title font', 'evolve'  ),
    		"desc" => __( 'Select the typography you want for your blog title. * non web-safe font.', 'evolve'  ),
    		"id" => $evlshortname."_title_font",
    		"type" => "typography",
    		"std" => array(
                'size' => '55px',
                'face' => 'goudy bookletter 1911',
                'style' => 'bold',
                'color' => ''
            )
        );
        $options[] = array(
    		"name" => __( 'Blog tagline font', 'evolve'  ),
    		"desc" => __( 'Select the typography you want for your blog tagline. * non web-safe font.', 'evolve'  ),
    		"id" => $evlshortname."_tagline_font",
    		"type" => "typography",
            "std" => array('size' => '14px', 'face' => 'georgia','style' => 'italic','color' => '')
        );
        $options[] = array(
    		"name" => __( 'Post title font', 'evolve'  ),
    		"desc" => __( 'Select the typography you want for your post titles. * non web-safe font.', 'evolve'  ),
    		"id" => $evlshortname."_post_font",
    		"type" => "typography",
    		"std" => array('size' => '28px', 'face' => 'droid serif, serif','style' => 'normal','color' => '')
        );
        $options[] = array(
    		"name" => __( 'Content font', 'evolve'  ),
    		"desc" => __( 'Select the typography you want for your blog content. * non web-safe font.', 'evolve'  ),
    		"id" => $evlshortname."_content_font",
    		"type" => "typography",
    		"std" => array('size' => '16px', 'face' => 'nobile, sans-serif','style' => 'normal','color' => '')
        );
        $options[] = array(
    		"name" => $evlshortname."-tab-6",
    		"id" => $evlshortname."-tab-6",
    		"type" => "close-tab"
        );
        // Navigation
        $options[] = array(
    		"id" => $evlshortname."-tab-7",
    		"type" => "open-tab"
        );
        $options[] = array(
    		"name" => __( 'Disable main menu', 'evolve'  ),
    		"desc" => __( 'Check this box if you don\'t want to display main menu', 'evolve'  ),
    		"id" => $evlshortname."_main_menu",
    		"type" => "checkbox",
    		"std" => "0"
        );
        $options[] = array(
    		"name" => __( 'Position of navigation links', 'evolve'  ),
    		"desc" => __( 'Choose the position of the <strong>Older/Newer Posts</strong> links', 'evolve'  ),
    		"id" => $evlshortname."_nav_links",
    		"type" => "select",
    		"std" => "after",
    		"options" => array(
                'after' => __( 'After posts &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'before' => __( 'Before posts', 'evolve'  ),
                'both' => __( 'Both', 'evolve'  )
            )
        );
        $options[] = array(
    		"name" => __( 'Position of \'Back to Top\' button', 'evolve'  ),
    		"desc" => "",
    		"id" => $evlshortname."_pos_button",
    		"type" => "select",
    		"std" => "disable",
    		"options" => array(
                'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve'  ),
                'left' => __( 'Left', 'evolve'  ),
                'right' => __( 'Right', 'evolve'  ),
                'middle' => __( 'Middle', 'evolve'  )
            )
        );
        $options[] = array(
    		"name" => $evlshortname."-tab-7",
    		"id" => $evlshortname."-tab-7",
    		"type" => "close-tab"
        );
        // Ads Spaces
        $options[] = array(
    		"name" => $evlshortname."-tab-8",
    		"id" => $evlshortname."-tab-8",
    		"type" => "open-tab"
        );
        $options[] = array(
    		"name" => __( 'Theme4Press Affiliate ID', 'evolve'  ),
    		"desc" => __( 'Insert your Theme4Press Affiliate ID. Get one <a href=\'http://theme4press.com/affiliates\' target=\'_blank\'><strong>here</strong></a>.', 'evolve'  ),
    		"id" => $evlshortname."_affiliate_id",
    		"type" => "text",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Please note', 'evolve'  ),
    		"id" => $evlshortname."info_ads",
    		"desc" => __( 'Ad spaces are not supposed to work for <strong>&lt;javascript&gt;</strong> ads units. Here you may insert only <strong>&lt;html&gt;</strong> based ads banners. In order to use <strong>Google AdSense</strong> units, please have a look at <strong>EvoLve Pro</strong> version available <a target="_blank" href="http://theme4press.com/evolve-pro/">here</a>.', 'evolve'  ),
    		"type" => "info"
        );
        $options[] = array(
    		"name" => __( 'Ad Space 1 - Header Top', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Header Top</strong>        recommended max. ads width 468px', 'evolve'  ),
    		"id" => $evlshortname."_space_1",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 2 - Header Bottom', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Header Bottom</strong>        recommended max. ads width 960px', 'evolve'  ),
    		"id" => $evlshortname."_space_2",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 3 - Sidebar 1 Top', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 1 Top</strong>        recommended max. ads width 300px', 'evolve'  ),
    		"id" => $evlshortname."_space_3",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 4 - Sidebar 1 Bottom', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 1 Bottom</strong>        recommended max. ads width 300px', 'evolve'  ),
    		"id" => $evlshortname."_space_4",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 5 - Sidebar 2 Top', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 2 Top</strong>        recommended max. ads width 300px', 'evolve'  ),
    		"id" => $evlshortname."_space_5",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 6 - Sidebar 2 Bottom', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 2 Bottom</strong>        recommended max. ads width 300px', 'evolve'  ),
    		"id" => $evlshortname."_space_6",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 7 - Post Top', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Post Top</strong>        recommended max. ads width 600px', 'evolve'  ),
    		"id" => $evlshortname."_space_7",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 8 - Post Bottom', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Post Bottom</strong>        recommended max. ads width 600px', 'evolve'  ),
    		"id" => $evlshortname."_space_8",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Ad Space 9 - Footer', 'evolve'  ),
    		"desc" => __( 'Insert an ads code here to display in the <strong>Footer</strong>        recommended max. ads width 960px', 'evolve'  ),
    		"id" => $evlshortname."_space_9",
    		"type" => "textarea",
    		"std" => ""
        );
        $options[] = array(
    		"name" => $evlshortname."-tab-8",
    		"id" => $evlshortname."-tab-8",
    		"type" => "close-tab"
        );
        // General Styling
        $options[] = array(
    		"name" => $evlshortname."-tab-10",
    		"id" => $evlshortname."-tab-10",
    		"type" => "open-tab"
        );
        $options[] = array(
    		"name" => "Main color",
    		"desc" => "Custom background color of header and footer",
    		"id" => $evlshortname."_header_footer_back_color",
    		"type" => "color",
    		"std" => ""
        );
        $options[] = array(
    		"name" => __( 'Main pattern', 'evolve'  ),
    		"desc" => __( 'Choose the pattern for header and background', 'evolve'  ),
    		"id" => $evlshortname."_pattern",
    		"type" => "images",
    		"std" => "none",
    		"options" => array(
                'none' => $imagepathfolder . '/header-two/none.jpg',
                'pattern_1.png' => $imagepathfolder . '/pattern/pattern_1_thumb.png',
                'pattern_2.png' => $imagepathfolder . '/pattern/pattern_2_thumb.png',
                'pattern_3.png' => $imagepathfolder . '/pattern/pattern_3_thumb.png',
                'pattern_4.png' => $imagepathfolder . '/pattern/pattern_4_thumb.png',
                'pattern_5.png' => $imagepathfolder . '/pattern/pattern_5_thumb.png',
                'pattern_6.png' => $imagepathfolder . '/pattern/pattern_6_thumb.png',
                'pattern_7.png' => $imagepathfolder . '/pattern/pattern_7_thumb.png'
            )
        );
        $options[] = array(
    		"name" => __( 'Color scheme of the header widgets area', 'evolve'  ),
    		"desc" => __( 'Choose the color scheme for the area below header', 'evolve'  ),
    		"id" => $evlshortname."_scheme_widgets",
    		"type" => "images",
    		"std" => "none",
    		"options" => array('
                none' => $imagepathfolder . '/header-two/none.jpg',
                'blue-back.jpg' => $imagepathfolder . '/header-two/blue-back_thumb.jpg',
                'green-back.jpg' => $imagepathfolder . '/header-two/green-back_thumb.jpg',
                'red-back.jpg' => $imagepathfolder . '/header-two/red-back_thumb.jpg',
                'pink-back.jpg' => $imagepathfolder . '/header-two/pink-back_thumb.jpg',
                'black-back.jpg' => $imagepathfolder . '/header-two/black-back_thumb.jpg',
                'grey-back.jpg' => $imagepathfolder . '/header-two/grey-back_thumb.jpg'
            )
        );
        $options[] = array(
    		"name" => "Enable Bootstrap Elements support",
    		"desc" => "Check this box if you want to enable <a href='http://twitter.github.com/bootstrap/'>Bootstrap Elements</a> on your theme",
    		"id" => $evlshortname."_bootstrap",
    		"type" => "checkbox",
    		"std" => "1"
        );
        $options[] = array(
    		"name" => "Enable Boxed Layout & Custom Background",
    		"desc" => "Check this box if you want to enable boxed layout with a custom background",
    		"id" => $evlshortname."_custom_background",
    		"type" => "checkbox",
    		"std" => "0"
        );
        $options[] = array(
    		"name" => "Disable background images",
    		"desc" => "Check this box if you don't want to display background images - 'nacked mode'",
    		"id" => $evlshortname."_back_images",
    		"type" => "checkbox",
    		"std" => "0"
        );
        $options[] = array(
    		"name" => "Enable Widget Title Black Background",
    		"desc" => "Check this box if you want to enable black background for widget titles",
    		"id" => $evlshortname."_widget_background",
    		"type" => "checkbox",
    		"std" => "0"
        );
        $options[] = array(
    		"name" => "Disable Widget Background",
    		"desc" => "Check this box if you want to disable widget background",
    		"id" => $evlshortname."_widget_background_image",
    		"type" => "checkbox",
    		"std" => "1"
        );
        $options[] = array(
    		"name" => "Menu color",
    		"desc" => "Background color of main menu",
    		"id" => $evlshortname."_menu_back",
    		"type" => "images",
    		"std" => "dark",
    		"options" => array(
                'light' => $imagepathfolder . 'light.jpg',
                'dark' => $imagepathfolder . 'dark.jpg'
            )
        );
        $options[] = array(
    		"name" => "Or custom menu color",
    		"desc" => "Custom background color of main menu",
    		"id" => $evlshortname."_menu_back_color",
    		"type" => "color",
    		"std" => ""
        );
        $options[] = array(
    		"name" => "Content color",
    		"desc" => "Background color of content",
    		"id" => $evlshortname."_content_back",
    		"type" => "images",
    		"std" => "light",
    		"options" => array(
                'light' => $imagepathfolder . 'light.jpg',
                'dark' => $imagepathfolder . 'dark.jpg'
            )
        );
        $options[] = array(
    		"name" => "Custom CSS",
    		"desc" => '<strong>For advanced users only</strong>: insert custom CSS, default <a href="'.$template_url.'/style.css" target="_blank">style.css</a> file',
    		"id" => $evlshortname."_css_content",
    		"type" => "textarea",
    		"std" => "");           $options[] = array(
    		"name" => $evlshortname."-tab-10",
    		"id" => $evlshortname."-tab-10",
    		"type" => "close-tab"
        );
     
        return $options;
    }
    Rien testé, c'est le résultat de manips à coups de regex donc croisage de doigts

  6. #6
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Août 2011
    Messages
    33
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2011
    Messages : 33
    Points : 17
    Points
    17
    Par défaut
    Merci beaucoup pour ton aide, je peux enfin rentrer dans l'admin.

    Bonne journée !

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Parse error: syntax error, unexpected $end
    Par d.florian dans le forum Langage
    Réponses: 3
    Dernier message: 21/12/2008, 00h33
  2. Parse error: syntax error, unexpected $end
    Par hibou1 dans le forum Langage
    Réponses: 4
    Dernier message: 11/04/2008, 13h13
  3. Réponses: 2
    Dernier message: 26/06/2007, 23h49
  4. Unexpected end of file error, syntax du if
    Par Patricia5 dans le forum Shell et commandes GNU
    Réponses: 7
    Dernier message: 26/01/2007, 03h11
  5. Syntax error: unexpected end of file
    Par freakfm dans le forum Linux
    Réponses: 1
    Dernier message: 13/09/2006, 19h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo