<a title="View Courses" href="<?php 
    echo SITE_URL . 'courses/category/' . $categoryObj->id . '/' . StringManipulator::slugify($categoryObj->name) . '/';
    ?>
" class="post_info_date"><?php 
    echo number_format(Course::getSingleCategoryCount($dbObj, $categoryObj->id));
    ?>
</a>
                                                </span>
                                            </div>
                                            <div class="post_descr">
                                                <p class="text-justify"><?php 
    echo StringManipulator::trimStringToFullWord(160, strip_tags($categoryObj->description));
    ?>
</p>
                                                <a title="View Courses" href="<?php 
    echo SITE_URL . 'courses/category/' . $categoryObj->id . '/' . StringManipulator::slugify($categoryObj->name) . '/';
    ?>
" class="sc_button sc_button_square sc_button_style_filled sc_button_bg_link sc_button_size_small">VIEW COURSES</a>					
                                            </div>
                                        </div>				<!-- /.post_content -->
                                    </article>	<!-- /.post_item -->
                                </div>						<!-- /.isotope_item -->
                                <?php 
}
?>
                            </div> <!-- /.isotope_wrap -->
                        </div> <!-- /div class="content" -->
                    </div> <!-- /div class="content_wrap" -->			
                </div>		<!-- /.page_content_wrap -->
			
		<?php 
Esempio n. 2
0
    echo $courseObj->name;
    ?>
</h5>
                                                            <div class="sc_accordion_content">
                                                                <div class="wpb_text_column wpb_content_element ">
                                                                    <div class="wpb_wrapper">
                                                                        <p><?php 
    echo StringManipulator::trimStringToFullWord(200, strip_tags($courseObj->description));
    ?>
..</p>
                                                                        <p>Date: <?php 
    echo $courseObj->endDate;
    ?>
</p>
                                                                        <p><a href="<?php 
    echo SITE_URL . 'course/' . $courseObj->id . '/' . StringManipulator::slugify($courseObj->name) . '/';
    ?>
">View Full Details</a></p>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                    </div>
                                                    <?php 
}
?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </section> <!-- /section class="post_content" itemprop="articleBody" -->	
Esempio n. 3
0
                                                                    <h6 class="sc_team_item_title">
                                                                        <a href="<?php 
    echo SITE_URL . 'member/' . $memberObj->id . '/' . StringManipulator::slugify($memberObj->name) . '/';
    ?>
"><?php 
    echo $memberObj->name;
    ?>
</a>
                                                                    </h6>
                                                                    <div class="sc_team_item_position"><?php 
    echo $memberObj->qualification;
    ?>
</div>       
                                                                    <div class="sc_team_item_position">
                                                                        <a href="<?php 
    echo SITE_URL . 'member/' . $memberObj->id . '/' . StringManipulator::slugify($memberObj->name) . '/';
    ?>
" data-animation="animated fadeInUp normal" class="sc_button sc_button_square sc_button_style_filled sc_button_bg_menu sc_button_size_small aligncenter animated fadeInUp normal" style="margin-top:10px;margin-bottom:4px;">VIEW INFO</a>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php 
}
?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="sc_line sc_line_style_solid" style="margin-top:0px;margin-bottom:0px;border-top-style:solid;"></div>
                                    </div>
Esempio n. 4
0
/">
                                                                        <img width="80" height="80" src="<?php 
    echo $otherEventObj->image;
    ?>
" class="attachment-thumb_80x80 wp-post-image" alt="<?php 
    echo $otherEventObj->name;
    ?>
" />
                                                                    </a>
                                                                </div>
                                                                <h4 class="ev-title">
                                                                    <a href="<?php 
    echo SITE_URL;
    ?>
event/<?php 
    echo $otherEventObj->id . "/" . StringManipulator::slugify($otherEventObj->name);
    ?>
/" class="related-ev-title main-color-1-hover"><?php 
    echo $otherEventObj->name;
    ?>
</a>
                                                                </h4>
                                                                <div class="ev-start small-text" style="text-transform: none;text-align: justify"><?php 
    echo StringManipulator::trimStringToFullWord(160, trim(stripcslashes(strip_tags($otherEventObj->description))));
    ?>
</div>
                                                                <br/>
                                                                <div class="ev-start small-text"><i class="fa fa-calendar"></i> <?php 
    echo explode(' ', $otherEventObj->dateTime)[0];
    ?>
</div>
Esempio n. 5
0
 /**
  * create the li element for ul
  */
 private function _showDay($cellNumber)
 {
     if ($this->currentDay == 0) {
         $firstDayOfTheWeek = date('N', strtotime($this->currentYear . '-' . $this->currentMonth . '-01'));
         if (intval($cellNumber) == intval($firstDayOfTheWeek)) {
             $this->currentDay = 1;
         }
     }
     if ($this->currentDay != 0 && $this->currentDay <= $this->daysInMonth) {
         $this->currentDate = date('Y-m-d', strtotime($this->currentYear . '-' . $this->currentMonth . '-' . $this->currentDay));
         $cellContent = $this->currentDay;
         $this->currentDay++;
     } else {
         $this->currentDate = null;
         $cellContent = null;
     }
     $now = new DateTime();
     $realToday = $now->format('Y-m-d');
     $styledVal = '';
     if ($this->currentDate == $realToday) {
         $styledVal = "text-decoration:underline;";
     }
     $thisReturnVal = '<li style="' . $styledVal . '" id="li-' . $this->currentDate . '" class="' . ($cellNumber % 7 == 1 ? ' start ' : ($cellNumber % 7 == 0 ? ' end ' : ' ')) . ($cellContent == null ? 'mask' : '') . '">' . $cellContent . '</li>';
     $calCourseObj = new Course(self::$dbObj);
     $calCourseToday = $calCourseObj->fetchRaw("*", " status = 1 AND start_date = '{$this->currentDate}' ", " id LIMIT 1");
     if (count($calCourseToday) > 0) {
         foreach ($calCourseToday as $calCourseTod) {
             $thisReturnVal = '<li style="' . $styledVal . '" id="li-' . $this->currentDate . '" class="' . ($cellNumber % 7 == 1 ? ' start ' : ($cellNumber % 7 == 0 ? ' end ' : ' ')) . ($cellContent == null ? 'mask' : '') . '"><a title="' . $calCourseTod['name'] . '" href="' . SITE_URL . 'course/' . $calCourseTod['id'] . '/' . StringManipulator::slugify($calCourseTod['name']) . '/' . '">' . $cellContent . '</a></li>';
         }
     }
     return $thisReturnVal;
 }
Esempio n. 6
0
                                                                <div class="ev-start small-text"><i class="fa fa-map-marker"></i> <?php 
    echo $eventObj->location;
    ?>
</div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="project-item-excerpt">
                                                        <div class="exerpt-text text-justify"><?php 
    echo StringManipulator::trimStringToFullWord(160, trim(stripcslashes(strip_tags($eventObj->description))));
    ?>
&hellip; <a href="<?php 
    echo SITE_URL;
    ?>
event/<?php 
    echo $eventObj->id . '/' . StringManipulator::slugify($eventObj->name);
    ?>
/" class="btn btn-danger btn-sm text-success" style="max-height:25px;padding:2px;border-color:transparent">More</a></div>
                                                    </div>
                                                </div><!--item-content-->
                                            </div>
                                        </div><!--col-md-3-->
                                        <?php 
}
?>
                                    </div>
                                </div>
                            </div><!--/content-->
                        </div><!--/row-->
                    </div><!--/content-pad-3x-->
                </div><!--/container-->
    ?>
" class="attachment-thumb_80x80 wp-post-image" alt="<?php 
    echo $sideEvent['name'];
    ?>
" />
                                            <div class="thumbnail-hoverlay main-color-1-bg"></div>
                                            <div class="thumbnail-hoverlay-cross"></div>
                                    </div>
                            </a>
                        </div>
                        <div class="u-details item-content">
                            <h5><a href="<?php 
    echo SITE_URL;
    ?>
event/<?php 
    echo $sideEvent['id'] . '/' . StringManipulator::slugify($sideEvent['name']);
    ?>
/" title="<?php 
    echo $sideEvent['name'];
    ?>
" class="main-color-1-hover"><?php 
    echo $sideEvent['name'];
    ?>
</a></h5>
                            <span><?php 
    echo $sideEvent['date_time'];
    ?>
</span>
                        </div>
                        <div class="clearfix"></div>
                            
Esempio n. 8
0
    echo $category['name'];
    ?>
" class="main-color-1-hover"><?php 
    echo $category['name'];
    ?>
</a></h3>
                                                                                        <div class="shortcode-blog-excerpt"><?php 
    echo StringManipulator::trimStringToFullWord(250, trim(stripcslashes(strip_tags($category['description']))));
    ?>
</div>
                                                                                        <div class="item-meta">
                                                                                            <a class="btn btn-default btn-lighter" href="<?php 
    echo SITE_URL;
    ?>
category/<?php 
    echo $category['id'] . "/" . StringManipulator::slugify($category['name']);
    ?>
/" title="<?php 
    echo $category['name'];
    ?>
">DETAILS <i class="fa fa-angle-right"></i></a>
                                                                                            <a href="category?id=<?php 
    echo $category['id'];
    ?>
" class="main-color-1-hover" title="View comments"></a>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div><!--/post-item-->
                                                                    </div>
</div>
                                                                                    <div class="day"><?php 
        echo $dateParam[2];
        ?>
</div>
                                                                                    <div class="year"><?php 
        echo $dateParam[0];
        ?>
</div>
                                                                                </div>
                                                                                <div class="event-overlay">
                                                                                    <a class="overlay-top" href="<?php 
        echo SITE_URL;
        ?>
course/<?php 
        echo $course['id'] . "/" . StringManipulator::slugify($course['name']);
        ?>
/" title="<?php 
        echo $course['name'];
        ?>
">
                                                                                    <h4><?php 
        echo $course['name'];
        ?>
</h4>
                                                                                    <span class="price yellow"> <?php 
        echo $course['currency'] . ' ' . number_format($course['amount'], 2);
        ?>
</span>
                                                                                    </a>
                                                                                    <div class="overlay-bottom">
 // Form fields names
 $oldHeader = $_REQUEST['oldHeader'];
 $oldLogo = $_REQUEST['oldLogo'];
 //Validate the POST variables and add up to error message if empty
 foreach ($postVars as $postVar) {
     switch ($postVar) {
         case 'header':
             $newHeader = basename($_FILES["header"]["name"]) ? rand(100000, 1000000) . "_" . StringManipulator::slugify(filter_input(INPUT_POST, 'title')) . "." . pathinfo(basename($_FILES["header"]["name"]), PATHINFO_EXTENSION) : "";
             $contestObj->{$postVar} = $newHeader;
             if ($contestObj->{$postVar} == "") {
                 $contestObj->{$postVar} = $oldHeader;
             }
             $contestHeaderFil = $newHeader;
             break;
         case 'logo':
             $newLogo = basename($_FILES["logo"]["name"]) ? rand(100000, 1000000) . "_" . StringManipulator::slugify(filter_input(INPUT_POST, 'title')) . "." . pathinfo(basename($_FILES["logo"]["name"]), PATHINFO_EXTENSION) : "";
             $contestObj->{$postVar} = $newLogo;
             if ($contestObj->{$postVar} == "") {
                 $contestObj->{$postVar} = $oldLogo;
             }
             $contestLogoFil = $newLogo;
             break;
         case 'css':
             $contestObj->{$postVar} = filter_input(INPUT_POST, $postVar) ? mysqli_real_escape_string($dbObj->connection, filter_input(INPUT_POST, $postVar)) : '';
             break;
         default:
             $contestObj->{$postVar} = filter_input(INPUT_POST, $postVar) ? mysqli_real_escape_string($dbObj->connection, filter_input(INPUT_POST, $postVar)) : '';
             if ($contestObj->{$postVar} == "") {
                 array_push($errorArr, " {$postVar} ");
             }
             break;
Esempio n. 11
0
            $cfg->infoMessage = '<h3>Contest invitation failed!</h3> <p>Please try again later.</p>';
        }
    } else {
        $cfg->infoMessage = $thisPage->showError($errorArr);
    }
}
//Refered Visitor's Handler
if (filter_input(INPUT_GET, "referer") != NULL && filter_input(INPUT_GET, "invitee") != NULL) {
    $entrantObj->email = Entrant::getSingle($dbObj, 'email', filter_input(INPUT_GET, "referer", FILTER_VALIDATE_INT));
    $entrantObj->friends = filter_input(INPUT_GET, "invitee") ? filter_input(INPUT_GET, "invitee") : "";
    $entrantObj->contest = $thisContestId;
    $friendNamesList = Entrant::getSingle($dbObj, 'names', $entrantObj->email);
    $friendEmailsList = Entrant::getSingle($dbObj, 'friends', $entrantObj->email);
    $friendEmailsArr = explode(",", $friendEmailsList);
    $friendNamesArr = explode(",", $friendNamesList);
    $inviteeName = $friendNamesArr[array_search(trim($entrantObj->friends), $friendEmailsArr)];
    //strrpos($friendNamesList, $friendNamesArr[array_search(trim($entrantObj->friends), $friendEmailsArr)]."[m]");
    if (in_array(trim($entrantObj->friends), $friendEmailsArr) && !strrpos($inviteeName, "[m]")) {
        if ($entrantObj->emailExists() == true) {
            //Existing Entrant handler
            $entrantObj->point = Number::getNumber($contestObj->point) + Entrant::getSingle($dbObj, 'point', $entrantObj->email);
            //fetch current point
            $entrantObj->updateSingleRaw($dbObj, "point", $entrantObj->point, $entrantObj->email);
            $entrantObj->updateSingleRaw($dbObj, "names", str_ireplace($inviteeName, $inviteeName . "[m]", $friendNamesList), $entrantObj->email);
        }
    }
    $thisPage->redirectTo(SITE_URL . "contest/{$contestObj->id}/" . StringManipulator::slugify($contestObj->title) . "/");
}
include 'includes/other-settings.php';
$thisPage->author = $cfg->author;
include $cfg->templateLoc . $cfg->templateName . '/index.php';
Esempio n. 12
0
    ?>
</p>
                        <p><strong>Start Date:</strong> <?php 
    echo str_replace("-", "@", $contestObj->startDate);
    ?>
</p>
                        <p><strong>End Date:</strong> <?php 
    echo str_replace("-", "@", $contestObj->endDate);
    ?>
</p>
                        <p>
                            <a href="<?php 
    echo SITE_URL . "contest/{$contestObj->id}/" . StringManipulator::slugify($contestObj->title) . "/";
    ?>
" class="btn btn-primary">Enter Now!</a> <a href="<?php 
    echo SITE_URL . "contest/{$contestObj->id}/" . StringManipulator::slugify($contestObj->title) . "/";
    ?>
" class="btn btn-default">More Info!</a>
                        </p>
                    </div>
                </div>
            </div>
            <?php 
}
?>
        </div>
        <!-- /.row -->
        <hr>
        <!-- Footer -->
        <footer>
            <div class="row">
Esempio n. 13
0
echo SITE_URL . 'courses/public-sector/';
?>
">Public Sector Courses</a></li>
                                            </ul>
                                        </li>
                                        <li id="menu-item-1398" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1398"><a href="<?php 
echo SITE_URL . 'course-categories/';
?>
">Course Categories</a>
                                            <ul class="sub-menu">
                                                <?php 
$menuCatObj = new CourseCategory($dbObj);
foreach ($menuCatObj->fetchRaw("*", " 1=1 ", " name ASC ") as $menuCategory) {
    ?>
                                                <li id="menu-item-1399" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1399"><a href="<?php 
    echo SITE_URL . 'courses/category/' . $menuCategory['id'] . '/' . StringManipulator::slugify($menuCategory['name']) . '/';
    ?>
"><?php 
    echo $menuCategory['name'];
    ?>
</a></li>
                                                <?php 
}
?>
                                            </ul>
                                        </li>
                                    </ul>
                                </li>
                                <li id="menu-item-829" class="menu-item menu-item-type-post_type menu-item-object-page <?php 
echo $thisPage->active($_SERVER['REQUEST_URI'], 'member', 'current-menu-item  current_page_item');
?>
Esempio n. 14
0
/">
                                                                        <img width="80" height="80" src="<?php 
    echo $relatedCategoryObj->image;
    ?>
" class="attachment-thumb_80x80 wp-post-image" alt="<?php 
    echo $relatedCategoryObj->name;
    ?>
" />
                                                                    </a>
                                                                </div>
                                                                <h4 class="ev-title">
                                                                    <a href="<?php 
    echo SITE_URL;
    ?>
category/<?php 
    echo $relatedCategoryObj->id . "/" . StringManipulator::slugify($relatedCategoryObj->name);
    ?>
/" class="related-ev-title main-color-1-hover"><?php 
    echo $relatedCategoryObj->name;
    ?>
</a>
                                                                </h4>
                                                                <div class="ev-start small-text" style="text-transform: none"><?php 
    echo StringManipulator::trimStringToFullWord(160, trim(stripcslashes(strip_tags($relatedCategoryObj->description))));
    ?>
</div>
                                                                <div class="clear"></div>
                                                            </div>
                                                            <?php 
}
?>
Esempio n. 15
0
/">
                                                                        <img width="80" height="80" src="<?php 
    echo $relatedCourseObj->image;
    ?>
" class="attachment-thumb_80x80 wp-post-image" alt="<?php 
    echo $relatedCourseObj->name;
    ?>
" />
                                                                    </a>
                                                                </div>
                                                                <h4 class="ev-title">
                                                                    <a href="<?php 
    echo SITE_URL;
    ?>
course/<?php 
    echo $relatedCourseObj->id . "/" . StringManipulator::slugify($relatedCourseObj->name);
    ?>
/" class="related-ev-title main-color-1-hover"><?php 
    echo $relatedCourseObj->name;
    ?>
</a>
                                                                </h4>
                                                                <div class="ev-start small-text"><?php 
    echo $relatedCourseObj->startDate;
    ?>
</div>
                                                                <div class="clear"></div>
                                                            </div>
                                                            <?php 
}
?>