diff --git a/library/custom-postsoLD.php b/library/custom-postsoLD.php
index 1e9c2ff..7fcab80 100644
--- a/library/custom-postsoLD.php
+++ b/library/custom-postsoLD.php
@@ -1,116 +1,119 @@
true, 'label' => 'Anys', 'singular_label' => 'Any', 'rewrite' => true));
- }
+// function admin_init(){
+ // add_meta_box("dades_artistes", "Dades artista i obra", "dades_obres_autor", "page", "normal", "high");
+ // add_meta_box("dades_activitats", "Dades activitats", "dades_cal_activitats", "post", "side", "low");
+ // add_meta_box("incloure_home","Incloure a la home","incloure_at_home","page","side","high");
+ // add_meta_box("incloure_home","Incloure a la home","incloure_at_home","post","side","high");
+ // add_meta_box("equip","Dades personals","afegir_dades_personals","page","normal","high");
+// }
+// add_action( 'init', 'anys_artistes', 0 );
-function dades_obres_autor() {
- global $post;
- $custom = get_post_custom($post->ID);
- $autor_obra = $custom['autor_obra'][0];
- $data_obra = $custom['data_obra'][0];
- $autor_data_resid = $custom['autor_data_resid'][0];
-
- //here we construct the fields for the backend user interface
-?>
-
-
-
-
-
-
-
- true, 'label' => 'Anys', 'singular_label' => 'Any', 'rewrite' => true));
+ // }
-function dades_cal_activitats() {
- global $post;
- $custom = get_post_custom($post->ID);
- $data_activitat = $custom['data_activitat'][0];
- $lloc_activitat = $custom['lloc_activitat'][0];
- $horari_activitat = $custom['horari_activitat'][0];
-
- //here we construct the fields for the backend user interface
-?>
-
-
-
-
-
-
-
-ID);
+ // $autor_obra = $custom['autor_obra'][0];
+ // $data_obra = $custom['data_obra'][0];
+ // $autor_data_resid = $custom['autor_data_resid'][0];
-function afegir_dades_personals() {
- global $post;
- $custom = get_post_custom($post->ID);
- $carrec = $custom['carrec'][0];
- $email = $custom['email'][0];
- $telefon = $custom['telefon'][0];
-
- //here we construct the fields for the backend user interface
+ //here we construct the fields for the backend user interface
?>
-
-
-
-
-
-
+
+
+
+
+
+
+
ID);
- $Inici = $custom['Inici'][0];
- $Ordre_inici = $custom['Ordre_inici'][0];
- //here we construct the fields for the backend user interface
+// }
+
+// function dades_cal_activitats() {
+ // global $post;
+ // $custom = get_post_custom($post->ID);
+ // $data_activitat = $custom['data_activitat'][0];
+ // $lloc_activitat = $custom['lloc_activitat'][0];
+ // $horari_activitat = $custom['horari_activitat'][0];
+
+ //here we construct the fields for the backend user interface
?>
-
- />
-
-
+
+
+
+
+
+
+
ID);
+ // $carrec = $custom['carrec'][0];
+ // $email = $custom['email'][0];
+ // $telefon = $custom['telefon'][0];
+
+ //here we construct the fields for the backend user interface
+?>
+
+
+
+
+
+
+ID);
+ // $Inici = $custom['Inici'][0];
+ // $Ordre_inici = $custom['Ordre_inici'][0];
+ //here we construct the fields for the backend user interface
+?>
+
+
+
+
+ID;
-function save_details(){
- global $post;
- $post_id = $post->ID;
-
// verify if this is an auto save routine. If it is our form has not been submitted, so we dont want
// to do anything
- if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
- return $post_id;
- if ($post->post_type == 'page') :
- update_post_meta($post_id, "autor_obra", $_POST['autor_obra']);
- update_post_meta($post_id, "data_obra", $_POST['data_obra']);
- update_post_meta($post_id, "autor_data_resid", $_POST['autor_data_resid']);
- update_post_meta($post_id, "Inici", $_POST['Inici']);
- update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
- update_post_meta($post_id, "carrec", $_POST['carrec']);
- update_post_meta($post_id, "email", $_POST['email']);
- update_post_meta($post_id, "telefon", $_POST['telefon']);
- else :
- update_post_meta($post_id, "Inici", $_POST['Inici']);
- update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
- update_post_meta($post_id, "data_activitat", $_POST['data_activitat']);
- update_post_meta($post_id, "lloc_activitat", $_POST['lloc_activitat']);
- update_post_meta($post_id, "horari_activitat", $_POST['horari_activitat']);
- endif;
-} //end function
-?>
\ No newline at end of file
+ // if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
+ // return $post_id;
+ // if ($post->post_type == 'page') :
+ // update_post_meta($post_id, "autor_obra", $_POST['autor_obra']);
+ // update_post_meta($post_id, "data_obra", $_POST['data_obra']);
+ // update_post_meta($post_id, "autor_data_resid", $_POST['autor_data_resid']);
+ // update_post_meta($post_id, "Inici", $_POST['Inici']);
+ // update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
+ // update_post_meta($post_id, "carrec", $_POST['carrec']);
+ // update_post_meta($post_id, "email", $_POST['email']);
+ // update_post_meta($post_id, "telefon", $_POST['telefon']);
+ // else :
+ // update_post_meta($post_id, "Inici", $_POST['Inici']);
+ // update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
+ // update_post_meta($post_id, "data_activitat", $_POST['data_activitat']);
+ // update_post_meta($post_id, "lloc_activitat", $_POST['lloc_activitat']);
+ // update_post_meta($post_id, "horari_activitat", $_POST['horari_activitat']);
+ // endif;
+// } //end function
+?>