Advertisement
stom66

Bootstrap4 Settings

Nov 14th, 2017
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 4.90 KB | None | 0 0
  1. {strip}
  2. {*
  3. *   Template name: Bootstrap4 Settings
  4. *   -------------------------------------
  5. *
  6. *   This section of the template is the mian settings area. Asside from the bootstrap.css file it
  7. *   is the main area for customising the template.
  8. *
  9. *   Part of the CMSMS Bootstrap4 template by stom | stom66.co.uk
  10. *}
  11.  
  12. {* Template settings
  13.    -------------------------------------------}
  14.   {* Set the language as it will apear in the page source, eg "en", "fr", "de" *}
  15.     {assign var     = page_lang
  16.             scope   = global
  17.             value   = "en"}
  18.  
  19.   {* Optionally set the CMSMS lang. Info: https://docs.cmsmadesimple.org/tags/cmsms-tags/cms_set_language *}
  20.     {cms_set_language lang = "en_US"}
  21.    
  22.   {* Set the direcotry for the theme assets *}
  23.     {assign var     = theme_url
  24.             scope   = global
  25.             value   = "{root_url}/assets/themes/bootstrap4"}
  26.  
  27.   {* Set the favicons. We need both a PNG and an ICO file at least 196x196 *}
  28.     {assign var     = favicon_ico
  29.             scope   = global
  30.             value   = "{$theme_url}/icons/favicon.ico"}
  31.  
  32.     {assign var     = favicon_png
  33.             scope   = global
  34.             value   = "{$theme_url}/icons/favicon.png"}
  35.  
  36.     {assign var     = favicon_svg
  37.             scope   = global
  38.             value   = "{$theme_url}/icons/favicon.svg"}
  39.  
  40.   {* Set the theme & background color. This will be used for the manifest file and the viewport theme *}
  41.     {assign var     = background_color
  42.             scope   = global
  43.             value   = "#424a50"}
  44.  
  45.     {assign var     = theme_color
  46.             scope   = global
  47.             value   = "#363b40"}
  48.  
  49.   {* Set the navbar brand properties *}
  50.     {assign var     = navbar_brand
  51.             scope   = global
  52.             value   = "{$theme_url}/icons/navbar-logo.png"}
  53.  
  54.     {assign var     = navbar_brand_text
  55.             scope   = global
  56.             value   = "{sitename}"}
  57.  
  58.   {* Change the navbar theme in Bootstrap (usually to achieve a dark theme). Can be "light", "dark", or "" (blank) *}
  59.     {assign var     = navbar_color
  60.             scope   = global
  61.             value   = "dark"}
  62.  
  63.     {assign var     = navbar_background_color
  64.             scope   = global
  65.             value   = "dark"}
  66.  
  67.   {* Set the top navbar position. Can be: "none", "default", "top", or "fixed" *}
  68.     {assign var     = default_navbar_style
  69.             scope   = global
  70.             value   = "default"}
  71.  
  72.   {* Choose the alignment for the navbar toggler. Can be: "left" or "right" *}
  73.     {assign var     = navbar_toggler_align
  74.             scope   = global
  75.             value   = "right"}
  76.  
  77.   {* Set the status bar style on apple devices. Can be "default", "black", or "black-translucent" *}
  78.     {assign var     = apple_mobile_style
  79.             scope   = global
  80.             value   = "black-translucent"}
  81.  
  82.   {* Set the footer style. Can be: "none", "default", "sticky" *}
  83.     {assign var     = default_footer_style
  84.             scope   = global
  85.             value   = "sticky"}
  86.  
  87. {* Manifest settings
  88.    -------------------------------------------}
  89.   {* Set the display mode for App manifest. Options are: fullscreen, standalone, minimal-ui and browser *}
  90.     {assign var     = manifest_display_style
  91.             scope   = global
  92.             value   = "fullscreen"}
  93.  
  94.   {* Your default description of the site. Used in the app manifest *}
  95.     {assign var     = manifest_desc
  96.             scope   = global
  97.             value   = "Home of {$uathor}on the web"}
  98.  
  99.   {* Enter the name of your manifest file. This can be a file on the site or the alias of a CMSMS page  *}
  100.     {assign var     = manifest_alias
  101.             scope   = global
  102.             value   = "app-manifest.json"}
  103.  
  104.   {* Choose the manifest icon  *}
  105.     {assign var     = manifest_icon
  106.             scope   = global
  107.             value   = "{$favicon_svg}"}
  108.  
  109.   {* Defines the default orientation for the web app, may be one of the following values:
  110.        any, natural, landscape, landscape-primary, landscape-secondary, portrait, portrait-primary, portrait-secondary *}
  111.     {assign var     = manifest_orientation
  112.             scope   = global
  113.             value   = "portrait-primary"}
  114.  
  115. {* Meta data
  116.    -------------------------------------------}
  117.   {* Set the author name. Used in meta data. *}
  118.     {assign var     = author_name
  119.             scope   = global
  120.             value   = "Your Name"}
  121.  
  122.   {* Your list of default keywords *}
  123.     {assign var     = my_keywords
  124.             scope   = global
  125.             value   = "your, default, keywords, go, here"}
  126.  
  127.   {* Set your Twitter handle. If you don't use one you can set it the same as the Author name *}
  128.     {assign var     = twitter_handle
  129.             scope   = global
  130.             value   = "@twittername"}
  131.  
  132.   {* Set your default OG images (used by Facebook, Twitter, Discord, etc) *}
  133.     {assign var     = default_image
  134.             scope   = global
  135.             value   = "{$theme_url}/images/og-image.png"}
  136.  
  137. {* Social media and analytics
  138.    -------------------------------------------}
  139.   {* Google services authentication. Leave blank if not used. *}
  140.     {assign var     = google_site_key
  141.             scope   = global
  142.             value   = "" }
  143.  
  144.     {assign var     = google_analytics_key
  145.             scope   = global
  146.             value   = "" }
  147.  
  148.   {* Facebook settings. Recommend using only one method, as using both can potentially
  149.      cause auth issues. $fb_admins can be a CSV string of FB user IDs. Leave blank if not used.*}
  150.     {assign var     = fb_app_id
  151.             scope   = global
  152.             value   = "" }
  153.  
  154.     {assign var     = fb_admins
  155.             scope   = global
  156.             value   = "" }
  157. {/strip}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement