Skip to content

Instantly share code, notes, and snippets.

Rudy Rigot rudyrigot

Block or report user

Report or block rudyrigot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rudyrigot
rudyrigot / copy.json
Created Mar 28, 2014
JSON mask for the "copy" content type in the front-end-only example
View copy.json
{
"About and footer" : {
"company_name" : {
"fieldset" : "Company's name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"about_nav_label" : {
@rudyrigot
rudyrigot / portfolio-section.json
Created Mar 28, 2014
JSON mask for the "portfolio-section" content type in the front-end-only example
View portfolio-section.json
{
"Main" : {
"name" : {
"fieldset" : "Name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
}
}
@rudyrigot
rudyrigot / portfolio.json
Created Mar 28, 2014
JSON mask for the "about" content type in the front-end-only example
View portfolio.json
{
"Main" : {
"title" : {
"fieldset" : "Title of the project",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"image" : {
@rudyrigot
rudyrigot / contact.json
Created Mar 28, 2014
JSON mask for the "content" content type in the front-end-only example
View contact.json
{
"Main" : {
"icon_code" : {
"fieldset" : "Icon code (see FontAwesome's icons)",
"type" : "Text"
},
"title" : {
"fieldset" : "Title",
"type" : "StructuredText",
"config" : {
@rudyrigot
rudyrigot / staff.json
Created Mar 28, 2014
JSON mask for the "staff" content type in the front-end-only example
View staff.json
{
"Main" : {
"name" : {
"fieldset" : "Full name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"title" : {
@rudyrigot
rudyrigot / service.json
Created Mar 28, 2014
JSON mask for the "service" content type in the front-end-only example
View service.json
{
"Main" : {
"name" : {
"fieldset" : "Name of the service",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"catcher" : {
@rudyrigot
rudyrigot / client.json
Created Mar 28, 2014
JSON mask for the "client" content type in the front-end-only example
View client.json
{
"Main" : {
"name" : {
"fieldset" : "Name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"logo" : {
@rudyrigot
rudyrigot / about.json
Created Mar 28, 2014
JSON mask for the "about" content type in the front-end-only example
View about.json
{
"Main" : {
"title" : {
"fieldset" : "Slide's title",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"lede" : {
@rudyrigot
rudyrigot / view.php
Created Mar 19, 2014
Bootstrap prismic.io blog post - Looping in a view
View view.php
<?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 } ?>
@rudyrigot
rudyrigot / index.php
Created Mar 19, 2014
Bootstrap prismic.io blogpost - minimal controller in index.php
View index.php
<?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
You can’t perform that action at this time.