This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setttings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var https = require('https'); | |
var fs = require('fs'); | |
var qs = require('querystring'); | |
var options = { | |
key: fs.readFileSync('server.key'), | |
cert: fs.readFileSync('server.crt') | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paging code | |
// Query to count rows. | |
$result = mysql_query("SELECT * FROM Table_Name WHERE Column_Name = '$section'") | |
$items = 32; // number of items per page. | |
$all = $_GET['a']; | |
$num_rows = mysql_num_rows($result); | |
if($all == "all"){ | |
$items = $num_rows; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// walker menu for breadcrumbs | |
wp_nav_menu( array( | |
'container' => 'none', | |
'theme_location' => 'header-menu', | |
'walker'=> new SH_BreadCrumbWalker, | |
'items_wrap' => '<div id="breadcrumb-%1$s" class="%2$s">%3$s</div>' | |
)); | |
class SH_BreadCrumbWalker extends Walker{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'angular', | |
'moment' | |
], function(angular, moment) { | |
'use strict'; | |
angular.module('common.moment', []) | |
.factory('dateService', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.overview_header { | |
border-bottom: 1px solid $gloo_gray; | |
@include outer-container; | |
padding: 1rem 0 2rem; | |
margin-bottom: 2rem; | |
.average { | |
@include span-columns(6); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// user-profile-controller.js | |
define([ | |
'angular', | |
'components/userProfile/user-profile-factory.js', | |
'components/userProfile/user-profile-directives.js', | |
], | |
function(){ | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.userBasicDetails.relationshipStages = [ | |
{ id : "Single", name: "Single"}, | |
{ id : "Married", name: "Married"} | |
]; | |
// TODO: Display the correct amount of days in dropdown according to month.days | |
$scope.userBasicDetails.months = [ | |
{ id : "Janurary", name: "Janurary", days: '31' }, | |
{ id : "February", name: "February", days: '28' }, | |
{ id : "March", name: "March", days: '31' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// session-service.js | |
this.setAuth = function(token) { | |
if (!!token && !localStorage.getItem('Token')) { | |
setTokenToLocalStore(token); | |
} | |
$http.defaults.headers.common.Authorization = token ? "Token " + token : localStorage.getItem("Token"); | |
} | |
// app-controller.js |
NewerOlder