This topic has 5 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #101913
     thannah
    Participant

    I made a custom page template for one of my levels and I’m having trouble getting it side by side. Not sure what I am doing wrong here. Could you take a look please.

    COPY CODE
    <?php
    /**
     * Template Name: Back Office
     *
     *
     * @package WordPress
     * @subpackage Sweetdate
     * @author Me
     * @since Sweetdate 1.0
     */
    
    get_header(); ?>
    
    <?php
    // BackOffice page filter
    add_filter('kleo_main_section_class', 'kleo_custom1' );
    function kleo_custom1() { return 'text-center'; }
    add_filter('kleo_content_class', 'kleo_custom2' );
    function kleo_custom2() { return 'twelve'; } 
    remove_action('kleo_before_content', 'kleo_sidebar');
    remove_action('kleo_after_content', 'kleo_sidebar');
    remove_action('kleo_before_content', 'kleo_extra_sidebar');
    remove_action('kleo_after_content', 'kleo_extra_sidebar');
    ?>
    
    <?php get_template_part('page-parts/general-before-wrap');?>
    <div class="twelve columns">
        <img src="https://www.mywebsitehere.com/wp-content/uploads/2015/03/affban-1.png"><br>
        <h2 class="article-title"><?php _e( 'Back Office & Dashboard, isn&rsquo;t it?', 'kleo_framework' ); ?></h2>
    
        
    <br><br><br>
    <div class="row">
    
    <!--begin content-->
    <div id="main-content" class="six columns">
    <aside class="six columns">
    
    <?php
    	global $wpdb, $pmpro_msg, $pmpro_msgt, $pmpro_levels, $current_user, $levels, $pmpro_currency_symbol;
    	
    	//if a member is logged in, show them some info here (1. past invoices. 2. billing information with button to update.)
    	if($current_user->membership_level->ID)
    	{
    	?>	
    	<div id="pmpro_account">		
    		<div id="pmpro_account-membership" class="pmpro_box">
    			<p><?php _e("Your membership is <strong>active</strong>.", "pmpro");?></p>
    			<ul class="no-bullet">
    				<li><strong><?php _e("Level", "pmpro");?>:</strong> <span class="label radius"><?php echo $current_user->membership_level->name?></span></li>
    			<?php if($current_user->membership_level->billing_amount > 0) { ?>
    				<li><strong><?php _e("Membership Fee", "pmpro");?>:</strong>
    				<?php echo $pmpro_currency_symbol?><?php echo $current_user->membership_level->billing_amount?>
    				<?php if($current_user->membership_level->cycle_number > 1) { ?>
    					per <?php echo $current_user->membership_level->cycle_number?> <?php echo sornot($current_user->membership_level->cycle_period,$current_user->membership_level->cycle_number)?>
    				<?php } elseif($current_user->membership_level->cycle_number == 1) { ?>
    					per <?php echo $current_user->membership_level->cycle_period?>
    				<?php } ?>
    				</li>
    			<?php } ?>						
    			
    			<?php if($current_user->membership_level->billing_limit) { ?>
    				<li><strong><?php _e("Duration", "pmpro");?>:</strong> <?php echo $current_user->membership_level->billing_limit.' '.sornot($current_user->membership_level->cycle_period,$current_user->membership_level->billing_limit)?></li>
    			<?php } ?>
    			
    			<?php if($current_user->membership_level->enddate) { ?>
    				<li><strong><?php _e("Membership Expires", "pmpro");?>:</strong> <?php echo date(get_option('date_format'), $current_user->membership_level->enddate)?></li>
    			<?php } ?>
    			
    			<?php if($current_user->membership_level->trial_limit == 1) 
    			{ 
    				printf(__("Your first payment will cost %s.", "pmpro"), $pmpro_currency_symbol . $current_user->membership_level->trial_amount);
    			}
    			elseif(!empty($current_user->membership_level->trial_limit)) 
    			{
    				printf(__("Your first %d payments will cost %s.", "pmpro"), $current_user->membership_level->trial_limit, $pmpro_currency_symbol . $current_user->membership_level->trial_amount);
    			}
    			?>
    			</ul>
    		</div> <!-- end pmpro_account-membership -->
    <br>	
    		<div id="pmpro_account-profile" class="pmpro_box">	
    			<?php get_currentuserinfo(); ?> 
    			<h4><?php _e("My Account", "pmpro");?></h4><br>
    			<?php if($current_user->user_firstname) { ?>
    				<p><?php echo $current_user->user_firstname?> <?php echo $current_user->user_lastname?></p>
    			<?php } ?>
    			<ul class="no-bullet">
    				<li><strong><?php _e("Username", "pmpro");?>:</strong> <?php echo $current_user->user_login?></li>
    				<li><strong><?php _e("Email", "pmpro");?>:</strong> <?php echo $current_user->user_email?></li>
    			</ul><br>
    			<p>
    				<a href="<?php if (function_exists('bp_is_active')) echo bp_loggedin_user_domain().'profile/edit/'; else echo admin_url('profile.php')?>" class="small radius button bordered"><?php _e("Edit Profile", "pmpro");?></a> -
    				<a href="<?php if (function_exists('bp_is_active')) echo bp_loggedin_user_domain().'settings/'; else echo admin_url('profile.php')?>" class="small radius button bordered"><?php _ex("Change Password", "As in 'change password'.", "pmpro");?></a>
    			</p>
    		</div> <!-- end pmpro_account-profile -->
    
    				</div> <!-- end pmpro_account-links -->		
    	</div> <!-- end pmpro_account -->		
    	<?php
    	}
    ?>
    </div><!--end content-->
    </aside>
    <aside class="twelve columns">
    
    <iframe src="https://www.mywebsitehereiframe.com" width="680" height="420"></iframe>
    
    </aside> <!--end twelve columns-->
    <!--end row-->
    
    <br><br><br>
    <div class="twelve columns">
    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
    
            <?php get_template_part( 'content', 'page' ); ?>
    
    <?php endwhile; ?>
    </div><!--end twelve-->
    
    <?php get_template_part('page-parts/general-after-wrap');?>
         
    <?php get_footer(); ?>
    #102062
     Laura
    Moderator

    Hello, could you explain a bit more what do you need? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #102137
     thannah
    Participant

    Yes and thank you. I’m trying to get something side by side using a php template I created based on the theme.

    I want to get the account info in one column and a php calendar next to it.

    #102442
     Laura
    Moderator

    Hello, i see, can you share ftp and admin credentials so i can check it out? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #102804
     thannah
    Participant

    Thank you Laura. I fixed it! Which files do I edit to change the registration page created by buddypress or does Sweet Date override it?

    #103166
     Laura
    Moderator

    Hello, you will find it at the main theme files, but before editing remember to replicate it at child theme so you dont lose changes

    The folder is registration

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?