New PITCHME.yaml published option.

This commit is contained in:
David Russell 2017-10-26 11:17:59 +07:00
parent c686ced77f
commit 10ca2f7f10
3 changed files with 15 additions and 0 deletions

View File

@ -394,6 +394,14 @@ public class SlideshowModel {
}
}
/*
* Return true if "published" set to true in PITCHME.yaml.
*/
public boolean published() {
return (_yOpts != null) ? _yOpts.published(_pp) : false;
}
public String fetchHorzDelim() {
String delim = null;

View File

@ -300,6 +300,10 @@ public final class YAMLOptions {
return _yProps.get(REVEALJS_VERSION);
}
public Boolean published(PitchParams pp) {
return fetchBooleanOption(pp, PUBLISHED_OPTION);
}
private Boolean fetchBooleanOption(PitchParams pp, String option) {
return fetchBooleanOption(pp, option, false);
}
@ -379,6 +383,7 @@ public final class YAMLOptions {
private static final String HISTORY_OPTION = "history";
private static final String SLIDE_NUMBER_OPTION = "slide-number";
private static final String REVEALJS_VERSION = "revealjs-version";
private static final String PUBLISHED_OPTION = "published";
private static final String HSLIDE_DELIM = "horz-delim";
private static final String VSLIDE_DELIM = "vert-delim";

View File

@ -42,6 +42,7 @@
{ title: 'Home', active: true,
icon: '<i class="fa fa-bookmark">',
src: '@ssm.homePanel()' },
@if(!ssm.published()) {
{ title: 'Themes',
icon: '<i class="fa fa-code-fork">',
src: '@ssm.gitPanel()' },
@ -49,6 +50,7 @@
icon: '<i class="fa fa-image">',
src: '@ssm.themesPanel()' }
}
}
],
path : "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/menu",
themes : false,