"
IMPOSTAZIONI GENERALI
",
"type" => "title"),
array( "name" => "Prima di cominciare",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Link pagina mappa",
"desc" => "Inserisci il link alla pagina della mappa",
"id" => $shortname."_pama",
"type" => "text",
"std" => " "),
array( "type" => "close"),
array( "name" => "General",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Logo URL",
"desc" => "Inserisci il link all'immagine del tuo logo",
"id" => $shortname."_logo",
"type" => "text",
"std" => " "),
array( "type" => "close"),
array( "name" => "Homepage",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Homepage Immagine Slide 1",
"desc" => "Inserisci il link alla prima immagine degli slide",
"id" => $shortname."_header_img",
"type" => "text",
"std" => "http://nextube.info/images/ImmijQuery/image-1.jpg"),
array( "name" => "Homepage Immagine Slide 2",
"desc" => "Inserisci il link alla seconda immagine degli slide",
"id" => $shortname."_header_img2",
"type" => "text",
"std" => "http://nextube.info/images/ImmijQuery/image-2.jpg"),
array( "name" => "Homepage Immagine Slide 3",
"desc" => "Inserisci il link alla terza immagine degli slide",
"id" => $shortname."_header_img3",
"type" => "text",
"std" => "http://nextube.info/images/ImmijQuery/image-3.jpg"),
array( "name" => "Homepage Immagine Slide 4",
"desc" => "Inserisci il link alla quarta immagine degli slide",
"id" => $shortname."_header_img4",
"type" => "text",
"std" => "http://nextube.info/images/ImmijQuery/image-4.jpg"),
array( "name" => "Homepage Immagine Slide 5",
"desc" => "Inserisci il link alla quinta immagine degli slide",
"id" => $shortname."_header_img5",
"type" => "text",
"std" => "http://nextube.info/images/ImmijQuery/image-5.jpg"),
array( "name" => "Homepage Immagine Slide 6",
"desc" => "Inserisci il link alla sesta immagine degli slide",
"id" => $shortname."_header_img6",
"type" => "text",
"std" => "http://nextube.info/images/ImmijQuery/image-6.jpg"),
array( "type" => "close"),
array( "name" => "Footer",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Google Analytics Code",
"desc" => "Inserisci il tuo codice Google Analytics per tracciare le visite che ricevi.",
"id" => $shortname."_ga_code",
"type" => "textarea",
"std" => ""),
array( "type" => "close"),
array( "name" => "Social",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Indirizzo Feed",
"desc" => "Feedburner รจ un sistema fornito da Google per ottimizzare la distribuzione dei tuoi feed, inserisci qui il link al tuo feed",
"id" => $shortname."_feedburner",
"type" => "text",
"std" => get_bloginfo('rss2_url')),
array( "name" => "Facebook URL",
"desc" => "Inserisci il link alla tua pagina Facebook",
"id" => $shortname."_facebook",
"type" => "text",
"std" => "http://facebook.com/pages/Downloadtaky/325661998362"),
array( "name" => "Twitter URL",
"desc" => "Inserisci il link al tuo account Twitter",
"id" => $shortname."_twitter",
"type" => "text",
"std" => "http://twitter.com/downloadtaky"),
array( "type" => "close"),
array( "name" => "Punti sulla mappa",
"type" => "section"),
array( "type" => "open"),
/** Copia da qui per aggiungere un nuovo punto - start copy to add a new point on the map **/
array( "name" => "Zona 1",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 1?",
"desc" => "Seleziona se vuoi il primo fermaposto",
"id" => $shortname."_zona1c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 1 Nome",
"desc" => "Inserisci il nome del primo appartamento",
"id" => $shortname."_zona1n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 1 Asse x",
"desc" => "Scegli dove posizionare il primo punto, se attivato asse x",
"id" => $shortname."_zona1x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 1 Asse y",
"desc" => "Scegli dove posizionare il primo punto, se attivato asse y",
"id" => $shortname."_zona1y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 1 URL",
"desc" => "Inserisci il link al post della zona 1",
"id" => $shortname."_zona1l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
/** Copia fino a qui e rinomina progressivamente in zona2, zona3, zona4 ecc -- Copy from here to add a new zone like zone3, zone 4 and so on**/
array( "name" => "Zona 2",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 2?",
"desc" => "Seleziona se vuoi il secondo fermaposto",
"id" => $shortname."_zona2c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 2 Nome",
"desc" => "Inserisci il nome del secondo appartamento",
"id" => $shortname."_zona2n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 2 Asse x",
"desc" => "Scegli dove posizionare il secondo punto, se attivato asse x",
"id" => $shortname."_zona2x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 2 Asse y",
"desc" => "Scegli dove posizionare il secondo punto, se attivato asse y",
"id" => $shortname."_zona2y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 2 URL",
"desc" => "Inserisci il link al post della zona 2",
"id" => $shortname."_zona2l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 3",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 3?",
"desc" => "Seleziona se vuoi il terzo fermaposto",
"id" => $shortname."_zona3c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 3 Nome",
"desc" => "Inserisci il nome del terzo appartamento",
"id" => $shortname."_zona3n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 3 Asse x",
"desc" => "Scegli dove posizionare il terzo punto, se attivato asse x",
"id" => $shortname."_zona3x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 3 Asse y",
"desc" => "Scegli dove posizionare il terzo punto, se attivato asse y",
"id" => $shortname."_zona3y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 3 URL",
"desc" => "Inserisci il link al post della zona 3",
"id" => $shortname."_zona3l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 4",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 4?",
"desc" => "Seleziona se vuoi il quarto fermaposto",
"id" => $shortname."_zona4c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 4 Nome",
"desc" => "Inserisci il nome del quarto appartamento",
"id" => $shortname."_zona4n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 4 Asse x",
"desc" => "Scegli dove posizionare il quarto punto, se attivato asse x",
"id" => $shortname."_zona4x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 4 Asse y",
"desc" => "Scegli dove posizionare il quarto punto, se attivato asse y",
"id" => $shortname."_zona4y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 4 URL",
"desc" => "Inserisci il link al post della zona 4",
"id" => $shortname."_zona4l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 5",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 5?",
"desc" => "Seleziona se vuoi il quinto fermaposto",
"id" => $shortname."_zona5c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 5 Nome",
"desc" => "Inserisci il nome del quinto appartamento",
"id" => $shortname."_zona5n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 5 Asse x",
"desc" => "Scegli dove posizionare il quinto punto, se attivato asse x",
"id" => $shortname."_zona5x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 5 Asse y",
"desc" => "Scegli dove posizionare il quinto punto, se attivato asse y",
"id" => $shortname."_zona5y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 5 URL",
"desc" => "Inserisci il link al post della zona 5",
"id" => $shortname."_zona5l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 6",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 6?",
"desc" => "Seleziona se vuoi il sesto fermaposto",
"id" => $shortname."_zona6c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 6 Nome",
"desc" => "Inserisci il nome del sesto appartamento",
"id" => $shortname."_zona6n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 6 Asse x",
"desc" => "Scegli dove posizionare il sesto punto, se attivato asse x",
"id" => $shortname."_zona6x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 6 Asse y",
"desc" => "Scegli dove posizionare il sesto punto, se attivato asse y",
"id" => $shortname."_zona6y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 6 URL",
"desc" => "Inserisci il link al post della zona 6",
"id" => $shortname."_zona6l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 7",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 7?",
"desc" => "Seleziona se vuoi il settimo fermaposto",
"id" => $shortname."_zona7c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 7 Nome",
"desc" => "Inserisci il nome del settimo appartamento",
"id" => $shortname."_zona7n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 7 Asse x",
"desc" => "Scegli dove posizionare il settimo punto, se attivato asse x",
"id" => $shortname."_zona7x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 7 Asse y",
"desc" => "Scegli dove posizionare il settimo punto, se attivato asse y",
"id" => $shortname."_zona7y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 7 URL",
"desc" => "Inserisci il link al post della zona 7",
"id" => $shortname."_zona7l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 8",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 8?",
"desc" => "Seleziona se vuoi l/'ottavo fermaposto",
"id" => $shortname."_zona8c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 8 Nome",
"desc" => "Inserisci il nome dell/'ottavo appartamento",
"id" => $shortname."_zona8n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 8 Asse x",
"desc" => "Scegli dove posizionare l/'ottavo punto, se attivato asse x",
"id" => $shortname."_zona8x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 8 Asse y",
"desc" => "Scegli dove posizionare l/' ottavo punto, se attivato asse y",
"id" => $shortname."_zona8y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 8 URL",
"desc" => "Inserisci il link al post della zona 8",
"id" => $shortname."_zona8l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 9",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 9?",
"desc" => "Seleziona se vuoi il nono fermaposto",
"id" => $shortname."_zona9c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 9 Nome",
"desc" => "Inserisci il nome del nono appartamento",
"id" => $shortname."_zona9n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 9 Asse x",
"desc" => "Scegli dove posizionare il nono punto, se attivato asse x",
"id" => $shortname."_zona9x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 9 Asse y",
"desc" => "Scegli dove posizionare il nono punto, se attivato asse y",
"id" => $shortname."_zona9y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 9 URL",
"desc" => "Inserisci il link al post della zona 9",
"id" => $shortname."_zona9l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "name" => "Zona 10",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Attivare zona 10?",
"desc" => "Seleziona se vuoi il decimo fermaposto",
"id" => $shortname."_zona10c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 10 Nome",
"desc" => "Inserisci il nome del decimo appartamento",
"id" => $shortname."_zona10n",
"type" => "text",
"std" => "Nome dell'appartamento"),
array( "name" => "Zona 10 Asse x",
"desc" => "Scegli dove posizionare il decimo punto, se attivato asse x",
"id" => $shortname."_zona10x",
"type" => "text",
"std" => "Left:???"),
array( "name" => "Zona 10 Asse y",
"desc" => "Scegli dove posizionare il decimo punto, se attivato asse y",
"id" => $shortname."_zona10y",
"type" => "text",
"std" => "Top:???"),
array( "name" => "Zona 10 URL",
"desc" => "Inserisci il link al post della zona 10",
"id" => $shortname."_zona10l",
"type" => "text",
"std" => "Indirizzo del post qui"),
array( "type" => "close"),
array( "type" => "close"),
);
function appaqua_add_admin() {
global $themename, $shortname, $options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ( 'save' == $_REQUEST['action'] ) {
foreach ($options as $value) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($options as $value) {
if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }
header("Location: admin.php?page=admin-panel.php&saved=true");
die;
}
else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: admin.php?page=admin-panel.php&reset=true");
die;
}
}
add_menu_page($themename, $themename, 'administrator', basename(__FILE__), 'appaqua_admin');
}
function appaqua_add_init() {
$file_dir=get_bloginfo('template_directory');
wp_enqueue_style("functions", $file_dir."/includes/css/functions.css", false, "1.0", "all");
wp_enqueue_script("rm_script", $file_dir."/includes/js/rm_script.js", false, "1.0");
wp_enqueue_script("site_preview", $file_dir."/includes/js/preview.js", false, "1.0");
};
function appaqua_admin() {
global $themename, $shortname, $options;
$i=0;
if ( $_REQUEST['saved'] ) echo ''.$themename.' settings saved.
';
if ( $_REQUEST['reset'] ) echo ''.$themename.' settings reset.
';
?>
To easily use the theme, you can use the menu below.