
<?php get_sidebar() ?>


</div><!--/ .entry-->
<!-- ************** - END Entry - ************** -->


<!-- ************** - Bottom Content Container - ************** -->

<?php
if (is_object($post)) {
    $page_bottom = get_post_meta($post->ID, 'page_bottom', true);
    if (!empty($page_bottom)) {
        echo '<div class="box"><div class="content-wrapper">' . do_shortcode(html_entity_decode($page_bottom)) . '<div class="clear"></div></div></div>';
    }
}
?>

<!-- ************** - Bottom Content Container End - ************** -->
<!-- ********************* - Footer - ********************* -->
<?php if (!ThemeMakersThemeModel::get_option('hide_footer')): ?>
    <footer id="footer" class="clearfix">

        <?php
        $before_widget = '<div id="%1$s" class="widget %2$s">';
        $after_widget = '</div>';
        $before_title = '<h3 class="widget-title">';
        $after_title = '</h3>';
        ?>

        <section class="entry-footer clearfix">

            <div class="one-fourth">
                <?php if (function_exists('dynamic_sidebar') AND dynamic_sidebar('Footer First Sidebar')): else: ?>
                    <?php wp_enqueue_script("twitter.js", THEMEMAKERS_THEME_URI . "/js/twitter.js") ?>
					<div class="widget widget_tweet">
                    <h3><?php _e('Latest Tweets', THEMEMAKERS_THEME_FOLDER_NAME); ?></h3>
                    <div id="jstwitter" class="jstwitter"></div>
                    <div class="more text-align-right"><a  target="_blank" href="https://twitter.com/thememakers"><?php _e('See all', THEMEMAKERS_THEME_FOLDER_NAME); ?> <span>&raquo;</span></a></div>
					</div>
                <?php endif; ?>
            </div><!--/ .one-fourth-->

            <div class="one-fourth">

                <?php if (function_exists('dynamic_sidebar') AND dynamic_sidebar('Footer Second Sidebar')):else: ?>
                    <?php wp_enqueue_script("jflickrfeed.min.js", THEMEMAKERS_THEME_URI . "/js/jflickrfeed.min.js") ?>
                    <h3><?php _e('Flickr Photos', THEMEMAKERS_THEME_FOLDER_NAME); ?></h3>
                    <ul id="flickr-badge" class="clearfix flickr-badge"></ul>
                    <div class="more text-align-left"><a target="_blank" href="http://www.flickr.com/photos/54958895@N06"><?php _e('View more photos', THEMEMAKERS_THEME_FOLDER_NAME); ?> <span>&raquo;</span></a></div>
                <?php endif; ?>

            </div><!--/ .one-fourth-->

            <div class="one-fourth">

                <?php if (function_exists('dynamic_sidebar') AND dynamic_sidebar('Footer Third Sidebar')):else: ?>
                    <h3><?php _e('Text widget sample', THEMEMAKERS_THEME_FOLDER_NAME) ?></h3>
                    <div class="text">
                        <p>
                            Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut 
                            labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
                            ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in 
                            reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur 
                            sint occaecat cupidatat.
                        </p>

                    </div><!--/ .text-->
                <?php endif; ?>

            </div><!--/ .one-fourth-->

            <div class="one-fourth last">
                <?php if (function_exists('dynamic_sidebar') AND dynamic_sidebar('Footer Fourth Sidebar')):else: ?>
                    <?php
                    $widget = new ThemeMakers_Archives_Widget();
                    $instance = array(
                        'post_type' => 'post',
                        'show_daily_archive' => 1,
                        'show_weekly_archive' => 1,
                        'show_monthly_archive' => 1,
                        'show_yearly_archive' => 1,
                        'day_limit' => 14,
                        'year_limit' => 10
                    );
                    $widget_args = array(
                        'name' => __('Footer Fourth Sidebar', THEMEMAKERS_THEME_FOLDER_NAME),
                        'id' => 'footer_fourth_sidebar',
                        'before_widget' => $before_widget,
                        'after_widget' => $after_widget,
                        'before_title' => $before_title,
                        'after_title' => $after_title
                    );
                    $widget->widget($widget_args, $instance);
                    ?>

                <?php endif; ?>
            </div><!--/ .one-fourth.last-->	

        </section><!--/ .entry-footer-->
		
				<div class="copyright">
						<div class="copy">
								<?php echo ThemeMakersThemeModel::get_option('copyright_text') ?>
						</div>
						<div class="developed">
								Developed by
								<a href="http://20script.ir" target="_blank">20script.ir</a>
						</div>
				</div><!--/ .copyright-->
				
		


    </footer><!--/ #footer-->
<?php endif; ?>
<!-- ******************* - END Footer - ******************* -->


</div><!--/ .container-->
<!-- *************** - END Container - *************** -->


</div><!--/ #wrapper--> 

<!-- ***************** - END Wrapper - ***************** -->
<?php if (!is_user_logged_in()): ?>

    <div style="display: none;">

        <div id="login-popup" class="login-popup">

            <hgroup class="login-title-image">

                <?php
                $logo_font = $_REQUEST['logo_font'];
                $logo_type = $_REQUEST['logo_type'];
                $logo_text = $_REQUEST['logo_text'];
                $logo_img = $_REQUEST['logo_img'];

                if (!$logo_type AND $logo_text) {
                    $default_logo_text = explode(" ", $logo_text);
                    $default_logo_text1 = "";
                    $default_logo_text2 = "";
                    if (count($default_logo_text) > 1) {
                        $default_logo_text1 = @$default_logo_text[0];
                        unset($default_logo_text[0]);
                        $default_logo_text2 = implode(" ", $default_logo_text);
                    } else {
                        $default_logo_text1 = $logo_text;
                    }
                    ?>
                    <a href="<?php echo home_url(); ?>"><h1 style="font-family: '<?php echo $logo_font ?>' !important;" ><?php echo $default_logo_text1; ?></h1><span style="font-family: '<?php echo $logo_font ?>' !important;" ><?php echo $default_logo_text2; ?></span></a>
                <?php } else if ($logo_type AND $logo_img) { ?>
                    <a href="<?php echo home_url(); ?>"><img src="<?php echo $logo_img; ?>" alt="<?php bloginfo('name'); ?>" /></a>
                    <?php
                } else {

                    $bloginfo_name = get_bloginfo('name');
                    $default_logo_text = explode(" ", $bloginfo_name);
                    $default_logo_text1 = "";
                    $default_logo_text2 = "";
                    if (count($default_logo_text) > 1) {
                        $default_logo_text1 = @$default_logo_text[0];
                        unset($default_logo_text[0]);
                        $default_logo_text2 = implode(" ", $default_logo_text);
                    } else {
                        $default_logo_text1 = $bloginfo_name;
                    }
                    ?>
                    <a href="<?php echo home_url(); ?>"><h1><?php echo $default_logo_text1; ?></h1><span><?php echo $default_logo_text2; ?></span></a>
                <?php } ?>

            </hgroup>

            <div class="form-login">

                <ul class="inputs">

                    <li>
                        <label class="label-styled" for="login-name"><?php _e('Username', THEMEMAKERS_THEME_FOLDER_NAME); ?></label>
                        <input type="text" class="input-styled" value="" id="user_login" name="login-name">
                    </li>
                    <li>
                        <label class="label-styled" for="pass"><?php _e('Password', THEMEMAKERS_THEME_FOLDER_NAME); ?></label>
                        <input type="password" class="input-styled" value="" id="user_pass" name="pass">
                    </li>
                    <li>
                        <label class="check"><input type="checkbox" /><?php _e('Remember Me', THEMEMAKERS_THEME_FOLDER_NAME); ?></label>
                        <button class="button small yellow js_login_button"><?php _e('Log In', THEMEMAKERS_THEME_FOLDER_NAME); ?></button>
                    </li>
                    <li>
                        <span class="error-login" style="display: none"><?php _e('Wrong username or password!', THEMEMAKERS_THEME_FOLDER_NAME); ?></span>
                    </li>

                </ul><!--/ .inputs-->			

            </div><!--/ .form-login-->

            <footer>
                <a href="<?php home_url() ?>/wp-login.php?action=lostpassword" class="forgot-pass"><?php _e('Lost Your password', THEMEMAKERS_THEME_FOLDER_NAME); ?>?</a>
            </footer>

        </div><!--/ .login-popup-->

        <div id="create-account" class="login-popup">

            <hgroup class="login-title-image">

                <?php
                if (!$logo_type AND $logo_text) {
                    $default_logo_text = explode(" ", $logo_text);
                    $default_logo_text1 = "";
                    $default_logo_text2 = "";
                    if (count($default_logo_text) > 1) {
                        $default_logo_text1 = @$default_logo_text[0];
                        unset($default_logo_text[0]);
                        $default_logo_text2 = implode(" ", $default_logo_text);
                    } else {
                        $default_logo_text1 = $logo_text;
                    }
                    ?>
                    <a href="<?php echo home_url(); ?>"><h1 style="font-family: '<?php echo $logo_font ?>' !important;" ><?php echo $default_logo_text1; ?></h1><span style="font-family: '<?php echo $logo_font ?>' !important;" ><?php echo $default_logo_text2; ?></span></a>
                <?php } else if ($logo_type AND $logo_img) { ?>
                    <a href="<?php echo home_url(); ?>"><img src="<?php echo $logo_img; ?>" alt="<?php bloginfo('name'); ?>" /></a>
                    <?php
                } else {

                    $bloginfo_name = get_bloginfo('name');
                    $default_logo_text = explode(" ", $bloginfo_name);
                    $default_logo_text1 = "";
                    $default_logo_text2 = "";
                    if (count($default_logo_text) > 1) {
                        $default_logo_text1 = @$default_logo_text[0];
                        unset($default_logo_text[0]);
                        $default_logo_text2 = implode(" ", $default_logo_text);
                    } else {
                        $default_logo_text1 = $bloginfo_name;
                    }
                    ?>
                    <a href="<?php echo home_url(); ?>"><h1><?php echo $default_logo_text1; ?></h1><span><?php echo $default_logo_text2; ?></span></a>
                <?php } ?>

            </hgroup>

            <div class="form-login">

                <ul class="inputs">

                    <li>
                        <label class="label-styled" for="login-name"><?php _e('Username', THEMEMAKERS_THEME_FOLDER_NAME); ?></label>
                        <input type="text" class="input-styled" value="" id="login_name" name="login-name">
                    </li>
                    <li>
                        <label class="label-styled" for="pass"><?php _e('E-mail', THEMEMAKERS_THEME_FOLDER_NAME); ?></label>
                        <input type="text" class="input-styled" value="" id="login_email" name="login-email">
                    </li>
                    <li>
                        <span class="register-info" style="display: none"></span>
                    </li>
                    <li>
                        <button class="button small yellow js_register_button"><?php _e('Register', THEMEMAKERS_THEME_FOLDER_NAME); ?></button>
                    </li>

                </ul><!--/ .inputs-->				

            </div><!--/ .form-login-->

            <footer>
                <a href="<?php home_url() ?>/wp-login.php?action=lostpassword" class="forgot-pass"><?php _e('Lost Your password', THEMEMAKERS_THEME_FOLDER_NAME); ?>?</a>
            </footer>

        </div><!--/ .login-popup-->

    </div><!--/ none-->

<?php endif; ?>
	
<?php wp_footer(); ?>

<!-- /*  */ --->
</body>
</html>

