integration = "Integration"; $this->shortintegration = "int"; $this->options_integration = array( array( "name" => "Integration", "id" => "_integrate_header_enable", "std" => "" ), array( "name" => "Integration", "id" => "_integrate_body_enable", "std" => "" ), array( "name" => "Integration", "id" => "_integrate_singletop_enable", "std" => "" ), array( "name" => "Integration", "id" => "_integrate_singlebottom_enable", "std" => "" ), array( "name" => "Integration", "id" => "_integration_head", "std" => "" ), array( "name" => "Integration", "id" => "_integration_body", "std" => "" ), array( "name" => "Integration", "id" => "_integration_single_top", "std" => "" ), array( "name" => "Integration", "id" => "_integration_single_bottom", "std" => "" ), array( "name" => "Integration", "id" => "_integration_single_top", "std" => "" ), array( "name" => "Integration", "id" => "_integrate_is_baner_enable", "std" => "" ), array( "name" => "Integration", "id" => "_integrate_baner_image_url", "std" => "" ), array( "name" => "Integration", "id" => "_integrate_baner_click_destination", "std" => "" ), array( "name" => "Integration", "id" => "_integrate_baner_adsens_code", "std" => "" ), ); } /// save changes or reset options public function web_dorado_theme_update_and_get_options_integration(){ if ( isset($_GET['page']) && $_GET['page'] == "web_dorado_theme" && isset($_GET['controller']) && $_GET['controller'] == "integration_page") { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'save') { foreach ($this->options_integration as $value) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } foreach ($this->options_integration as $value) { if (isset($_REQUEST[$value['id']])) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } else { remove_theme_mod($value['id']); } } header("Location: themes.php?page=web_dorado_theme&controller=integration_page&saved=true"); die; } else if (isset($_REQUEST['action']) && $_REQUEST['action'] =='reset') { foreach ($this->options_integration as $value) { remove_theme_mod($value['id']); } header("Location: themes.php?page=web_dorado_theme&controller=integration_page&reset=true"); die; } } } public function web_dorado_integration_page_admin_scripts(){ wp_enqueue_style('integration_page_main_style',get_bloginfo('template_directory').'/admin/css/integration_page.css'); if (function_exists('add_thickbox')) add_thickbox(); wp_print_scripts('media-upload'); } public function dorado_theme_admin_integration(){ if(isset($_REQUEST['controller']) && $_REQUEST['controller']=='integration_page'){ if (isset($_REQUEST['saved']) && $_REQUEST['saved'] ) echo '

Integration settings are saved.

'; if (isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '

Integration settings are reset.

'; } ?>
User Manual
This section allows you to integrate the website with social media and analytical tools. More...

Get the full version    

integration; ?>

Main Integration AdSense and Advertisement Integration

Enable header code

Enable this option to add the header code specified below. Disabling this option removes the header code from your blog (the code is saved and can be used later on).

>

Here you can add code to appear in the head section of every page of your blog (useful adding javascript or css to all pages).

Enable body code

Enable this option to add the body code specified below. Disabling this option removes the body code from your blog (the code is saved and can be used later on).

>

Here you can add code to appear in body section of all pages of your blog. Can be used toenter a tracking pixel for a state counter such as Google Analytics.

Enable single top code

Enable this option to add the single top code specified below. Disabling this option removes the single top code from your blog (the code is saved and can be used later on).

>

Here you can add code to be palcedat the top of all single posts (useful for integrating social bookmarking links for instance).

Enable single bottom code

Enable this option to add the single bottom code specified below. Disabling this option removes the single bottom code from your blog (the code is saved and can be used later on).

>

Here you can add code to be placed at the bottom of all single posts.