Exemple #1
0
            $('input[name="answer-filter"]').each( function (){
                if($(this).prop('checked') == true){
                    answer= $(this).val();
                }
            });


            if($('#input-my-posts').attr('data-checked') == 'true'){
                mine_only = $('#input-my-posts').val();
            }

            Template.empty('topics_container');
            Template.loading('topics_container');
            var callback = function(data){
                var json = data['topics'];
                console.log(data['topics']);
                var objJSON = eval(json);
                Template.render('forum-list','topics_container',objJSON);
                Template.endLoading('topics_container');
            }
            var defered = Forum.searchTopics(callback,category,text,answer,mine_only,false);


        }
    </script>

<?php 
mfr_get_template('toast');
mfr_get_template('modal');
include_once VIEW_PATH . DS . 'footer.php';
Exemple #2
0
<?php

$banner = true;
$bannerArgs = array();
include_once VIEW_PATH . DS . 'index.php';
if (isset($banner)) {
    mfr_get_template('banner', $bannerArgs);
}
?>

<div class="col-lg-8 col-lg-offset-2 inner"><!-- Account start -->
    <div class="col-lg-6">
        <h2 class="post-title"><?php 
echo $scope['current-workout'];
?>
</h2>
        <h2><?php 
echo $scope['instructions-text'];
?>
</h2>
        <ul class="errors-ul">
            <?php 
foreach ($scope['instructions'] as $s) {
    ?>
                <li><?php 
    echo $s;
    ?>
</li><br>
            <?php 
}
?>
Exemple #3
0
    ?>
" style="width: 100%" />
                    </div>
                </div>
            </form>
        </a>
    <?php 
}
?>
</div>
<script src="<?php 
echo COACHING_URL;
?>
/app/www/js/diet.js"></script>
<?php 
mfr_get_template('confirm');
?>
<script>
    var diet = new Diet('<?php 
echo COACHING_URL;
?>
');

    adaptRecipe = function(id){
        $.ajax({
            url: "<?php 
echo $scope['website'];
?>
/user/diet/adapt/",
            type: 'POST',
            dataType: 'JSON',
Exemple #4
0
<?php 
include_once VIEW_PATH . '/index.php';
// Banner
$args = array('page-title' => $scope['my-account'], 'redirect-url' => $scope['website'], 'redirect-title' => $scope['home'], 'website-part' => $scope['my-account']);
mfr_get_template('banner', $args);
?>

<div class="col-lg-8 col-lg-offset-2 inner">
    <!-- // SIGN IN ////////// -->

    <?php 
include_once VIEW_PATH . DS . 'auth' . DS . 'signin.php';
?>
    <?php 
include_once VIEW_PATH . DS . 'auth' . DS . 'signup.php';
?>

</div>

<script src="<?php 
echo mfr_path();
?>
app/www/js/auth.js" ></script>
<script>
    // Script vars:
    var scope = '<?php 
json_encode($scope);
?>
';
    var website = '<?php 
Exemple #5
0
<?php

$banner = true;
$bannerArgs = array();
include_once VIEW_PATH . DS . 'coaching' . DS . 'index.php';
?>

<div class="row">
    <div class="col-lg-6">
        <h2 class="text-capitalize"><?php 
echo $scope['overview'];
?>
</h2>
        <?php 
$args = $scope['coaching-status'];
mfr_get_template('list_panel', $args);
?>
    </div>

</div>
    <!-- // Closing the template -->
    </div><!-- //Account end --->
<?php 
include_once VIEW_PATH . DS . 'footer.php';
Exemple #6
0
mfr_get_template('list_panel_simple', $args);
?>
        <!-- Last achievements -->
        <br>
        <h2><?php 
echo $scope['last-feedbacks'];
?>
</h2>
            <?php 
$args = array();
foreach ($scope['last-achievements'] as $achievement) {
    $tmp['value'] = $achievement;
    $tmp['class'] = 'break-word';
    array_push($args, $tmp);
}
mfr_get_template('list_panel_simple', $args);
?>
    </div>
<!-- // Right Side -->
    <div class="col-lg-6">
        <div class="row">
            <h2><?php 
echo $scope['this-week-you-earn'];
?>
</h2>
            <form class="login">
                <div class="text-center row m-t-minus-30">
                    <span class="giant pink-text"><?php 
echo $scope['to-recieve'];
?>
<small class="pink-text">€</small></span>