本文整理汇总了PHP中tally_config函数的典型用法代码示例。如果您正苦于以下问题:PHP tally_config函数的具体用法?PHP tally_config怎么用?PHP tally_config使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tally_config函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tally_content_part_footerWidgets
function tally_content_part_footerWidgets()
{
$file = tally_file_directory('contents/part_footerWidgets/' . tally_config('part_footerWidgets') . '/html.php');
if (file_exists($file)) {
include $file;
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:7,代码来源:footerWidgets.php
示例2: tally_content_loop_page
function tally_content_loop_page()
{
$file = tally_file_directory('contents/loop_page/' . tally_config('loop_page') . '/html.php');
if (file_exists($file)) {
include $file;
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:7,代码来源:page.php
示例3: tally_home_js_builder
function tally_home_js_builder()
{
if (tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php')) {
include tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php');
} else {
include tally_file_directory('home/home-data.php');
}
$check_js = array();
foreach ($tally_home_data as $tally_home) {
$settings = $tally_home['id'] . '_settings';
if (tally_option($settings . '_enable') == 1) {
if (is_array($tally_home['columns'])) {
foreach ($tally_home['columns'] as $tally_home_column) {
if (is_array($tally_home_column['blocks'])) {
foreach ($tally_home_column['blocks'] as $tally_home_column_block) {
if (in_array($tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'], $check_js) == false) {
$block_id = $tally_home['id'] . '_' . $tally_home_column_block['id'] . '_';
$js_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/js.php');
if (tally_option($block_id . 'enable') == 1) {
if (file_exists($js_file)) {
include $js_file;
}
}
$check_js[] = $tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'];
}
}
}
}
}
}
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:32,代码来源:home-js-builder.php
示例4: tally_content_part_subHeader
function tally_content_part_subHeader()
{
$file = tally_file_directory('contents/part_subHeader/' . tally_config('part_subHeader') . '/html.php');
if (file_exists($file)) {
include $file;
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:7,代码来源:subHeader.php
示例5: tally_customizer_button_set
function tally_customizer_button_set()
{
if (tally_config('type') == 'none') {
wp_register_script('tally_customizer_buttons', TALLY_CUSTOMIZE_URL . '/customizer-controls.js', array("jquery"), '20120206', true);
wp_enqueue_script('tally_customizer_buttons');
wp_localize_script('tally_customizer_buttons', 'objectL10n', array('doc' => __('Documentation', 'doctors'), 'pro' => __('View PRO version', 'doctors'), 'doc_url' => tally_config('doc_url'), 'pro_url' => tally_config('theme_url')));
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:8,代码来源:customizer.php
示例6: tally_customizer_general_register
function tally_customizer_general_register($wp_customize)
{
$wp_customize->add_panel('tally_general', array('title' => 'General', 'priority' => 10, 'description' => 'Navigation / Site Title & Tagline / Static Front Page'));
/**
* Logo/Site Title & Tagline Section
*/
$title_tagline_section = $wp_customize->get_section('title_tagline');
// Get Section
$title_tagline_section->panel = 'tally_general';
// Add panel
$title_tagline_section->priority = 10;
// Adjust Priority
/**
* Static Front Page Section
*/
$static_front_page_section = $wp_customize->get_section('static_front_page');
// Get Section
$static_front_page_section->panel = 'tally_general';
// Add panel
$static_front_page_section->priority = 20;
// Adjust Priority
/* Site Logo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$wp_customize->add_section('tally_site_logos', array('title' => __('Logo', 'doctors'), 'description' => '', 'panel' => 'tally_general', 'priority' => 10));
$prefix = 'tally_header_';
$section = 'tally_site_logos';
/*-~- Upload Logo -~-*/
$uid = $prefix . 'logo';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw'));
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Upload Logo', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10)));
if (!function_exists('has_site_icon')) {
/*-~- Upload Favicon -~-*/
$uid = $prefix . 'favicon';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw'));
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Upload Favicon sss', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10)));
}
/* Site Logo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
if (tally_config('type') != 'none') {
$wp_customize->add_section('tally_site_customScript', array('title' => __('Customization', 'doctors'), 'description' => '', 'panel' => 'tally_general', 'priority' => 40));
$prefix = 'tally_customScript_';
$section = 'tally_site_customScript';
/*-~- Custom CSS -~-*/
$uid = $prefix . 'css';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Custom CSS', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
/*-~- Custom Header JavaScript -~-*/
$uid = $prefix . 'jsHeader';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Custom Header JavaScript', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
/*-~- Custom Header JavaScript -~-*/
$uid = $prefix . 'jsFooter';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Custom Footer JavaScript', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:56,代码来源:general.php
示例7: tally_home_content_builder
function tally_home_content_builder()
{
if (tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php')) {
include tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php');
} else {
include tally_file_directory('home/home-data.php');
}
foreach ($tally_home_data as $tally_home) {
$settings = $tally_home['id'] . '_settings';
if (tally_option($settings . '_enable') == 1) {
$div_id = tally_option($settings . '_divID') == '' ? '' : 'id="' . tally_option($settings . '_divID') . '"';
echo '<div class="tally_home_section THS_' . $tally_home['id'] . ' ' . tally_option($settings . '_class') . ' ' . $tally_home['class'] . '" ' . $div_id . '>';
if ($tally_home['inner_div'] == true) {
echo '<div class="tally_home_section_inner">';
}
tally_home_content_builder_heading($tally_home['id'], $tally_home['id'] . '_heading_');
if (is_array($tally_home['columns'])) {
if ($tally_home['enable_column'] == true) {
echo '<div class="col-holder nomargin">';
}
foreach ($tally_home['columns'] as $tally_home_column) {
if (tally_home_content_builder_blockCunter($tally_home['id'], $tally_home_column['blocks']) > 0) {
$div_column = $tally_home_column['column'];
if (tally_home_content_builder_columnCunter($tally_home['id'], $tally_home['columns']) != $tally_home['total_column']) {
$div_column = 12 / tally_home_content_builder_columnCunter($tally_home['id'], $tally_home['columns']);
}
if ($tally_home['enable_column'] == true) {
echo '<div class="col col_' . $div_column . '">';
}
if (is_array($tally_home_column['blocks'])) {
foreach ($tally_home_column['blocks'] as $tally_home_column_block) {
$block_id = $tally_home['id'] . '_' . $tally_home_column_block['id'] . '_';
$html_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/html.php');
if (tally_option($block_id . 'enable') == 1) {
if (file_exists($html_file)) {
include $html_file;
}
}
}
}
if ($tally_home['enable_column'] == true) {
echo '</div>';
}
}
}
if ($tally_home['enable_column'] == true) {
echo '</div>';
}
}
if ($tally_home['inner_div'] == true) {
echo '</div>';
}
echo '</div>';
}
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:56,代码来源:home-content-builder.php
示例8: tally_content_customizer_loader
function tally_content_customizer_loader($wp_customize)
{
$contents = array('part_header', 'part_subHeader', 'part_sidebar', 'part_footerWidgets', 'part_footer', 'loop_404', 'loop_attachment', 'loop_author', 'loop_category', 'loop_comments', 'loop_frontPage', 'loop_home', 'loop_page', 'loop_post', 'loop_search', 'loop_single', 'loop_tag', 'loop_templateAbout', 'loop_templateContact', 'loop_templateSitemap');
foreach ($contents as $content) {
$file = tally_file_directory('contents/' . $content . '/' . tally_config($content) . '/customizer.php');
if (file_exists($file)) {
include $file;
}
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:10,代码来源:customize-loader.php
示例9: render_content
public function render_content()
{
if (tally_config('type') == 'none' && $this->css_class == 'biz' || tally_config('type') == 'away' && $this->css_class == 'hbiz' || tally_config('type') == 'none' && $this->css_class == 'hbiz') {
tally_customize_help_start($this->css_class);
?>
<script>
jQuery(document).ready(function($){
$('.my-color-field').wpColorPicker();
});
</script>
<label class="<?php
echo esc_attr($this->css_class);
?>
">
<?php
if (!empty($this->label)) {
?>
<span class="customize-control-title"><?php
echo esc_html($this->label);
?>
</span>
<?php
}
if (!empty($this->description)) {
?>
<span class="description customize-control-description"><?php
echo $this->description;
?>
</span>
<?php
}
?>
<input type="text" value="<?php
echo esc_attr($this->value());
?>
" class="my-color-field" data-default-color="<?php
echo esc_attr($this->value());
?>
" />
</label>
<?php
tally_customize_help_end($this->css_class);
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:45,代码来源:custom_control_color.php
示例10: tally_home_css_builder
function tally_home_css_builder($type = 'css')
{
if (tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php')) {
include tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php');
} else {
include tally_file_directory('home/home-data.php');
}
if ($type == 'css') {
tally_home_css_builder_heading_css();
}
$check_css = array();
foreach ($tally_home_data as $tally_home) {
$settings = $tally_home['id'] . '_settings';
if (tally_option($settings . '_enable') == 1) {
if ($type == 'c-css') {
tally_home_css_builder_settings_css($tally_home['id']);
tally_home_css_builder_color_css($tally_home['id']);
}
if (is_array($tally_home['columns'])) {
foreach ($tally_home['columns'] as $tally_home_column) {
if (is_array($tally_home_column['blocks'])) {
foreach ($tally_home_column['blocks'] as $tally_home_column_block) {
$block_id = $tally_home['id'] . '_' . $tally_home_column_block['id'] . '_';
$css_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/css.php');
$c_css_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/c-css.php');
if (tally_option($block_id . 'enable') == 1) {
if ($type == 'c-css' && file_exists($c_css_file)) {
include $c_css_file;
} elseif ($type == 'css' && file_exists($css_file)) {
if (in_array($tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'], $check_css) == false) {
include $css_file;
$check_css[] = $tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'];
}
}
}
}
}
}
}
}
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:42,代码来源:home-css-builder.php
示例11: tally_script_loader
function tally_script_loader()
{
wp_enqueue_style('font-awesome', TALLY_ASSETS_URL . '/css/font-awesome.min.css');
if (tally_config('dev_mood') == true) {
$tally_css = admin_url('admin-ajax.php') . '?action=tally_dynamic_script&post_id=' . get_the_ID() . '&type=css';
$tally_js = admin_url('admin-ajax.php') . '?action=tally_dynamic_script&post_id=' . get_the_ID() . '&type=js';
} else {
$tally_css = tally_file_directory_uri('assets/css/style.css');
$tally_js = tally_file_directory_uri('assets/js/theme.js');
}
if (tally_option('tally_font_source_list') == 'google') {
$http = is_ssl() ? 'https' : 'http';
if (tally_option('tally_font_googleFont_heading') != '') {
$font_handle = strstr(tally_option('tally_font_googleFont_heading'), ':', true);
if ($font_handle == '') {
$font_handle = tally_option('tally_font_googleFont_heading');
}
wp_enqueue_style('tally-' . strstr(tally_option('tally_font_googleFont_heading'), ':', true), $http . '://fonts.googleapis.com/css?family=' . tally_option('tally_font_googleFont_heading'));
}
if (tally_option('tally_font_googleFont_text') != '') {
$font_handle = strstr(tally_option('tally_font_googleFont_text'), ':', true);
if ($font_handle == '') {
$font_handle = tally_option('tally_font_googleFont_text');
}
wp_enqueue_style('tally-' . strstr(tally_option('tally_font_googleFont_text'), ':', true), $http . '://fonts.googleapis.com/css?family=' . tally_option('tally_font_googleFont_text'));
}
}
wp_enqueue_script('flexslider', tally_file_directory_uri('assets/js/jquery.flexslider-min.js'), array('jquery'), '', true);
wp_enqueue_style('swipebox', tally_file_directory_uri('assets/css/swipebox.min.css'));
wp_enqueue_script('swipebox', tally_file_directory_uri('assets/js/jquery.swipebox.min.js'), array('jquery'), '', true);
wp_enqueue_style('owl.carousel', tally_file_directory_uri('assets/css/owl.carousel.css'));
wp_enqueue_script('owl.carousel', tally_file_directory_uri('assets/js/owl.carousel.min.js'), array('jquery'), '', true);
/*-----------*/
wp_enqueue_style('tally-dynamic', $tally_css);
wp_enqueue_style('tally-dynamic-custom', admin_url('admin-ajax.php') . '?action=tally_dynamic_script&post_id=' . get_the_ID() . '&type=custom_css');
wp_enqueue_script('tally-dynamic', $tally_js, array('jquery', 'jquery-masonry'), '', true);
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:37,代码来源:script-loader.php
示例12:
}
if (tally_config('loop_frontPage') != '') {
include TALLY_CONTENT_DRI . '/loop_frontPage/frontPage.php';
}
if (tally_config('loop_home') != '') {
include TALLY_CONTENT_DRI . '/loop_home/home.php';
}
if (tally_config('loop_page') != '') {
include TALLY_CONTENT_DRI . '/loop_page/page.php';
}
if (tally_config('loop_post') != '') {
include TALLY_CONTENT_DRI . '/loop_post/post.php';
}
if (tally_config('loop_search') != '') {
include TALLY_CONTENT_DRI . '/loop_search/search.php';
}
if (tally_config('loop_single') != '') {
include TALLY_CONTENT_DRI . '/loop_single/single.php';
}
if (tally_config('loop_tag') != '') {
include TALLY_CONTENT_DRI . '/loop_tag/tag.php';
}
if (tally_config('loop_templateAbout') != '') {
include TALLY_CONTENT_DRI . '/loop_templateAbout/templateAbout.php';
}
if (tally_config('loop_templateContact') != '') {
include TALLY_CONTENT_DRI . '/loop_templateContact/templateContact.php';
}
if (tally_config('loop_templateSitemap') != '') {
include TALLY_CONTENT_DRI . '/loop_templateSitemap/templateSitemap.php';
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:31,代码来源:content-loader.php
示例13: tally_customizer_font_register
function tally_customizer_font_register($wp_customize)
{
$wp_customize->add_panel('tally_font', array('title' => 'Typography', 'description' => 'Manage font and typography.'));
$wp_customize->add_section('tally_font_size', array('title' => __('Font Size', 'doctors'), 'description' => '', 'panel' => 'tally_font'));
$wp_customize->add_section('tally_font_source', array('title' => __('Font Source', 'doctors'), 'description' => __('Select a font family source/', 'doctors'), 'panel' => 'tally_font'));
$wp_customize->add_section('tally_google_font', array('title' => __('Google Font', 'doctors'), 'description' => __('Load Google font in the theme.', 'doctors'), 'panel' => 'tally_font'));
$wp_customize->add_section('tally_web_font', array('title' => __('Web Font', 'doctors'), 'description' => __('You can upload your own web font.', 'doctors'), 'panel' => 'tally_font'));
/* Font Size
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$prefix = 'tally_font_size_';
$section = 'tally_font_size';
/*-~- Info -~-*/
if (tally_config('type') == 'none') {
$uid = $prefix . 'info1';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Typography.')));
}
/*-~- H1 Font size -~-*/
$uid = $prefix . 'h1';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H1 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
/*-~- H2 Font size -~-*/
$uid = $prefix . 'h2';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H2 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
/*-~- H3 Font size -~-*/
$uid = $prefix . 'h3';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H3 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
/*-~- H4 Font size -~-*/
if (tally_config('type') != 'none') {
$uid = $prefix . 'h4';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H4 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
}
/*-~- H5 Font size -~-*/
if (tally_config('type') != 'none') {
$uid = $prefix . 'h5';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H5 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
}
/*-~- H6 Font size -~-*/
if (tally_config('type') != 'none') {
$uid = $prefix . 'h6';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H6 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
}
/*-~- Body Font size -~-*/
$uid = $prefix . 'body';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('Body Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
/* Font source
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$prefix = 'tally_font_source_';
$section = 'tally_font_source';
/*-~- Select A Font source -~-*/
if (tally_config('type') != 'none') {
$uid = $prefix . 'list';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('Select a Font Source', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'transport' => 'postMessage', 'choices' => array('none' => __('None', 'doctors'), 'google' => __('Google font', 'doctors')), 'description' => __('select a fornt type.', 'doctors') . '<i class="tally-showhide-select"></i>')));
}
/* Google Font
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$prefix = 'tally_font_googleFont_';
$section = 'tally_google_font';
/*-~- Select A Font source -~-*/
if (tally_config('type') != 'none') {
$uid = $prefix . 'heading';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Font Link of the heading ', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'textarea', 'description' => __('Copy the Google Font Family from <a href="http://www.google.com/fonts" target="_blank">http://www.google.com/fonts</a> like: <strong>Open+Sans:400,700,600</strong>', 'doctors'))));
$uid = $prefix . 'text';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Body Text Font ', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'textarea', 'description' => __('Copy the Google Font Family from <a href="http://www.google.com/fonts" target="_blank">http://www.google.com/fonts</a> like: <strong>Open+Sans:400,700,600</strong>', 'doctors'))));
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:75,代码来源:font.php
示例14: tally_home_customiser_builder
function tally_home_customiser_builder($wp_customize)
{
if (tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php')) {
include tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php');
} else {
include tally_file_directory('home/home-data.php');
}
foreach ($tally_home_data as $tally_home) {
/*
Building the panel
--------------------------------------------------------------------------*/
$wp_customize->add_panel($tally_home['id'], array('title' => $tally_home['label']));
/*
Building Enabel section
--------------------------------------------------------------------------*/
$s_section = $tally_home['id'] . '_settings';
$wp_customize->add_section($s_section, array('title' => __('Settings', 'doctors'), 'panel' => $tally_home['id']));
$s_id = $s_section . '_enable';
$s_label = __('Enabel This Home Page Section', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'checkbox')));
if ($tally_home['background'] == true) {
$s_id = $s_section . '_bgImage';
$s_label = __('Background Image', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10)));
/*-~- Info -~-*/
if (tally_config('type') == 'none') {
$s_id = $s_section . '_info1';
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $s_id, array('label' => '', 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over the Background of this section.')));
}
if (tally_config('type') != 'none') {
$s_id = $s_section . '_bgColor';
$s_label = __('Background Color', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
$s_id = $s_section . '_bgAltColor';
$s_label = __('Background Alt Color', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
$s_id = $s_section . '_bgRepeat';
$s_label = __('Background Repeat', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('no-repeat' => __('No Repeat', 'doctors'), 'repeat' => __('Tile', 'doctors'), 'repeat-x' => __('Tile Horizontally', 'doctors'), 'repeat-y' => __('Tile Vertically', 'doctors')))));
$s_id = $s_section . '_bgPosition';
$s_label = __('Background Position', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('top left' => __('Top Left', 'doctors'), 'top right' => __('Top Right', 'doctors'), 'top center' => __('Top Center', 'doctors'), 'center center' => __('Center Center', 'doctors'), 'bottom left' => __('Top Left', 'doctors'), 'bottom right' => __('Top Right', 'doctors'), 'bottom center' => __('Top Center', 'doctors')))));
$s_id = $s_section . '_bgAttachment';
$s_label = __('Background Attachment', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('scroll' => __('Scroll', 'doctors'), 'fixed' => __('Fixed', 'doctors')))));
$s_id = $s_section . '_bgSize';
$s_label = __('Background Size', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
}
}
if ($tally_home['settings'] == true) {
/*-~- Info -~-*/
if (tally_config('type') == 'none') {
$s_id = $s_section . '_info2';
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $s_id, array('label' => '', 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over the Stiings.')));
}
if (tally_config('type') != 'none') {
$s_id = $s_section . '_contentWidth';
$s_label = __('Content Width', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
$s_id = $s_section . '_topPadding';
$s_label = __('Top Padding', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
$s_id = $s_section . '_bottomPadding';
$s_label = __('Bottom Padding', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
$s_id = $s_section . '_class';
$s_label = __('Class', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
$s_id = $s_section . '_divID';
$s_label = __('CSS ID', 'doctors');
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
}
}
/*
Building heading section
--------------------------------------------------------------------------*/
if ($tally_home['heading'] == true) {
$s_section = $tally_home['id'] . '_heading';
$wp_customize->add_section($s_section, array('title' => __('Heading', 'doctors'), 'panel' => $tally_home['id']));
/*-~- Info -~-*/
if (tally_config('type') == 'none') {
$s_id = $s_section . '_info3';
$wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $s_id, array('label' => '', 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over the Heading.')));
//.........这里部分代码省略.........
开发者ID:ReConcepts,项目名称:mashariki,代码行数:101,代码来源:home-customizer-builder.php
示例15: tally_customize_help_disabled
function tally_customize_help_disabled($class)
{
if (tally_config('type') == 'none' && $class == 'biz' || tally_config('type') == 'away' && $class == 'hbiz' || tally_config('type') == 'none' && $class == 'hbiz') {
echo ' disabled="disabled" ';
}
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:6,代码来源:help_function.php
示例16: tally_file_directory
<?php
if (file_exists(tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_css.php'))) {
include tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_css.php');
}
开发者ID:ReConcepts,项目名称:mashariki,代码行数:5,代码来源:theme-customize-css.php
示例17: array
<?php
if (tally_config('type') != 'none') {
$uid = $prefix . 'enable';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Enable Social Icons', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Select Yes, if you want to display the Social Icons in the header.', 'doctors'), 'type' => 'select', 'css_class' => 'biz', 'choices' => array('yes' => __('Yes', 'doctors'), 'no' => __('No', 'doctors')))));
}
$uid = $prefix . 'facebook';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('Facebook', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text')));
$uid = $prefix . 'twitter';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('Twitter', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text')));
$uid = $prefix . 'youtube';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('Youtube', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text')));
$uid = $prefix . 'instagram';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'saniti
|
请发表评论