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
<?php | |
require_once("template_functions.php"); | |
class CounterBuilder { | |
/* Information about the counters to render. | |
* Allowed options: | |
* 'label' | |
* 'display': 'hidden', 'show' |
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
<?php | |
// Create a new user. | |
require_once("../models/config.php"); | |
set_error_handler('logAllErrors'); | |
// Request method: POST | |
$ajax = checkRequestMode("post"); |
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
<?php | |
$user_choices = []; | |
if (checkActionPermission('loadUsers', array())) { | |
if (($users = loadUsers()) === false) { | |
apiReturnError($ajax, ACCOUNT_ROOT); | |
} | |
foreach ($users as $user_id => $user){ |
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
<?php | |
/** | |
* The main template file | |
* | |
* This is the most generic template file in a WordPress theme and one of the | |
* two required files for a theme (the other being style.css). | |
* It is used to display a page when nothing more specific matches a query. | |
* For example, it puts together the home page when no home.php file exists. | |
* | |
* @link http://codex.wordpress.org/Template_Hierarchy |
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
-- | |
-- Table structure for table `uf_user` | |
-- | |
CREATE TABLE IF NOT EXISTS `uf_user` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`user_name` varchar(50) NOT NULL, | |
`display_name` varchar(50) NOT NULL, | |
`email` varchar(150) NOT NULL, | |
`title` varchar(150) NOT NULL, |
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
sort2Hash_encodeHash : function( config, tableId, component, value, rawValue ) { | |
var wo = config.widgetOptions; | |
if ( component === 'filter' ) { | |
// rawValue is an array of filter values, numerically indexed | |
var encodedFilters = ""; | |
var len = rawValue.length; | |
for ( index = 0; index < len; index++ ) { | |
if (rawValue[index]) { | |
var columnName = $(config.$headerIndexed[ index ][0]).attr(wo.sort2Hash_headerTextAttr); | |
encodedFilters += '&filter[' + tableId + '][' + columnName + ']=' + encodeURIComponent(rawValue[index]); |
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
namespace UserFrosting; | |
class Tutor extends UFModel { | |
/** | |
* Get the User object for this Tutor. | |
*/ | |
public function user() { | |
return $this->belongsTo('UserFrosting\User'); | |
} |
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
<?php | |
namespace Grav\Theme; | |
class CollegeParkTutors extends Antimatter { | |
public function onTwigTemplatePaths() { | |
$grav_twig = $this->grav['twig']; | |
$uf_dir = realpath(ROOT_DIR . '/..') . '/common/'; | |
$grav_twig->twig_paths[] = $uf_dir . "templates/collegeparktutors"; | |
} |
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
<?php | |
namespace Grav\Theme; | |
class CollegeParkTutors extends Antimatter { | |
public function onThemeInitialized(){ | |
require_once realpath(ROOT_DIR . '/..') . '/app/vendor/autoload.php'; | |
} | |
public function onTwigTemplatePaths() { |
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
Put this in userfrosting/schema/forms/ and delete this comment | |
{ | |
"name" : { | |
"validators" : { | |
"length" : { | |
"min" : 1, | |
"max" : 200, | |
"message" : "Please enter a name between 1 and 200 characters." | |
}, | |
"required" : { |
OlderNewer