示例#1
0
<?php

$font_list = array('' => __('Default heading font', 'wolf'));
global $wolf_fonts;
foreach ($wolf_fonts as $key => $value) {
    $font_list[$key] = $key;
}
$title = __('Headline', 'wolf');
$params = array(array('id' => 'text', 'label' => __('Text', 'wolf'), 'placeholder' => __('My Cool Headline', 'wolf')), array('id' => 'max_font_size', 'label' => __('Font Size', 'wolf'), 'placeholder' => '48px'), array('id' => 'letter_spacing', 'label' => __('Letter Spacing', 'wolf'), 'placeholder' => '3px'), array('id' => 'font_family', 'label' => __('Font Family', 'wolf'), 'type' => 'select', 'options' => $font_list), array('id' => 'text_transform', 'label' => __('Font Transform', 'wolf'), 'type' => 'select', 'options' => array('uppercase' => __('uppercase', 'wolf'), 'none' => __('none', 'wolf'))));
echo wolf_generate_tinymce_popup('wolf_fittext', $params, $title);
示例#2
0
<?php

$font_list = array();
global $wolf_fonts;
foreach ($wolf_fonts as $key => $value) {
    $font_list[$key] = $key;
}
$title = __('Dropcap', 'wolf');
$params = array(array('id' => 'text', 'label' => __('Letter', 'wolf')), array('id' => 'font', 'label' => __('Font Family', 'wolf'), 'type' => 'select', 'options' => $font_list));
echo wolf_generate_tinymce_popup('wolf_dropcap', $params, $title);
示例#3
0
<?php

$title = __('Socials', 'wolf');
$params = array(array('id' => 'services', 'label' => __('Services', 'wolf'), 'desc' => __('Leave empty to display them all.<br>* See the social networks available in the theme options.', 'wolf'), 'placeholder' => 'facebook,twitter'), array('id' => 'type', 'label' => __('Type', 'wolf'), 'type' => 'select', 'options' => array('normal' => __('Normal', 'wolf'), 'circle' => __('Circle', 'wolf'), 'square' => __('Square', 'wolf'))), array('id' => 'size', 'label' => __('Size', 'wolf'), 'type' => 'select', 'options' => array('1x' => __('Small', 'wolf'), '2x' => __('Medium', 'wolf'), '3x' => __('Large', 'wolf'), '4x' => __('Very Large', 'wolf'))));
echo wolf_generate_tinymce_popup('wolf_theme_socials', $params, $title);
示例#4
0
<?php

$title = __('Alert Message', 'wolf');
$params = array(array('id' => 'message', 'label' => __('Message', 'wolf'), 'placeholder' => __('Your notification message', 'wolf')), array('id' => 'type', 'label' => __('Type', 'wolf'), 'type' => 'select', 'options' => array('success' => __('success', 'wolf'), 'info' => __('info', 'wolf'), 'tip' => __('tip', 'wolf'), 'error' => __('error', 'wolf'))));
echo wolf_generate_tinymce_popup('wolf_alert_message', $params, $title);
示例#5
0
<?php

$title = __('Columns', 'wolf');
$params = array(array('id' => 'col', 'label' => __('Size', 'wolf'), 'type' => 'select', 'options' => array('col-6' => __('col-6 (one half)', 'wolf'), 'col-4' => __('col-4 (one third)', 'wolf'), 'col-3' => __('col-3 (one fourth)', 'wolf'), 'col-11' => 'col-11', 'col-10' => 'col-10', 'col-9' => 'col-9', 'col-8' => 'col-8', 'col-7' => 'col-7', 'col-5' => 'col-5', 'col-2' => 'col-2', 'col-1' => 'col-1'), 'desc' => __('A row consists of a series of columns (col-X) that add up to 12.<br>Check the "First" checkbox below if your column is the first of the row<br>and check the "Last" checkbox if your column is the last of the row.', 'wolf')), array('id' => 'first', 'label' => __('First', 'wolf'), 'type' => 'checkbox'), array('id' => 'last', 'label' => __('Last', 'wolf'), 'type' => 'checkbox'));
echo wolf_generate_tinymce_popup('wolf_column', $params, $title, true);
示例#6
0
<?php

$title = __('Height', 'wolf');
$params = array(array('id' => 'height', 'label' => __('Height', 'wolf'), 'value' => '100px'));
echo wolf_generate_tinymce_popup('wolf_spacer', $params, $title);
<?php

$title = __('Mailchimp signup', 'wolf');
$params = array(array('id' => 'list', 'label' => __('List', 'wolf'), 'desc' => __('Your mailchimp list ID.', 'wolf'), 'placeholder' => 'mb0sd78fg8'), array('id' => 'size', 'label' => __('Size', 'wolf'), 'type' => 'select', 'options' => array('normal' => __('Normal', 'wolf'), 'large' => __('Large', 'wolf'))), array('id' => 'submit', 'label' => __('Submit', 'wolf'), 'placeholder' => 'Submit'));
echo wolf_generate_tinymce_popup('wolf_mailchimp', $params, $title);