This file contains hidden or 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 | |
/* Initializations */ | |
require_once '../resources/config.php'; // this loads our specific configuration | |
require_once(LIBRARIES_PATH . "/Prismic.php"); // this loads our Prismic helpers, which include the prismic.io PHP kit | |
$ctx = Prismic::context(); // getting the context built from our configuration (like the Api object it initializes) | |
global $linkResolver; // getting the linkResolver object (more on this later) | |
/* Controller */ | |
try { | |
// API calls |
This file contains hidden or 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
{ | |
"Main" : { | |
"title" : { | |
"type" : "StructuredText", | |
"fieldset" : "Title", | |
"config" : { | |
"single" : "heading1" | |
} | |
}, | |
"lede" : { |
This file contains hidden or 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 | |
/* Initializations */ | |
require_once '../resources/config.php'; // this loads our specific configuration | |
require_once(LIBRARIES_PATH . "/Prismic.php"); // this loads our Prismic helpers, which include the prismic.io PHP kit | |
$ctx = Prismic::context(); // getting the context built from our configuration (including the Api object it initializes) | |
global $linkResolver; // getting the linkResolver object (more on this later) | |
/* Controller */ | |
try { | |
// API calls will go here |
This file contains hidden or 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 foreach($skills as $skill) { ?> | |
<div class="col-sm-6 col-md-3 text-center"> | |
<span class="chart" data-percent="<?php echo $skill->getText('skills.amount') ?>"> | |
<span class="percent"><?php echo $skill->getText('skills.amount') ?></span> | |
</span> | |
<h2 class="text-center"><?php echo $skill->getStructuredText('skills.title')->asText() ?></h2> | |
</div> | |
<?php } ?> |
This file contains hidden or 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
{ | |
"Main" : { | |
"title" : { | |
"fieldset" : "Slide's title", | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading1" | |
} | |
}, | |
"lede" : { |
This file contains hidden or 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
{ | |
"Main" : { | |
"name" : { | |
"fieldset" : "Name", | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading1" | |
} | |
}, | |
"logo" : { |
This file contains hidden or 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
{ | |
"Main" : { | |
"name" : { | |
"fieldset" : "Name of the service", | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading1" | |
} | |
}, | |
"catcher" : { |
This file contains hidden or 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
{ | |
"Main" : { | |
"name" : { | |
"fieldset" : "Full name", | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading1" | |
} | |
}, | |
"title" : { |
This file contains hidden or 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
{ | |
"Main" : { | |
"icon_code" : { | |
"fieldset" : "Icon code (see FontAwesome's icons)", | |
"type" : "Text" | |
}, | |
"title" : { | |
"fieldset" : "Title", | |
"type" : "StructuredText", | |
"config" : { |
This file contains hidden or 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
{ | |
"Main" : { | |
"title" : { | |
"fieldset" : "Title of the project", | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading1" | |
} | |
}, | |
"image" : { |
OlderNewer