lostyazilim
tr.link

Parse error: syntax error, unexpected '?' ... on line 1 hatası

3 Mesajlar 1.786 Okunma
acebozum
tr.link

sterk sterk boş kalsın olunca yazarım Kullanıcı
  • Üyelik 29.10.2013
  • Yaş/Cinsiyet 35 / E
  • Meslek Atama bekliyor
  • Konum İstanbul Avrupa
  • Ad Soyad C** Y**
  • Mesajlar 1296
  • Beğeniler 339 / 338
  • Ticaret 6, (%100)
Merhaba yeni kurdum siteye dedim siteye atayım ftp'den attım

Parse error: syntax error, unexpected '?' in /home/etutveku/public_html/wp-content/themes/food-recipes/theme-options.php on line 1

bu hatayı veriyor.


/**
* Initialize the options before anything else.
*/
add_action( 'admin_init', 'custom_theme_options', 1 );

/**
* Build the custom settings & update OptionTree.
*/
function custom_theme_options() {
/**
* Get a copy of the saved settings array.
*/
$saved_settings = get_option( 'option_tree_settings', array() );

/**
* Custom settings array that will eventually be
* passes to the OptionTree Settings API Class.
*/
$custom_settings = array(
'contextual_help' => array(
'content' => array(
array(
'id' => 'general_help',
'title' => __('Help', 'FoodRecipe'),
'content' => '

Welcome to Food Recipe WordPress Theme Option panel. If you have any questions, please follow documentation or feel free to post a ticket on our Support forum.

'
)
),
'sidebar' => '

'
),
'sections' => array(
array(
'id' => 'general_default',
'title' => __('Home Page', 'FoodRecipe'),
),
array(
'id' => 'theme_styling',
'title' => __('Styles', 'FoodRecipe'),
),
array(
'id' => 'left_image_slider',
'title' => __('Left Image Slider', 'FoodRecipe'),
),
array(
'id' => 'basic_slider',
'title' => __('Basic Slider', 'FoodRecipe'),
),
array(
'id' => 'nivo_slider',
'title' => __('Nivo Slider', 'FoodRecipe'),
),
array(
'id' => 'thumbnail_slider',
'title' => __('Thumbnail Slider', 'FoodRecipe'),
),
array(
'id' => 'accordion_slider',
'title' => __('Accordion Slider', 'FoodRecipe'),
),
array(
'id' => 'recipe_options',
'title' => __('Recipe', 'FoodRecipe'),
),
array(
'id' => 'other_options',
'title' => __('Blog', 'FoodRecipe'),
),
array(
'id' => 'contact_options',
'title' => __('Contact Options', 'FoodRecipe'),
),
array(
'id' => 'footer',
'title' => __('Footer', 'FoodRecipe')
)
),
'settings' => array(
array(
'id' => 'header_logo_image',
'label' => __('Header Logo', 'FoodRecipe'),
'desc' => __('Logo of your site.', 'FoodRecipe'),
'std' => '',
'type' => 'upload',
'section' => 'general_default',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'favicon',
'label' => __('Favicon', 'FoodRecipe'),
'desc' => __('Upload your favicon in PNG format.', 'FoodRecipe'),
'std' => '',
'type' => 'upload',
'section' => 'general_default',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'slider_type',
'label' => __('Select Home Page Slider', 'FoodRecipe'),
'desc' => __('Select the Slider Type from given list.', 'FoodRecipe'),
'std' => 'Left Image Slider',
'type' => 'select',
'section' => 'general_default',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'Left Image Slider',
'label' => __('Left Image Slider', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'Basic Slider',
'label' => __('Basic Slider', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'Nivo Slider',
'label' => __('Nivo Slider', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'Thumbnail Slider',
'label' => __('Thumbnail Slider', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'Accordion Slider',
'label' => __('Accordion Slider', 'FoodRecipe'),
'src' => ''
)
),
),
array(
'id' => 'header_terms_count',
'label' => __('Number of recipe types you want to show under main menu.', 'FoodRecipe'),
'desc' => __('Provide number for recipe types you want to show on the right side of search field under main menu. Leaving it empty will show all available terms. Term with no recipe assigned will be skipped.', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'general_default',
'class' => ''
),
array(
'id' => 'whats_hot1',
'label' => __('First Whats Hot Recipe', 'FoodRecipe'),
'desc' => __('Select first item for whats hot area', 'FoodRecipe'),
'std' => '',
'type' => 'custom-post-type-select',
'section' => 'general_default',
'rows' => '',
'post_type' => 'recipe',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'whats_hot2',
'label' => __('Second Whats Hot Recipe', 'FoodRecipe'),
'desc' => __('Select second item for whats hot area', 'FoodRecipe'),
'std' => '',
'type' => 'custom-post-type-select',
'section' => 'general_default',
'rows' => '',
'post_type' => 'recipe',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'whats_hot3',
'label' => __('Third Whats Hot Recipe', 'FoodRecipe'),
'desc' => __('Select third item for whats hot area', 'FoodRecipe'),
'std' => '',
'type' => 'custom-post-type-select',
'section' => 'general_default',
'rows' => '',
'post_type' => 'recipe',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'whats_hot4',
'label' => __('Fourth Whats Hot Recipe', 'FoodRecipe'),
'desc' => __('Select fourth item for whats hot area', 'FoodRecipe'),
'std' => '',
'type' => 'custom-post-type-select',
'section' => 'general_default',
'rows' => '',
'post_type' => 'recipe',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'l_slider_statement',
'label' => __('Slider Statement', 'FoodRecipe'),
'desc' => __('Enter statement for slider.', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'left_image_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'right_info_slider',
'label' => __('Left Image Slider', 'FoodRecipe'),
'desc' => __('Give your required recipe post IDs for each slide.', 'FoodRecipe'),
'std' => '',
'type' => 'list-item',
'section' => 'left_image_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),array(
'id' => 'top_recipe_args',
'label' => __('Select top recipe type view type', 'FoodRecipe'),
'desc' => __('Select if you want to show recipe most rated or high in rating.', 'FoodRecipe'),
'std' => 'most_rated',
'type' => 'select',
'section' => 'left_image_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'high_rating',
'label' => __('High In Rating', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'most_rated',
'label' => __('Most Rated', 'FoodRecipe'),
'src' => ''
)
)
),
array(
'id' => 'b_slider_statement',
'label' => __('Slider Statement', 'FoodRecipe'),
'desc' => __('Enter Slider Heading Statement', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'basic_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'basic_image_slider',
'label' => __('Basic Slider', 'FoodRecipe'),
'desc' => __('Select Images and recipe post IDs to show in Basic Slider. Required dimension is: width 905px and height 386px', 'FoodRecipe'),
'std' => '',
'type' => 'list-item',
'section' => 'basic_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'nivo_image_slider',
'label' => __('Nivo Image Slider', 'FoodRecipe'),
'desc' => __('Select Images for Nivo Slider and give Recipe Post IDs. Required dimension is: width 905px and height 370px', 'FoodRecipe'),
'std' => '',
'type' => 'list-item',
'section' => 'nivo_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'thumb_slider_images',
'label' => __('Thumbnail Slider Images', 'FoodRecipe'),
'desc' => __('Add images for thumbnail slider. Required dimension is: width 905px and height 370px', 'FoodRecipe'),
'std' => '',
'type' => 'list-item',
'section' => 'thumbnail_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'accor_slider_images',
'label' => __('Accordion Slider Images', 'FoodRecipe'),
'desc' => __('Add images for thumbnail slider. Required dimension is: width 740px and height 425px', 'FoodRecipe'),
'std' => '',
'type' => 'list-item',
'section' => 'accordion_slider',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'copyright_statement',
'label' => __('Copyright Statement', 'FoodRecipe'),
'desc' => __('Enter copyright statement for footer', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'footer',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'footer_dev_statement',
'label' => __('Designer and Developer Statement', 'FoodRecipe'),
'desc' => __('Enter Designer and Developter Statement', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'footer',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'recipes_per_page_listing',
'label' => __('Recipes Per Page (number only)', 'FoodRecipe'),
'desc' => __('Enter the number of recipes you want to show on recipe listing page. Default value is 6.', 'FoodRecipe'),
'std' => '6',
'type' => 'text',
'section' => 'recipe_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'recipe_template_type',
'label' => __('Select Single Recipe Template Type', 'FoodRecipe'),
'desc' => __('Select from the options how you want to show your single recipe page.', 'FoodRecipe'),
'std' => 'Recipe Template with Sidebar',
'type' => 'select',
'section' => 'recipe_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'Recipe Template with Sidebar',
'label' => __('Recipe Template with Sidebar', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'Recipe Template Full Width',
'label' => __('Recipe Template Full Width', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'Recipe Template Full Width Video',
'label' => __('Recipe Template With Full Width Video', 'FoodRecipe'),
'src' => ''
)
),
),array(
'id' => 'skin_set',
'label' => __('Color Skins', 'FoodRecipe'),
'desc' => __('Select color skin from the given options.', 'FoodRecipe'),
'std' => 'default',
'type' => 'select',
'section' => 'theme_styling',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'skin_default',
'label' => __('Default', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'skin_blue',
'label' => __('Blue', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'skin_orange',
'label' => __('Orange', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'skin_red',
'label' => __('Red', 'FoodRecipe'),
'src' => ''
)
),
),
array(
'id' => 'quick_css_box',
'label' => __('Quick CSS Box', 'FoodRecipe'),
'desc' => 'If you want to do minor changes in styles, you target elements from this box. If you want to do heavy changes then put your styles in custom-styles.css file in theme root directory.',
'std' => '',
'type' => 'textarea-simple',
'section' => 'theme_styling',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'recipe_show_social_icons',
'label' => __('Show Social icons on Single Recipe Page', 'FoodRecipe'),
'desc' => __('Select if you want to Show or Hide social icons at the end of each single recipe.', 'FoodRecipe'),
'std' => 'show',
'type' => 'select',
'section' => 'recipe_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'show_social',
'label' => __('Show', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'hide_social',
'label' => __('Hide', 'FoodRecipe'),
'src' => ''
)
)
),
array(
'id' => 'recipe_show_rating',
'label' => __('Show Rating for Recipe post', 'FoodRecipe'),
'desc' => __('Select if you want to Show or Hide Rating for recipe post.', 'FoodRecipe'),
'std' => 'show',
'type' => 'select',
'section' => 'recipe_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'show_rating',
'label' => __('Show', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'hide_rating',
'label' => __('Hide', 'FoodRecipe'),
'src' => ''
)
)
),
array(
'id' => 'post_show_social_icons',
'label' => __('Show Social icons on Single Post Page', 'FoodRecipe'),
'desc' => __('Select if you want to enable or disable social icons at the end of each post single page.', 'FoodRecipe'),
'std' => 'show',
'type' => 'select',
'section' => 'other_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'show_social',
'label' => __('Show', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'hide_social',
'label' => __('Hide', 'FoodRecipe'),
'src' => ''
)
),
),array(
'id' => 'pp_ctrl_for_blog',
'label' => __('Do you want to open blog post thumbnail in lightbox?', 'FoodRecipe'),
'desc' => __('Select "Enable" to show blog post image on single post page in lightbox on click.', 'FoodRecipe'),
'std' => 'Enable',
'type' => 'select',
'section' => 'other_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'true',
'label' => __('Enable', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'false',
'label' => __('Disable', 'FoodRecipe'),
'src' => ''
)
),
),array(
'id' => 'pp_ctrl_for_recipe',
'label' => __('Do you want to open recipe thumbnail in lightbox?', 'FoodRecipe'),
'desc' => __('Select "Enable" to show recipe thumbnail image on single recipe page in lightbox on click.', 'FoodRecipe'),
'std' => 'Enable',
'type' => 'select',
'section' => 'recipe_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'true',
'label' => __('Enable', 'FoodRecipe'),
'src' => ''
),array(
'value' => 'false',
'label' => __('Disable', 'FoodRecipe'),
'src' => ''
)
),
),array(
'id' => 'submit_recipe_email_target',
'label' => __('Email Address for Recipe Submit Notification', 'FoodRecipe'),
'desc' => __('Provide email address that will receive email notification on recipe submission. If you do not want to receive notification, then leave this field empty.','FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'recipe_options'
),
array(
'id' => 'show_contact_map',
'label' => __('Google Map', 'FoodRecipe'),
'desc' => '',
'std' => '',
'type' => 'radio',
'section' => 'contact_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => '',
'choices' => array(
array(
'value' => 'show',
'label' => __('Show', 'FoodRecipe'),
'src' => ''
),
array(
'value' => 'hide',
'label' => __('Hide', 'FoodRecipe'),
'src' => ''
)
),
),
array(
'id' => 'map_latitude',
'label' => __('Map Latitude', 'FoodRecipe'),
'desc' => __('Enter Google Map Latitude for your place. You can get Latitude Value From http://itouchmap.com/latlong.html ', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'contact_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'map_longitude',
'label' => __('Map Longitude', 'FoodRecipe'),
'desc' => __('Enter Google Map Longitude for your place. You can get Longitude Value From http://itouchmap.com/latlong.html ', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'contact_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'map_zoom_level',
'label' => __('Map Zoom Level', 'FoodRecipe'),
'desc' => __('Enter Google Map Zoom Level', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'contact_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'contact_form_heading',
'label' => __('Contact Form Heading', 'FoodRecipe'),
'desc' => __('Give a heading to your contact form.', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'contact_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
),
array(
'id' => 'contact_email_address',
'label' => __('Contact Email Address', 'FoodRecipe'),
'desc' => __('Enter an email address that will recieve contact form messages.', 'FoodRecipe'),
'std' => '',
'type' => 'text',
'section' => 'contact_options',
'rows' => '',
'post_type' => '',
'taxonomy' => '',
'class' => ''
)
)
);

/* allow settings to be filtered before saving */
$custom_settings = apply_filters( 'option_tree_settings_args', $custom_settings );

/* settings are not the same update the DB */
if ( $saved_settings !== $custom_settings ) {
update_option( 'option_tree_settings', $custom_settings );
}
}
?>



bu yazı

Ek Olarak: var mı yardım edecek birisi

Ek Olarak: konu güncel ama yrdm eden yok
 

 

elektronikssl
webimgo

mhtbgcck mhtbgcck WM Aracı Kullanıcı
  • Üyelik 29.01.2014
  • Yaş/Cinsiyet 34 / E
  • Meslek Öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad M** B**
  • Mesajlar 7
  • Beğeniler 0 / 1
  • Ticaret 0, (%0)
ftp yi ingilizce kullanıyorsan : transfer > transfer type > Binary

Türkce kullanıyorsanda iki taraflı yükleme mi öle bişey olacak onu işaretle sorun çözülecektir.
sterk

kişi bu mesajı beğendi.

mts mts WM Aracı Kullanıcı
  • Üyelik 18.10.2013
  • Yaş/Cinsiyet 37 / E
  • Meslek Uykucu
  • Konum Diğer
  • Ad Soyad S** U**
  • Mesajlar 473
  • Beğeniler 54 / 125
  • Ticaret 22, (%100)
Sorun düzeldi mi ?
 

 

Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al