<?php

// -----------------------------------------
// semplice
// admin/atts/customize/webfonts.php
// -----------------------------------------

$webfonts = array(
	'add-ressource' => array(
		'service' => array(
			'options' => array(
				'title' => 'options',
				'break' => '1,1',
				'hide-title' => true,
				'ressource-name' => array(
					'title'				=> 'Name',
					'size'				=> 'span4-popup',
					'data-input-type'	=> 'input-text',
					'default'			=> '',
					'placeholder'		=> 'Example: Typekit, Fonts.com'
				),
				'ressource-src' => array(
					'title'				=> 'Embed Code',
					'size'				=> 'span4-popup',
					'data-input-type'	=> 'textarea',
					'default'			=> '',
					'placeholder'		=> 'Paste your CSS/JS code here',
					'class'				=> 'ressource-src',
					'help'				=> 'Please paste the embed code for your CSS / JS file in this field. Normally you will get this code in the public settings of your font kit.<br /><br /><b>Example for fonts.com:</b><br /><i>' . htmlentities('<link type="text/css" rel="stylesheet" href="http://fast.fonts.net/cssapi/xxx.css"/>') . '</i>',
				),
			),
		),
		'self-hosted' => array(
			'options' => array(
				'title' => 'options',
				'break' => '1,1',
				'hide-title' => true,
				'ressource-name' => array(
					'title'				=> 'Name',
					'size'				=> 'span4-popup',
					'data-input-type'	=> 'input-text',
					'default'			=> '',
					'placeholder'		=> 'Example: Helvetica Upload'
				),
				'ressource-src' => array(
					'title'				=> 'Embed Code',
					'size'				=> 'span4-popup',
					'data-input-type'	=> 'textarea',
					'default'			=> '',
					'placeholder'		=> 'Paste your CSS code here',
					'class'				=> 'ressource-src',
					'help'				=> 'Please paste the css code for your self hosted webfonts here. Normally this code is shipped with your webfonts.<br /><br /><b>Example code:</b> <a class="help-link" href="https://pastebin.com/5anukcSG" target="_blank">Pastebin</a>',
				),
			),
		),
		'self-hosted-upload' => array(
			'options' => array(
				'title' => 'options',
				'break' => '1,1',
				'hide-title' => true,
				'ressource-name' => array(
					'title'				=> 'Name',
					'size'				=> 'span4-popup',
					'data-input-type'	=> 'input-text',
					'default'			=> '',
					'placeholder'		=> 'Example: Helvetica CSS'
				),
				'ressource-upload' => array(
					'title'				=> 'Upload Fonts',
					'size'				=> 'span4-popup',
					'data-input-type'	=> 'font-upload',
					'default'			=> '',
					'help'				=> 'Drag and drop your fonts here. We will automatically add the Fonts and create the CSS Code for you.<br /><br />Note: Please make sure that if you use .ttf/.otf files that your font is an actual webfont otherwise it will not work. Recommended file format is .woff or .woff2.',
				),
				'ressource-src' => array(
					'title'				=> 'Embed Code',
					'size'				=> 'span4-popup',
					'data-input-type'	=> 'textarea',
					'default'			=> '',
					'placeholder'		=> 'Paste your CSS code here',
					'class'				=> 'ressource-src hidden',
					'help'				=> 'Please paste the css code for your self hosted webfonts here. Normally this code is shipped with your webfonts.<br /><br /><b>Example code:</b> <a class="help-link" href="https://pastebin.com/5anukcSG" target="_blank">Pastebin</a>',
				),
			),
		),
	),
	// add font
	'add-font' => array(
		'options' => array(
			'title' => 'options',
			'break' => '1,1,2,3,1',
			'hide-title' => true,
			'style-class' => 'font-type-normal',
			'font_type' => array(
				'title'		 => 'Font Type',
				'size'		 => 'span4-popup',
				'data-input-type' => 'switch',
				'switch-type'=> 'twoway',
				'class' 	 => 'admin-switch',
				'default' 	 => 'normal',
				'class'		 => 'is-font-setting',
				'style-class'=> 'vfont-setting',
				'help'		 => 'See our guide about <a href="https://help.semplice.com/hc/en-us/articles/360058172071" target="_blank">variable webfonts</a> in Semplice.',
				'switch-values' => array(
					'normal'	=> 'Normal',
					'variable' => 'Variable',
				),
			),
			'system-name' => array(
				'title'				=> 'System Name',
				'size'				=> 'span4-popup',
				'data-input-type'	=> 'input-text',
				'default'			=> '',
				'placeholder'		=> 'minion-pro-bold',
				'class'				=> 'is-font-setting',
				'style-class'		=> 'vfont-setting',
				'help'				=> 'The system name is the internal name assigned to your font in the font file itself. You can find your font\'s system name by checking the export settings if using a font service, or by looking under the “font-family” property in the CSS if using a self-hosted font. You can\'t change the system name of an uploaded font.<br /><br /><b>Note:</b><br /><br />If you are entering a double font name from services like Cloud Typography, please enter the names without a space between the comma.<br /><br />Example: Fontname A,Fontname B',
			),
			'display-name' => array(
				'title'				=> 'Display Name',
				'size'				=> 'span2-popup',
				'data-input-type'	=> 'input-text',
				'default'			=> '',
				'placeholder'		=> 'Helvetica Bold',
				'class'				=> 'is-font-setting',
				'help'				=> 'This name gets displayed in font select dropdowns. The name is up to you but it\'s there to help you find and select your font later.<br /><br /><b>Example</b><br />Helvetica Bold'
			),
			'font-style' => array(
				'title'		 => 'Font Style',
				'size'		 => 'span2-popup',
				'data-input-type' => 'switch',
				'switch-type'=> 'twoway',
				'class' 	 => 'admin-switch',
				'default' 	 => 'normal',
				'class'				=> 'is-font-setting',
				'switch-values' => array(
					'normal'	=> 'Normal',
					'italic' => 'Italic',
				),
			),
			'font-weight-usage' => array(
				'title'		 => 'Set weight by',
				'size'		 => 'span2-popup',
				'data-input-type' => 'switch',
				'switch-type'=> 'twoway',
				'class' 	 => 'admin-switch',
				'default' 	 => 'css',
				'class'				=> 'is-font-setting',
				'help'				=> 'If your fontname includes the font weight like in \'HelveticaNeueBold\' please set this setting to \'Via Fontname\'. If you have to define a numeric font weight please leave it to \'Via CSS\'.<br /><br />You can\'t change the this setting of an uploaded font.',
				'switch-values' => array(
					'css'	=> 'CSS',
					'fontname' => 'Fontname',
				),
			),
			'font-weight' => array(
				'title'				=> 'Weight',
				'size'				=> 'span1-popup',
				'data-input-type'	=> 'select-box',
				'default'			=> '400',
				'class'				=> 'is-font-setting',
				'help'				=> 'Select the font weight of your font. Normally your font service provides you with the correct font-weight values.<br /><br />If your fontname includes the font weight like in \'HelveticaNeueBold\' you can ignore this setting and just set \'Font Weight Usage\' to \'Via Fontname\'<br /><br />You can\'t change the font weight of an uploaded font.',
				'select-box-values' => array(
					100 => '100',
					200 => '200',
					300 => '300',
					400 => '400',
					500 => '500',
					600 => '600',
					700 => '700',
					800 => '800',
					900 => '900',
				),
			),
			'category' => array(
				'title'		 => 'Category',
				'size'		 => 'span1-popup',
				'data-input-type' => 'switch',
				'switch-type'=> 'icon-select',
				'class' 	 => 'admin-switch',
				'default' 	 => 'sans-serif',
				'class'				=> 'is-font-setting',
				'tooltips'	 => array(
					'sans-serif'=> 'Sans-Serif',
					'serif' 	=> 'Serif'
				),
				'switch-values' => array(
					'sans-serif'	=> 'Sans-Serif',
					'serif' => 'Serif'
				),
			),
		),
	),
);