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
{ | |
"body" : { | |
"type" : "StructuredText", | |
"value" : [ | |
{ | |
"type" : "heading1", | |
"text" : "The nicest macarons are the fondest", | |
"spans" : [ ] | |
}, | |
{ |
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
{ | |
"For all the website" : { | |
"website_title" : { | |
"fieldset" : "Website's title", | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "You shouldn't make it longer that 2 characters.", | |
"single" : "heading1" | |
} | |
}, |
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 | |
/* 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 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 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 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 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 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 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 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" : { |
OlderNewer