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
// CONTROLLER: Stores retrieved product fields into a F3 array variable 'products'; | |
public function index() | |
{ | |
$this->f3->set('products', $this->db->exec("SELECT * FROM products LIMIT 5")); | |
$this->f3->set("page_title", "Homepage"); | |
$this->f3->set("page_id", "home"); | |
$this->f3->set('view','app/views/user/home.htm'); | |
} | |
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
$(document).ready(function() { | |
function getChar(string, position) | |
{ | |
var char = string.charAt(position); | |
console.log(char); | |
} | |
function getPositions(correctWord, guess) |
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
// Vertically enter an element of unknown height | |
.parent { | |
position: relative; | |
} | |
.child { | |
position: absolute; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
// Vertically and horizontally align child element in parent element | |
img { | |
position: absolute; | |
margin: auto; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
} |
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 | |
$item = $this->view; | |
$banner_img = $item->images('banner_img'); | |
// $client = $item->links("clients", array('single'=>true)); | |
// $client_logo = $client->images('thumbnail', true); | |
?> | |
<div class="case-study-banner"> |
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 | |
$item = $this->view; | |
$casestudy = $item->links("case_studies_featured", array('single'=>true)); | |
$banner_img = $casestudy->images('banner_img'); | |
$client = $casestudy->links("clients", array('single'=>true)); | |
$client_logo = $client->images('alt_logo', true); |
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 | |
/** | |
* Module Title | |
* | |
* Module description | |
* | |
* @author Andrew Womersley | |
* @category Module | |
* @package STAN |
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
<div class='container'> | |
<?php Module(788); ?> | |
</div> | |
<?php Module(3446); ?> | |
<div class="service-intro"> | |
<?php Module(3437); ?> | |
<?php Module(3440); ?> | |
</div> |
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 | |
function beautifyString($string) | |
{ | |
$beautifiedString = strtr($string, array('-' => ' ')); | |
$beautifiedString = ucwords($beautifiedString); | |
return $beautifiedString; | |
} | |
?> |
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
$params = array('database'=>'partners'); | |
$search = Search()->setParams($params); | |
$partners = $search->get(); |
OlderNewer