Advertisement
downloadtaky

admin-panel.php

Mar 24th, 2011
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 18.80 KB | None | 0 0
  1. <?php
  2. /** Declare the themename and shortname -- Ecco il nome del template e la sua abbreviazione **/
  3. $themename = "Appartamenti Acquario";
  4.  
  5. $shortname = "appaqua";
  6. /** Set the array with all the theme options -- Impostiamo l'array con tutte le opzioni del tema **/
  7.  
  8. $options = array (
  9.  
  10. array(
  11.  
  12. "desc" => "<h3>IMPOSTAZIONI GENERALI</h3>",
  13. "type" => "title"),
  14. array( "name" => "Prima di cominciare",
  15.     "type" => "section"),
  16. array( "type" => "open"),
  17. array( "name" => "Link pagina mappa",
  18.     "desc" => "Inserisci il link alla pagina della mappa",
  19.     "id" => $shortname."_pama",
  20.     "type" => "text",
  21.     "std" => " "),
  22. array( "type" => "close"),
  23. array( "name" => "General",
  24.     "type" => "section"),
  25. array( "type" => "open"),
  26. array( "name" => "Logo URL",
  27.     "desc" => "Inserisci il link all'immagine del tuo logo",
  28.     "id" => $shortname."_logo",
  29.     "type" => "text",
  30.     "std" => " "), 
  31. array( "type" => "close"),
  32. array( "name" => "Homepage",
  33.     "type" => "section"),
  34. array( "type" => "open"),
  35. array( "name" => "Homepage Immagine Slide 1",
  36.     "desc" => "Inserisci il link alla prima immagine degli slide",
  37.     "id" => $shortname."_header_img",
  38.     "type" => "text",
  39.     "std" => "http://nextube.info/images/ImmijQuery/image-1.jpg"),
  40. array( "name" => "Homepage Immagine Slide 2",
  41.     "desc" => "Inserisci il link alla seconda immagine degli slide",
  42.     "id" => $shortname."_header_img2",
  43.     "type" => "text",
  44.     "std" => "http://nextube.info/images/ImmijQuery/image-2.jpg"),
  45. array( "name" => "Homepage Immagine Slide 3",
  46.     "desc" => "Inserisci il link alla terza immagine degli slide",
  47.     "id" => $shortname."_header_img3",
  48.     "type" => "text",
  49.     "std" => "http://nextube.info/images/ImmijQuery/image-3.jpg"),
  50. array( "name" => "Homepage Immagine Slide 4",
  51.     "desc" => "Inserisci il link alla quarta immagine degli slide",
  52.     "id" => $shortname."_header_img4",
  53.     "type" => "text",
  54.     "std" => "http://nextube.info/images/ImmijQuery/image-4.jpg"),
  55. array( "name" => "Homepage Immagine Slide 5",
  56.     "desc" => "Inserisci il link alla quinta immagine degli slide",
  57.     "id" => $shortname."_header_img5",
  58.     "type" => "text",
  59.     "std" => "http://nextube.info/images/ImmijQuery/image-5.jpg"),
  60. array( "name" => "Homepage Immagine Slide 6",
  61.     "desc" => "Inserisci il link alla sesta immagine degli slide",
  62.     "id" => $shortname."_header_img6",
  63.     "type" => "text",
  64.     "std" => "http://nextube.info/images/ImmijQuery/image-6.jpg"),
  65. array( "type" => "close"),
  66. array( "name" => "Footer",
  67.     "type" => "section"),
  68. array( "type" => "open"),
  69. array( "name" => "Google Analytics Code",
  70.     "desc" => "Inserisci il tuo codice Google Analytics per tracciare le visite che ricevi.",
  71.     "id" => $shortname."_ga_code",
  72.     "type" => "textarea",
  73.     "std" => ""),
  74. array( "type" => "close"),
  75. array( "name" => "Social",
  76.     "type" => "section"),
  77. array( "type" => "open"),
  78. array( "name" => "Indirizzo Feed",
  79.     "desc" => "Feedburner รจ un sistema fornito da Google per ottimizzare la distribuzione dei tuoi feed, inserisci qui il link al tuo feed",
  80.     "id" => $shortname."_feedburner",
  81.     "type" => "text",
  82.     "std" => get_bloginfo('rss2_url')),
  83. array( "name" => "Facebook URL",
  84.     "desc" => "Inserisci il link alla tua pagina Facebook",
  85.     "id" => $shortname."_facebook",
  86.     "type" => "text",
  87.     "std" => "http://facebook.com/pages/Downloadtaky/325661998362"),
  88. array( "name" => "Twitter URL",
  89.     "desc" => "Inserisci il link al tuo account Twitter",
  90.     "id" => $shortname."_twitter",
  91.     "type" => "text",
  92.     "std" => "http://twitter.com/downloadtaky"),
  93. array( "type" => "close"),
  94. array( "name" => "Punti sulla mappa",
  95.     "type" => "section"),
  96. array( "type" => "open"),
  97. /** Copia da qui per aggiungere un nuovo punto - start copy to add a new point on the map **/
  98. array( "name" => "Zona 1",
  99.     "type" => "section"),
  100. array( "type" => "open"),
  101. array(  "name" => "Attivare zona 1?",
  102.         "desc" => "Seleziona se vuoi il primo fermaposto",
  103.         "id" => $shortname."_zona1c",
  104.         "type" => "checkbox",
  105.         "std" => "false"),
  106. array( "name" => "Zona 1 Nome",
  107.     "desc" => "Inserisci il nome del primo appartamento",
  108.     "id" => $shortname."_zona1n",
  109.     "type" => "text",
  110.     "std" => "Nome dell'appartamento"),
  111. array( "name" => "Zona 1 Asse x",
  112.     "desc" => "Scegli dove posizionare il primo punto, se attivato asse x",
  113.     "id" => $shortname."_zona1x",
  114.     "type" => "text",
  115.     "std" => "Left:???"),
  116. array( "name" => "Zona 1 Asse y",
  117.     "desc" => "Scegli dove posizionare il primo punto, se attivato asse y",
  118.     "id" => $shortname."_zona1y",
  119.     "type" => "text",
  120.     "std" => "Top:???"),
  121. array( "name" => "Zona 1 URL",
  122.     "desc" => "Inserisci il link al post della zona 1",
  123.     "id" => $shortname."_zona1l",
  124.     "type" => "text",
  125.     "std" => "Indirizzo del post qui"),
  126. array( "type" => "close"),
  127. /** 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**/
  128. array( "name" => "Zona 2",
  129.     "type" => "section"),
  130. array( "type" => "open"),
  131. array(  "name" => "Attivare zona 2?",
  132.         "desc" => "Seleziona se vuoi il secondo fermaposto",
  133.         "id" => $shortname."_zona2c",
  134.         "type" => "checkbox",
  135.         "std" => "false"),
  136. array( "name" => "Zona 2 Nome",
  137.     "desc" => "Inserisci il nome del secondo appartamento",
  138.     "id" => $shortname."_zona2n",
  139.     "type" => "text",
  140.     "std" => "Nome dell'appartamento"),
  141. array( "name" => "Zona 2 Asse x",
  142.     "desc" => "Scegli dove posizionare il secondo punto, se attivato asse x",
  143.     "id" => $shortname."_zona2x",
  144.     "type" => "text",
  145.     "std" => "Left:???"),
  146. array( "name" => "Zona 2 Asse y",
  147.     "desc" => "Scegli dove posizionare il secondo punto, se attivato asse y",
  148.     "id" => $shortname."_zona2y",
  149.     "type" => "text",
  150.     "std" => "Top:???"),
  151.     array( "name" => "Zona 2 URL",
  152.     "desc" => "Inserisci il link al post della zona 2",
  153.     "id" => $shortname."_zona2l",
  154.     "type" => "text",
  155.     "std" => "Indirizzo del post qui"),
  156. array( "type" => "close"),
  157. array( "name" => "Zona 3",
  158.     "type" => "section"),
  159. array( "type" => "open"),
  160. array(  "name" => "Attivare zona 3?",
  161.         "desc" => "Seleziona se vuoi il terzo fermaposto",
  162.         "id" => $shortname."_zona3c",
  163.         "type" => "checkbox",
  164.         "std" => "false"),
  165. array( "name" => "Zona 3 Nome",
  166.     "desc" => "Inserisci il nome del terzo appartamento",
  167.     "id" => $shortname."_zona3n",
  168.     "type" => "text",
  169.     "std" => "Nome dell'appartamento"),
  170. array( "name" => "Zona 3 Asse x",
  171.     "desc" => "Scegli dove posizionare il terzo punto, se attivato asse x",
  172.     "id" => $shortname."_zona3x",
  173.     "type" => "text",
  174.     "std" => "Left:???"),
  175. array( "name" => "Zona 3 Asse y",
  176.     "desc" => "Scegli dove posizionare il terzo punto, se attivato asse y",
  177.     "id" => $shortname."_zona3y",
  178.     "type" => "text",
  179.     "std" => "Top:???"),
  180.     array( "name" => "Zona 3 URL",
  181.     "desc" => "Inserisci il link al post della zona 3",
  182.     "id" => $shortname."_zona3l",
  183.     "type" => "text",
  184.     "std" => "Indirizzo del post qui"),
  185. array( "type" => "close"),
  186. array( "name" => "Zona 4",
  187.     "type" => "section"),
  188. array( "type" => "open"),
  189. array(  "name" => "Attivare zona 4?",
  190.         "desc" => "Seleziona se vuoi il quarto fermaposto",
  191.         "id" => $shortname."_zona4c",
  192.         "type" => "checkbox",
  193.         "std" => "false"),
  194. array( "name" => "Zona 4 Nome",
  195.     "desc" => "Inserisci il nome del quarto appartamento",
  196.     "id" => $shortname."_zona4n",
  197.     "type" => "text",
  198.     "std" => "Nome dell'appartamento"),
  199. array( "name" => "Zona 4 Asse x",
  200.     "desc" => "Scegli dove posizionare il quarto punto, se attivato asse x",
  201.     "id" => $shortname."_zona4x",
  202.     "type" => "text",
  203.     "std" => "Left:???"),
  204. array( "name" => "Zona 4 Asse y",
  205.     "desc" => "Scegli dove posizionare il quarto punto, se attivato asse y",
  206.     "id" => $shortname."_zona4y",
  207.     "type" => "text",
  208.     "std" => "Top:???"),
  209.     array( "name" => "Zona 4 URL",
  210.     "desc" => "Inserisci il link al post della zona 4",
  211.     "id" => $shortname."_zona4l",
  212.     "type" => "text",
  213.     "std" => "Indirizzo del post qui"),
  214. array( "type" => "close"),
  215. array( "name" => "Zona 5",
  216.     "type" => "section"),
  217. array( "type" => "open"),
  218. array(  "name" => "Attivare zona 5?",
  219.         "desc" => "Seleziona se vuoi il quinto fermaposto",
  220.         "id" => $shortname."_zona5c",
  221.         "type" => "checkbox",
  222.         "std" => "false"),
  223. array( "name" => "Zona 5 Nome",
  224.     "desc" => "Inserisci il nome del quinto appartamento",
  225.     "id" => $shortname."_zona5n",
  226.     "type" => "text",
  227.     "std" => "Nome dell'appartamento"),
  228. array( "name" => "Zona 5 Asse x",
  229.     "desc" => "Scegli dove posizionare il quinto punto, se attivato asse x",
  230.     "id" => $shortname."_zona5x",
  231.     "type" => "text",
  232.     "std" => "Left:???"),
  233. array( "name" => "Zona 5 Asse y",
  234.     "desc" => "Scegli dove posizionare il quinto punto, se attivato asse y",
  235.     "id" => $shortname."_zona5y",
  236.     "type" => "text",
  237.     "std" => "Top:???"),
  238.     array( "name" => "Zona 5 URL",
  239.     "desc" => "Inserisci il link al post della zona 5",
  240.     "id" => $shortname."_zona5l",
  241.     "type" => "text",
  242.     "std" => "Indirizzo del post qui"),
  243. array( "type" => "close"),
  244. array( "name" => "Zona 6",
  245.     "type" => "section"),
  246. array( "type" => "open"),
  247. array(  "name" => "Attivare zona 6?",
  248.         "desc" => "Seleziona se vuoi il sesto fermaposto",
  249.         "id" => $shortname."_zona6c",
  250.         "type" => "checkbox",
  251.         "std" => "false"),
  252. array( "name" => "Zona 6 Nome",
  253.     "desc" => "Inserisci il nome del sesto appartamento",
  254.     "id" => $shortname."_zona6n",
  255.     "type" => "text",
  256.     "std" => "Nome dell'appartamento"),
  257. array( "name" => "Zona 6 Asse x",
  258.     "desc" => "Scegli dove posizionare il sesto punto, se attivato asse x",
  259.     "id" => $shortname."_zona6x",
  260.     "type" => "text",
  261.     "std" => "Left:???"),
  262. array( "name" => "Zona 6 Asse y",
  263.     "desc" => "Scegli dove posizionare il sesto punto, se attivato asse y",
  264.     "id" => $shortname."_zona6y",
  265.     "type" => "text",
  266.     "std" => "Top:???"),
  267.     array( "name" => "Zona 6 URL",
  268.     "desc" => "Inserisci il link al post della zona 6",
  269.     "id" => $shortname."_zona6l",
  270.     "type" => "text",
  271.     "std" => "Indirizzo del post qui"),
  272. array( "type" => "close"),
  273. array( "name" => "Zona 7",
  274.     "type" => "section"),
  275. array( "type" => "open"),
  276. array(  "name" => "Attivare zona 7?",
  277.         "desc" => "Seleziona se vuoi il settimo fermaposto",
  278.         "id" => $shortname."_zona7c",
  279.         "type" => "checkbox",
  280.         "std" => "false"),
  281. array( "name" => "Zona 7 Nome",
  282.     "desc" => "Inserisci il nome del settimo appartamento",
  283.     "id" => $shortname."_zona7n",
  284.     "type" => "text",
  285.     "std" => "Nome dell'appartamento"),
  286. array( "name" => "Zona 7 Asse x",
  287.     "desc" => "Scegli dove posizionare il settimo punto, se attivato asse x",
  288.     "id" => $shortname."_zona7x",
  289.     "type" => "text",
  290.     "std" => "Left:???"),
  291. array( "name" => "Zona 7 Asse y",
  292.     "desc" => "Scegli dove posizionare il settimo punto, se attivato asse y",
  293.     "id" => $shortname."_zona7y",
  294.     "type" => "text",
  295.     "std" => "Top:???"),
  296.     array( "name" => "Zona 7 URL",
  297.     "desc" => "Inserisci il link al post della zona 7",
  298.     "id" => $shortname."_zona7l",
  299.     "type" => "text",
  300.     "std" => "Indirizzo del post qui"),
  301. array( "type" => "close"),
  302. array( "name" => "Zona 8",
  303.     "type" => "section"),
  304. array( "type" => "open"),
  305. array(  "name" => "Attivare zona 8?",
  306.         "desc" => "Seleziona se vuoi l/'ottavo fermaposto",
  307.         "id" => $shortname."_zona8c",
  308.         "type" => "checkbox",
  309.         "std" => "false"),
  310. array( "name" => "Zona 8 Nome",
  311.     "desc" => "Inserisci il nome dell/'ottavo appartamento",
  312.     "id" => $shortname."_zona8n",
  313.     "type" => "text",
  314.     "std" => "Nome dell'appartamento"),
  315. array( "name" => "Zona 8 Asse x",
  316.     "desc" => "Scegli dove posizionare l/'ottavo punto, se attivato asse x",
  317.     "id" => $shortname."_zona8x",
  318.     "type" => "text",
  319.     "std" => "Left:???"),
  320. array( "name" => "Zona 8 Asse y",
  321.     "desc" => "Scegli dove posizionare l/' ottavo punto, se attivato asse y",
  322.     "id" => $shortname."_zona8y",
  323.     "type" => "text",
  324.     "std" => "Top:???"),
  325.     array( "name" => "Zona 8 URL",
  326.     "desc" => "Inserisci il link al post della zona 8",
  327.     "id" => $shortname."_zona8l",
  328.     "type" => "text",
  329.     "std" => "Indirizzo del post qui"),
  330. array( "type" => "close"),
  331. array( "name" => "Zona 9",
  332.     "type" => "section"),
  333. array( "type" => "open"),
  334. array(  "name" => "Attivare zona 9?",
  335.         "desc" => "Seleziona se vuoi il nono fermaposto",
  336.         "id" => $shortname."_zona9c",
  337.         "type" => "checkbox",
  338.         "std" => "false"),
  339. array( "name" => "Zona 9 Nome",
  340.     "desc" => "Inserisci il nome del nono appartamento",
  341.     "id" => $shortname."_zona9n",
  342.     "type" => "text",
  343.     "std" => "Nome dell'appartamento"),
  344. array( "name" => "Zona 9 Asse x",
  345.     "desc" => "Scegli dove posizionare il nono punto, se attivato asse x",
  346.     "id" => $shortname."_zona9x",
  347.     "type" => "text",
  348.     "std" => "Left:???"),
  349. array( "name" => "Zona 9 Asse y",
  350.     "desc" => "Scegli dove posizionare il nono punto, se attivato asse y",
  351.     "id" => $shortname."_zona9y",
  352.     "type" => "text",
  353.     "std" => "Top:???"),
  354.     array( "name" => "Zona 9 URL",
  355.     "desc" => "Inserisci il link al post della zona 9",
  356.     "id" => $shortname."_zona9l",
  357.     "type" => "text",
  358.     "std" => "Indirizzo del post qui"),
  359. array( "type" => "close"),
  360. array( "name" => "Zona 10",
  361.     "type" => "section"),
  362. array( "type" => "open"),
  363. array(  "name" => "Attivare zona 10?",
  364.         "desc" => "Seleziona se vuoi il decimo fermaposto",
  365.         "id" => $shortname."_zona10c",
  366.         "type" => "checkbox",
  367.         "std" => "false"),
  368. array( "name" => "Zona 10 Nome",
  369.     "desc" => "Inserisci il nome del decimo appartamento",
  370.     "id" => $shortname."_zona10n",
  371.     "type" => "text",
  372.     "std" => "Nome dell'appartamento"),
  373. array( "name" => "Zona 10 Asse x",
  374.     "desc" => "Scegli dove posizionare il decimo punto, se attivato asse x",
  375.     "id" => $shortname."_zona10x",
  376.     "type" => "text",
  377.     "std" => "Left:???"),
  378. array( "name" => "Zona 10 Asse y",
  379.     "desc" => "Scegli dove posizionare il decimo punto, se attivato asse y",
  380.     "id" => $shortname."_zona10y",
  381.     "type" => "text",
  382.     "std" => "Top:???"),
  383.     array( "name" => "Zona 10 URL",
  384.     "desc" => "Inserisci il link al post della zona 10",
  385.     "id" => $shortname."_zona10l",
  386.     "type" => "text",
  387.     "std" => "Indirizzo del post qui"),
  388. array( "type" => "close"),
  389. array( "type" => "close"),
  390. );
  391.  
  392. function appaqua_add_admin() {
  393.  
  394. global $themename, $shortname, $options;
  395.  
  396. if ( $_GET['page'] == basename(__FILE__) ) {
  397.  
  398.     if ( 'save' == $_REQUEST['action'] ) {
  399.  
  400.         foreach ($options as $value) {
  401.         update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
  402.  
  403. foreach ($options as $value) {
  404.     if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }
  405.  
  406.     header("Location: admin.php?page=admin-panel.php&saved=true");
  407. die;
  408.  
  409. }
  410. else if( 'reset' == $_REQUEST['action'] ) {
  411.  
  412.     foreach ($options as $value) {
  413.         delete_option( $value['id'] ); }
  414.  
  415.     header("Location: admin.php?page=admin-panel.php&reset=true");
  416. die;
  417.  
  418. }
  419. }
  420.  
  421. add_menu_page($themename, $themename, 'administrator', basename(__FILE__), 'appaqua_admin');
  422. }
  423.  
  424. function appaqua_add_init() {
  425. $file_dir=get_bloginfo('template_directory');
  426. wp_enqueue_style("functions", $file_dir."/includes/css/functions.css", false, "1.0", "all");
  427. wp_enqueue_script("rm_script", $file_dir."/includes/js/rm_script.js", false, "1.0");
  428. wp_enqueue_script("site_preview", $file_dir."/includes/js/preview.js", false, "1.0");
  429. };
  430.  
  431. function appaqua_admin() {
  432.  
  433. global $themename, $shortname, $options;
  434. $i=0;
  435.  
  436. if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
  437. if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
  438.  
  439. ?>
  440. <div class="wrap rm_wrap">
  441. <h2><?php echo $themename; ?> Settings</h2>
  442.  
  443. <div class="rm_opts">
  444. <form method="post">
  445. <?php foreach ($options as $value) {
  446. switch ( $value['type'] ) {
  447.  
  448. case "open":
  449. ?>
  450.  
  451. <?php break;
  452.  
  453. case "close":
  454. ?>
  455.  
  456. </div>
  457. </div>
  458. <br />
  459.  
  460.  
  461. <?php break;
  462.  
  463. case "title":
  464. ?>
  465. <p>To easily use the <?php echo $themename;?> theme, you can use the menu below.</p>
  466.  
  467.  
  468. <?php break;
  469.  
  470. case 'text':
  471. ?>
  472.  
  473. <div class="rm_input rm_text">
  474.     <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
  475.     <input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id'])  ); } else { echo $value['std']; } ?>" />
  476.  <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
  477.  
  478.  </div>
  479. <?php
  480. break;
  481.  
  482. case 'textarea':
  483. ?>
  484.  
  485. <div class="rm_input rm_textarea">
  486.     <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
  487.     <textarea name="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?></textarea>
  488.  <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
  489.  
  490.  </div>
  491.  
  492. <?php
  493. break;
  494.  
  495. case 'select':
  496. ?>
  497.  
  498. <div class="rm_input rm_select">
  499.     <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
  500.    
  501. <select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
  502. <?php foreach ($value['options'] as $option) { ?>
  503.         <option <?php if (get_settings( $value['id'] ) == $option) { echo 'selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?>
  504. </select>
  505.  
  506.     <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
  507. </div>
  508. <?php
  509. break;
  510.  
  511. case "checkbox":
  512. ?>
  513.  
  514. <div class="rm_input rm_checkbox">
  515.     <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
  516.    
  517. <?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
  518. <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
  519.  
  520.  
  521.     <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
  522.  </div>
  523. <?php break;
  524. case "section":
  525.  
  526. $i++;
  527.  
  528. ?>
  529.  
  530. <div class="rm_section">
  531. <div class="rm_title"><h3><img src="<?php bloginfo('template_directory')?>/includes/css/images/trans.png" class="inactive" alt="""><?php echo $value['name']; ?></h3><span class="submit"><input name="save<?php echo $i; ?>" type="submit" value="Save changes" />
  532. </span><div class="clearfix"></div></div>
  533. <div class="rm_options">
  534. <?php break;
  535. }
  536. }
  537. ?>
  538. <input type="hidden" name="action" value="save" />
  539. </form>
  540. <form method="post">
  541. <p class="submit">
  542. <input name="reset" type="submit" value="Reset" />
  543. <input type="hidden" name="action" value="reset" />
  544. </p>
  545. </form>
  546. <div style="font-size:9px; margin-bottom:10px;">Icons: <a href="http://www.woothemes.com/2009/09/woofunction/">WooFunction</a></div>
  547.  </div>
  548.  <iframe id="themepreview" name="themepreview" src="<?php echo get_option('appaqua_pama'); ?>/?preview=1"></iframe>
  549. <?php
  550. }
  551. ?>
  552. <?php
  553. $nonce = wp_create_nonce('site_preview');
  554. ?>
  555. <?php
  556. add_action('admin_init', 'appaqua_add_init');
  557. add_action('admin_menu', 'appaqua_add_admin');
  558. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement