Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <----------------------- HEADER_USER_PAGE.PHP ------------------->
- <?php
- /**
- * The Header for Italystrap profile page
- *
- * Displays all of the <head> section and Main menu
- *
- * For improve performance replace $lang_attr with lang="xx-XX" when xx_XX is your language (en_EN - de_DE - fr_FR - ecc)
- * Otherwise you can use <?php language_attributes(); ?> instead
- *
- * You can also replace <?php bloginfo( 'charset' ); ?> with "UTF-8" or your charset
- * @since ItalyStrap 1.0
- */
- $lang_attr = get_bloginfo('language');
- ?>
- <!DOCTYPE html>
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="<?php echo $lang_attr; ?>" prefix="og: http://ogp.me/ns#"> <![endif]-->
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="<?php echo $lang_attr; ?>" prefix="og: http://ogp.me/ns#"> <![endif]-->
- <!--[if IE 8]> <html class="no-js lt-ie9" lang="<?php echo $lang_attr; ?>" prefix="og: http://ogp.me/ns#"> <![endif]-->
- <!--[if gt IE 8]><!--> <html class="no-js" lang="<?php echo $lang_attr; ?>" prefix="og: http://ogp.me/ns#"> <!--<![endif]-->
- <head>
- <meta charset="UTF-8" >
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- acf-form-head -->
- <?php acf_form_head(); ?>
- <!-- acf-form-head -->
- <?php wp_head();?>
- <?php wp_footer(); ?>
- </head>
- <body <?php body_class( 'fuelux' ); ?> style="background-color: #AEAEAE;">
- <div class="blog-wrapper">
- <header style="background-color: #5ca4ff;">
- <div class="content-wrapper">
- <div style="min-height: 70px;">
- <div class="row">
- <div class="col-xs-12 col-sm-6 col-md-6 col-ld-6">
- <span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
- <a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home" itemprop="url"><img alt="<?php bloginfo('name'); ?>" src="<?php echo italystrap_logo();?>" style="margin-top: 1.5em;margin-bottom: 1em;height: 70px;"></a>
- <meta itemprop="image" content="<?php echo italystrap_logo();?>"/>
- <meta itemprop="name" content="<?php bloginfo('name'); ?>"/>
- </span>
- </div>
- <div class="col-xs-12 col-sm-6 col-md-6 col-ld-6" style="margin-top: 1.5em;margin-bottom: 1em;">
- <?php if ( ! dynamic_sidebar( 'navigation-right' ) ) : ?>
- <?php endif; ?>
- </div>
- </div><!--#row -->
- </div><!-- #div -->
- </div><!-- #content-wrapper -->
- <div class="clearfix"></div>
- <?php
- /**
- * This it's only a nav container
- * .navbar-wrapper style is in _menu.scss css/src/sass
- */
- ?>
- <nav class="navbar-wrapper" role="navigation">
- <div itemscope itemtype="http://schema.org/SiteNavigationElement">
- <?php
- /**
- * Modify style for menù with bootstrap style
- * @link http://getbootstrap.com/components/#navbar
- */
- ?>
- <div id="navbar" class="navbar navbar-inverse navbar-static-top">
- <div class="container inner-wrapper">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <?php //Recupero i dati per l'intestaizione del menù
- $itm = get_field('personalizza');
- if ($itm == 'Personalizza Link'):
- $int_menu = get_field('html_menu');
- echo '' . $int_menu . '' ?>
- <? elseif ($itm == 'Linka Pagina'):
- $int_menu = get_field('pagina'); ?>
- <span itemscope itemtype="http://data-vocabulary.org/Product">
- <a class="navbar-brand" href="<?php echo esc_url( get_permalink($int_menu->ID) ); ?>" title="<?php echo $int_menu->post_title; ?>" rel="home" itemprop="category" content=""><span itemprop="name"><?php echo $int_menu->post_title; ?></span></a>
- </span>
- <?php else: ?>
- <span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
- <a class="navbar-brand" href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home" itemprop="url"><span itemprop="name">Studio AEF</span></a>
- </span>
- <? endif; ?>
- </div>
- <?php clean_custom_menu( 'user' ); ?>
- </div>
- </div>
- </div>
- </nav>
- </header>
- <div class="container-fluid">
- <?php
- if ( class_exists('ItalyStrapBreadcrumbs') ) {
- $defaults = array(
- 'home' => '<span class="glyphicon glyphicon-home" aria-hidden="true"></span>',
- 'open_wrapper' => '<ol class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">',
- 'closed_wrapper' => '</ol>',
- 'before_element' => '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">',
- 'before_element_active' => '<li class="active" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">',
- 'after_element' => '</li>',
- 'wrapper_name' => '<span itemprop="name">',
- 'close_wrapper_name' => '</span>'
- );
- new ItalyStrapBreadcrumbs( $defaults );
- }
- ?>
- </div>
- <----------------------- USER_PAGE.PHP -------------->
- <?php
- /*
- Template Name: Pagina Utente
- Scopo Template: Pagina Utente
- */
- // IMPOSTO IL MODULO DI REGISTRAZIONI COME NECESSARIO PER FAR GIRARE IL TUTTO
- require_once( ABSPATH . WPINC . '/registration.php' );
- require_once( ABSPATH . WPINC . '/class-phpass.php');
- print_r($_POST);
- ?>
- <head>
- <?php get_header('user_page'); ?>
- </head>
- <body>
- <section id="page-user">
- <div class="container-fliud">
- <?php
- // Recupero le informazioni dell'utente corrente.
- global $current_user;
- get_currentuserinfo();
- // recupero il parametro per acf filed
- $su = wsl_get_stored_hybridauth_user_profiles_by_user_id( $current_user->ID );
- $u_id = 'user_' . $current_user->ID;
- $url = site_url( 'wp-json/acf/v2/user/' . $current_user->ID );
- ?>
- <?php if (!empty(get_currentuserinfo()->ID)):
- while ( have_posts() ) : the_post();
- $options = array(
- 'post_id' => $u_id,
- 'field_groups' => array(4099),
- 'honeypot' => true
- );
- acf_form( $options );
- endwhile;
- //get_template_part( 'loops/content', 'profile-user');
- else:
- get_template_part( 'loops/content', 'none');
- endif; ?>
- </div>
- </section>
- <?php //acf_enqueue_uploader(); ?>
- </body>
- <footer>
- <?php get_footer('user_page'); ?>
- </footer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement