Beispiel #1
0
function tb_s3bubble_options()
{
    $s3bubble_options['description'] = 'Configure your s3bubble and social settings';
    $s3bubble_options[] = array('title' => 'S3Bubble App Access Key', 'desc' => 'Enter the email address where you\'d like to receive emails from the s3bubble form, or leave blank to use admin email.', 'type' => 'text', 'id' => 's3bubble_app_key');
    $s3bubble_options[] = array('title' => 'S3Bubble App Secret Key', 'desc' => 'Enter your Facebook URL (Please include  http://:)', 'type' => 'text', 'id' => 's3bubble_app_secret_key');
    tb_add_framework_page('s3bubble ', $s3bubble_options, 30);
}
Beispiel #2
0
function tb_styling_options()
{
    $styling_options['description'] = 'Configure the visual appearance of you theme by selecting a stylesheet if applicable, choosing your overall layout and inserting any custom CSS necessary.';
    $styling_options[] = array('title' => 'Main Site Colour', 'desc' => 'Set the main website colour.', 'type' => 'colour', 'id' => 'style_background_colour');
    $styling_options[] = array('title' => 'Custom CSS', 'desc' => 'Quickly add some CSS to your theme by adding it to this block.', 'type' => 'textarea', 'id' => 'style_custom_css');
    tb_add_framework_page('Styles', $styling_options, 10);
}
Beispiel #3
0
function tb_general_settings()
{
    $general_settings['description'] = 'Control and configure the general setup of your theme.';
    $general_settings[] = array('title' => 'Custom Logo Upload', 'desc' => 'Upload a logo for your theme.', 'type' => 'file', 'id' => 'general_custom_logo', 'val' => 'Upload Image');
    $general_settings[] = array('title' => 'Custom Favicon Upload', 'desc' => 'Upload a 16px x 16px Png/Gif image that will represent your website\'s favicon.', 'type' => 'file', 'id' => 'general_custom_favicon', 'val' => 'Upload Image');
    tb_add_framework_page('General', $general_settings, 1);
}
Beispiel #4
0
function tb_contact_options()
{
    $contact_options['description'] = 'Configure your contact and social settings';
    $contact_options[] = array('title' => 'Footer Contact Email', 'desc' => 'Enter the email address for the contact form.', 'type' => 'text', 'id' => 'contact_email', 'default' => '*****@*****.**');
    $contact_options[] = array('title' => 'Footer Copyright', 'desc' => 'Enter your copyright information.', 'type' => 'text', 'id' => 'contact_copyright', 'default' => 'Copyright S3Bubble 2015');
    $contact_options[] = array('title' => 'Facebook Link', 'desc' => 'Enter your Facebook URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_facebook');
    $contact_options[] = array('title' => 'Twitter Link', 'desc' => 'Enter your Twitter URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_twitter');
    $contact_options[] = array('title' => 'Instagram Link', 'desc' => 'Enter your Instagram URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_instagram');
    $contact_options[] = array('title' => 'Pinterest Link', 'desc' => 'Enter your Pinterest URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_pinterest');
    tb_add_framework_page('Contact ', $contact_options, 35);
}
Beispiel #5
0
function tb_home_page()
{
    $home_page['description'] = 'Setup your home page.';
    $home_page[] = array('title' => 'Use a slider for the header', 'desc' => 'Select to use a slider for your header', 'type' => 'checkbox', 'id' => 'homepage_flat_header');
    $home_page[] = array('title' => 'Show latest news on home page', 'desc' => 'You can select one option from here', 'type' => 'radio', 'id' => 'homepage_news', 'options' => array('on' => 'Yes', 'off' => 'No'), 'val' => 'on');
    $home_page[] = array('title' => 'Show latest company logos on home page', 'desc' => 'You can select one option from here', 'type' => 'radio', 'id' => 'homepage_logos', 'options' => array('on' => 'Yes', 'off' => 'No'), 'val' => 'on');
    $home_page[] = array('title' => 'Show latest courses', 'desc' => 'You can select one option from here', 'type' => 'radio', 'id' => 'latest_courses', 'options' => array('on' => 'Yes', 'off' => 'No'), 'val' => 'on');
    $home_page[] = array('title' => 'This is a file upload', 'desc' => 'It should allow you to browse the library', 'type' => 'file', 'id' => 'element_file');
    $home_page[] = array('title' => 'This is a colour picker', 'desc' => 'Picker a hex colour', 'type' => 'colour', 'id' => 'element_colour');
    tb_add_framework_page('Home Page', $home_page, 4);
}
Beispiel #6
0
function tb_footer_settings()
{
    $footer_settings['description'] = 'Control and configure the footer settings of your theme.';
    $footer_settings[] = array('title' => 'Enable Footer', 'desc' => 'Enable Footer Columns.', 'type' => 'checkbox', 'id' => 'footer_enable');
    $footer_settings[] = array('title' => 'Footer Contact Email', 'desc' => 'Enter the email address for the contact form.', 'type' => 'text', 'id' => 'contact_email', 'default' => '*****@*****.**');
    $footer_settings[] = array('title' => 'Footer Copyright', 'desc' => 'Enter your copyright information.', 'type' => 'text', 'id' => 'contact_copyright', 'default' => 'Copyright S3Bubble 2015');
    $footer_settings[] = array('title' => 'Facebook Link', 'desc' => 'Enter your Facebook URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_facebook');
    $footer_settings[] = array('title' => 'Twitter Link', 'desc' => 'Enter your Twitter URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_twitter');
    $footer_settings[] = array('title' => 'Instagram Link', 'desc' => 'Enter your Instagram URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_instagram');
    $footer_settings[] = array('title' => 'Pinterest Link', 'desc' => 'Enter your Pinterest URL (Please include  http://)', 'type' => 'text', 'id' => 'contact_pinterest');
    tb_add_framework_page('Footer', $footer_settings, 25);
}
Beispiel #7
0
function tb_course_settings()
{
    $course_settings['description'] = 'Setup your course video page.';
    $course_settings[] = array('title' => 'Comment System', 'desc' => 'Please select a comment system', 'type' => 'select', 'id' => 'comment_system_select', 'options' => array('comment_1' => 'No Comments', 'comment_2' => 'Disqus', 'comment_3' => 'Facebook'));
    $output_categories = array();
    $categories = get_categories(array('echo' => 0, 'depth' => 1));
    foreach ($categories as $category) {
        $output_categories[$category->cat_ID] = $category->name;
    }
    $course_settings[] = array('title' => 'Main Course Category', 'desc' => 'Please select a Main Course Category', 'type' => 'select', 'id' => 'main_course_select', 'options' => $output_categories);
    tb_add_framework_page('Course Settings', $course_settings, 2);
}
Beispiel #8
0
function tb_element_settings()
{
    $element_settings['description'] = 'All the elements within the framework.';
    $element_settings[] = array('title' => 'This is a text input', 'desc' => 'You can input text here', 'type' => 'text', 'id' => 'element_text');
    $element_settings[] = array('title' => 'This is a textarea input', 'desc' => 'You can input more text here', 'type' => 'textarea', 'id' => 'element_textarea');
    $element_settings[] = array('title' => 'This is a select dropdown', 'desc' => 'You can select stuff here', 'type' => 'select', 'id' => 'element_select', 'options' => array('a_value' => 'This is a value', 'an_value' => 'Another value', 'afe_value' => 'ThemeBird kicks ass'));
    $element_settings[] = array('title' => 'This is a list of pages', 'desc' => 'You can select a page from here', 'type' => 'pages', 'id' => 'element_pages');
    $element_settings[] = array('title' => 'This is a list of categories', 'desc' => 'You can select a category from here', 'type' => 'categories', 'id' => 'element_categories');
    $element_settings[] = array('title' => 'This is a radio button list', 'desc' => 'You can select one option from here', 'type' => 'radio', 'id' => 'element_radio', 'options' => array('a_value' => 'This is a value', 'an_value' => 'Another value', 'afe_value' => 'ThemeBird kicks ass'));
    $element_settings[] = array('title' => 'This is a single checkbox', 'desc' => 'Need to change this to switcher', 'type' => 'checkbox', 'id' => 'element_checkbox');
    $element_settings[] = array('title' => 'This is a multi checkbox', 'desc' => 'Select multiple options', 'type' => 'multi_checkbox', 'id' => 'element_multi_checkbox', 'options' => array('a_value' => 'This is a value', 'an_value' => 'Another value', 'afe_value' => 'ThemeBird kicks ass'));
    $element_settings[] = array('title' => 'This is a file upload', 'desc' => 'It should allow you to browsw thw library', 'type' => 'file', 'id' => 'element_file');
    $element_settings[] = array('title' => 'This is a colour picker', 'desc' => 'Picker a hex colour', 'type' => 'colour', 'id' => 'element_colour');
    tb_add_framework_page('Elements', $element_settings, 35);
}
Beispiel #9
0
function tb_paypal_options()
{
    $paypal_options['description'] = 'Configure your contact and social settings';
    $paypal_options[] = array('title' => 'PayPal Live API Username', 'desc' => 'Enter PayPal Live API Username. <a href="https://developer.paypal.com/webapps/developer/applications/accounts">Can be found here</a>', 'type' => 'text', 'id' => 'username_live');
    $paypal_options[] = array('title' => 'PayPal Live API Password', 'desc' => 'Enter PayPal Live API Password. <a href="https://developer.paypal.com/webapps/developer/applications/accounts">Can be found here</a>', 'type' => 'text', 'id' => 'password_live');
    $paypal_options[] = array('title' => 'PayPal Live API Signature', 'desc' => 'Enter PayPal Live API Signature. <a href="https://developer.paypal.com/webapps/developer/applications/accounts">Can be found here</a>', 'type' => 'text', 'id' => 'signature_live');
    $paypal_options[] = array('title' => 'PayPal Sandbox API Username', 'desc' => 'Enter PayPal Sandbox API Username. <a href="https://developer.paypal.com/webapps/developer/applications/accounts">Can be found here</a>', 'type' => 'text', 'id' => 'username_sandbox');
    $paypal_options[] = array('title' => 'PayPal Sandbox API Password', 'desc' => 'Enter PayPal Sandbox API Password. <a href="https://developer.paypal.com/webapps/developer/applications/accounts">Can be found here</a>', 'type' => 'text', 'id' => 'password_sandbox');
    $paypal_options[] = array('title' => 'PayPal Sandbox API Signature', 'desc' => 'Enter PayPal Sandbox API Signature. <a href="https://developer.paypal.com/webapps/developer/applications/accounts">Can be found here</a>', 'type' => 'text', 'id' => 'signature_sandbox');
    $paypal_options[] = array('title' => 'PayPal Sandbox or Live', 'desc' => 'Run PayPal in Sandbox or Live Mode', 'type' => 'radio', 'id' => 'sandbox', 'options' => array('live' => 'Live', 'sandbox' => 'Use Sandbox (for testing only)'), 'val' => 'sandbox');
    $paypal_options[] = array('title' => 'Default Currency', 'desc' => 'Set your Currency you want to take payments in.', 'type' => 'select', 'id' => 'currency', 'val' => 'off', 'options' => array('AUD' => __('Australian Dollar', 'paypal-framework'), 'CAD' => __('Canadian Dollar', 'paypal-framework'), 'CZK' => __('Czech Koruna', 'paypal-framework'), 'DKK' => __('Danish Krone', 'paypal-framework'), 'EUR' => __('Euro', 'paypal-framework'), 'HKD' => __('Hong Kong Dollar', 'paypal-framework'), 'HUF' => __('Hungarian Forint', 'paypal-framework'), 'ILS' => __('Israeli New Sheqel', 'paypal-framework'), 'JPY' => __('Japanese Yen', 'paypal-framework'), 'MXN' => __('Mexican Peso', 'paypal-framework'), 'NOK' => __('Norwegian Krone', 'paypal-framework'), 'NZD' => __('New Zealand Dollar', 'paypal-framework'), 'PLN' => __('Polish Zloty', 'paypal-framework'), 'GBP' => __('Pound Sterling', 'paypal-framework'), 'SGD' => __('Singapore Dollar', 'paypal-framework'), 'SEK' => __('Swedish Krona', 'paypal-framework'), 'CHF' => __('Swiss Franc', 'paypal-framework'), 'USD' => __('U.S. Dollar', 'paypal-framework')));
    $paypal_options[] = array('title' => 'PayPal API version', 'desc' => 'Paypal API Version to use.', 'type' => 'text', 'id' => 'version', 'default' => '58.0');
    $paypal_options[] = array('title' => 'Debugging Mode', 'desc' => 'Enable Debugging.', 'type' => 'radio', 'id' => 'debugging', 'options' => array('on' => 'On', 'off' => 'Off'), 'val' => 'off');
    $paypal_options[] = array('title' => 'Debugging E-Mail', 'desc' => 'Debugging E-Mail to use.', 'type' => 'text', 'id' => 'debugging_email');
    $paypal_options[] = array('title' => 'Legacy hash_call() support', 'desc' => 'Enable legacy hash call support.', 'type' => 'radio', 'id' => 'legacy_support', 'options' => array('on' => 'On', 'off' => 'Off'), 'val' => 'off');
    $paypal_options[] = array('title' => 'PayPal IPN Listener URL', 'desc' => 'Enter your paypal IPN listener URL. Help finding this can be found <a href="https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/#id089EG030E5Z">here.</a>', 'type' => 'text', 'id' => 'ipn_url');
    tb_add_framework_page('Paypal ', $paypal_options, 32);
}
Beispiel #10
0
function tb_layout_settings()
{
    $layout_settings['description'] = 'Control and configure the layout settings of your theme.';
    $layout_settings[] = array('title' => 'Main Layout', 'desc' => 'Select main content and sidebar alignment. This option can be over written within individual pages.', 'type' => 'radio', 'id' => 'layout_main_layout', 'val' => 'layout-2cr', 'options' => array('layout-full' => 'Full Width', 'layout-2cl' => '2 Columns (left)', 'layout-2cr' => '2 Columns (right)'));
    tb_add_framework_page('Layout', $layout_settings, 20);
}