diff --git a/assets/css/membro.css b/assets/css/membro.css index 29ead02..da120e5 100644 --- a/assets/css/membro.css +++ b/assets/css/membro.css @@ -113,4 +113,32 @@ .coordenadora .membro-setores span { background-color: #323232; color: #fff; +} + +/* Redes Sociais do Membro */ +.membro-redes-sociais { + display: flex; + justify-content: center; + gap: 10px; + margin-top: 5px; + margin-bottom: 5px; +} + +.membro-redes-sociais a.social-icon { + display: flex; + align-items: center; + justify-content: center; + width: 28px; + height: 28px; + border-radius: 50%; + background-color: #e0e0e0; + color: #333; + text-decoration: none; + font-size: 14px; + transition: all 0.3s ease; +} + +.membro-redes-sociais a.social-icon:hover { + background-color: #009a9a; /* theme color */ + color: #fff; } \ No newline at end of file diff --git a/home.php b/home.php index 0618cda..ec292f4 100644 --- a/home.php +++ b/home.php @@ -1,5 +1,4 @@ diff --git a/inc/custom-post-types.php b/inc/custom-post-types.php index 67e6c81..2983a8b 100644 --- a/inc/custom-post-types.php +++ b/inc/custom-post-types.php @@ -71,6 +71,48 @@ function registrar_cpt_cursos() add_action('init', 'registrar_cpt_cursos'); +// Adicionando Meta Box para Redes Sociais no CPT Membros +function registrar_meta_boxes_membros() { + add_meta_box('redes_sociais_membro', 'Redes Sociais', 'render_meta_box_redes_sociais', 'membro', 'normal', 'high'); +} +add_action('add_meta_boxes', 'registrar_meta_boxes_membros'); + +function render_meta_box_redes_sociais($post) { + $instagram = get_post_meta($post->ID, 'instagram_url', true); + $linkedin = get_post_meta($post->ID, 'linkedin_url', true); + $lattes = get_post_meta($post->ID, 'lattes_url', true); + ?> +
+
+
+
+
+
+
+
+
+
' . esc_html($atts['text']) . '
'; + $output .= '