当前位置: 首页>>代码示例>>PHP>>正文


PHP td_panel_generator::input方法代码示例

本文整理汇总了PHP中td_panel_generator::input方法的典型用法代码示例。如果您正苦于以下问题:PHP td_panel_generator::input方法的具体用法?PHP td_panel_generator::input怎么用?PHP td_panel_generator::input使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在td_panel_generator的用法示例。


在下文中一共展示了td_panel_generator::input方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render_inputs

    function render_inputs()
    {
        //creating the inputs
        foreach ($this->global_translations_array as $key_id => $value) {
            ?>
            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row"><?php 
            echo $key_id;
            ?>
</span>
                    <p></p>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::input(array('ds' => 'td_translate', 'option_id' => $key_id));
            ?>
                </div>
            </div>

            <?php 
        }
    }
开发者ID:Vatia13,项目名称:wordpress,代码行数:23,代码来源:panel_translations.php

示例2:

        }
        ?>


        <?php 
        if (!empty($td_module_array['excerpt_content'])) {
            ?>
            <!-- CONTENT LENGTH LENGTH -->
            <div class="td-box-row">
                <div class="td-box-description">
                    <span class=" td-box-title td-title-on-row">CONTENT LENGTH</span>
                    <p></p>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => $td_module_class . '_content_excerpt', 'placeholder' => $td_module_array['excerpt_content']));
            ?>
                </div>
            </div>
        <?php 
        }
        ?>


        <?php 
        echo td_panel_generator::box_end();
    }
}
?>

开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:29,代码来源:td_panel_excerpts.php

示例3: strtoupper

			<?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_logo_text', 'placeholder' => strtoupper(TD_THEME_NAME)));
?>
		</div>
	</div>


	<!-- Text LOGO Tagline -->
	<div class="td-box-row">
		<div class="td-box-description">
			<span class="td-box-title">TEXT LOGO TAGLINE</span>
			<p>Write a tagline for the text logo</p>
		</div>
		<div class="td-box-control-full">
			<?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_tagline_text', 'placeholder' => 'DISCOVER THE ART OF PUBLISHING'));
?>
		</div>
	</div>
<?php 
echo td_panel_generator::box_end();
?>



<!-- LOGO for MOBILE-->
<?php 
echo td_panel_generator::box_start('Logo for Mobile', false);
?>

开发者ID:Che234,项目名称:andreatelo,代码行数:29,代码来源:td_panel_header.php

示例4:

                                <?php 
echo td_panel_generator::input(array('ds' => 'td_fonts_user_insert', 'option_id' => 'type_kit_font_family_2'));
?>
                            </div>
                        </div>


                        <!-- typekit.com Custom Font font family 3-->
                        <div class="td-box-row">
                            <div class="td-box-description">
                                <span class="td-box-title">CUSTOM FONT FAMILY 3</span>
                                <p>Type your desired name for this font</p>
                            </div>
                            <div class="td-box-control-full">
                                <?php 
echo td_panel_generator::input(array('ds' => 'td_fonts_user_insert', 'option_id' => 'type_kit_font_family_3'));
?>
                            </div>
                        </div>

                        <?php 
echo td_panel_generator::box_end();
?>
                    </div>



                    <!-- google fonts settings-->
                    <div  class="td-panel-active td-panel">
                        <?php 
echo td_panel_generator::box_start('Google Fonts Settings', false);
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:31,代码来源:td_view_custom_fonts.php

示例5: array

            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_more_articles_on_post_pages_enable', 'true_value' => 'show', 'false_value' => ''));
?>
        </div>
    </div>



    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">DISTANCE FROM THE TOP</span>
            <p>This is the distance from the top, that user have to scroll, before the window will appear, default 400</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_more_articles_on_post_pages_distance_from_top'));
?>
        </div>
    </div>



    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">DISPLAY ARTICLES</span>
            <p>What articles should be displayed</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_option', 'option_id' => 'tds_more_articles_on_post_pages_display', 'values' => array(array('text' => 'Latest Article', 'val' => ''), array('text' => 'From Same Category', 'val' => 'same_category'), array('text' => 'From Post Tags', 'val' => 'same_tag'), array('text' => 'From Same Author', 'val' => 'same_author'), array('text' => 'Random', 'val' => 'random'))));
?>
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:31,代码来源:panel_post_settings.php

示例6:

    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_sub_footer', 'true_value' => '', 'false_value' => 'hide'));
?>
    </div>
</div>

<!-- Footer copyright text -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">FOOTER COPYRIGHT TEXT</span>
        <p>Set footer copyright text</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_footer_copyright'));
?>
    </div>
</div>


<!-- Copyright symbol -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">COPYRIGHT SYMBOL</span>
        <p>Show or hide the footer copyright symbol</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_footer_copy_symbol', 'true_value' => '', 'false_value' => 'no'));
?>
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:panel_footer.php

示例7:

        <div class="td-box-description td-box-full">
            <span class="td-box-title">Notice:</span>
            <p>Please go to <strong>BACKGROUND</strong> tab if you also need a background image</p>
        </div>
        <div class="td-box-row-margin-bottom"></div>
    </div>

    <!-- ad box code -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">URL</span>
            <p>Paste your link here like : http://www.domain.com</p>
        </div>
        <div class="td-box-control-full td-panel-input-wide">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_background_click_url'));
?>
        </div>
    </div>


    <!-- ad taget -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">Open in new window</span>
            <p>If enabled, this option will open the URL in a new window. Leave disabled for the URL to be loaded in current page</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_background_click_target', 'true_value' => '_blank', 'false_value' => ''));
?>
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:31,代码来源:td_panel_ads.php

示例8: Class

            <?php 
echo td_panel_generator::textarea(array('ds' => 'td_option', 'option_id' => 'tds_responsive_css_phone'));
?>
        </div>
    </div>

<?php 
echo td_panel_generator::box_end();
?>


<!-- Add custom body class -->
<?php 
echo td_panel_generator::box_start('Custom Body Class(s)', false);
?>

<!-- Add custom body class -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">CUSTOM BODY CLASS(s)</span>
        <p>You can add one or more classes on theme body element. If you need more then one class, add them with a space between them.</p><p>Ex: class-test-1 class-test-2 </p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'td_body_classes'));
?>
    </div>
</div>

<?php 
echo td_panel_generator::box_end();
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:panel_custom_css.php

示例9: foreach

echo td_panel_generator::box_start('社交网络', true);
?>




<?php 
foreach (td_social_icons::$td_social_icons_array as $panel_social_id => $panel_social_name) {
    ?>
    <div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title"><?php 
    echo strtoupper($panel_social_name);
    ?>
</span>
        <p>链接到:<?php 
    echo $panel_social_name;
    ?>
</p>
    </div>
    <div class="td-box-control-full">
        <?php 
    echo td_panel_generator::input(array('ds' => 'td_social_networks', 'option_id' => $panel_social_id));
    ?>
    </div>
    </div><?php 
}
?>

<?php 
echo td_panel_generator::box_end();
开发者ID:ryandong82,项目名称:colorfulladysite,代码行数:31,代码来源:td_panel_social_networks.php

示例10:

        <div class="td-box-description td-box-full">
            <span class="td-box-title">Notice:</span>
            <p>Please go to <strong>BACKGROUND</strong> tab and uncheck  <strong>STRETCH BACKGROUND</strong> option, for Background Click Ad to work</p>
        </div>
        <div class="td-box-row-margin-bottom"></div>
    </div>

    <!-- ad box code -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">URL</span>
            <p>Paste your link here like : http://www.domain.com</p>
        </div>
        <div class="td-box-control-full td-panel-input-wide">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_ads', 'item_id' => 'background_click', 'option_id' => 'link'));
?>
        </div>
    </div>


    <!-- ad taget -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">Open in new window</span>
            <p>If enabled, this option will open the URL in a new window. Leave disabled for the URL to be loaded in current page</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_ads', 'item_id' => 'background_click', 'option_id' => 'target', 'true_value' => '_blank', 'false_value' => ''));
?>
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:31,代码来源:panel_ads.php

示例11: foreach

foreach ($td_translation_map as $key_id => $value) {
    // for each word in the $key_id array, not starting with (%) percent (internal variables like %CURRENT_PAGE% ),
    // we need to replace '_' with (') apostrophe
    //
    // we can't use $value instead of $key_id, because $value is a translated value
    //
    $arr_words = explode(' ', $key_id);
    foreach ($arr_words as &$word) {
        if (preg_match('/^%/', $word)) {
            continue;
        }
        $word = str_replace('_', '\'', $word);
    }
    $key = implode(' ', $arr_words);
    ?>
        <div class="td-box-row">
            <div class="td-box-description">
                <span class="td-box-title td-title-on-row"><?php 
    echo $key;
    ?>
</span>
                <p></p>
            </div>
            <div class="td-box-control-full">
                <?php 
    echo td_panel_generator::input(array('ds' => 'td_translate', 'option_id' => $key_id, 'placeholder' => $value));
    ?>
            </div>
        </div>
        <?php 
}
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:31,代码来源:td_translations.php

示例12: __td



<div class="td-box-section-separator"></div>

<!-- tag spot: select taxonomy -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">tag spot taxonomy</span>
        <p>What taxonomy should show up in the tag spot</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_cpt', 'item_id' => $custom_post_type, 'option_id' => 'tds_tag_spot_taxonomy', 'values' => $td_registered_taxonomies));
?>
    </div>
</div>

<!-- tag spot: text -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">tag spot text</span>
        <p>If you are using custom taxonomies, you can replace the default TAG label</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::input(array('ds' => 'td_cpt', 'item_id' => $custom_post_type, 'option_id' => 'tds_tag_spot_text', 'placeholder' => __td('TAGS')));
?>
    </div>
</div>

开发者ID:luxifel,项目名称:Bionerd,代码行数:27,代码来源:td_get_cpt_settings_by_post_type.php

示例13:

        <div class="td-box-description">
            <span class=" td-box-title td-title-on-row">TITLE LENGTH</span>
            <p></p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_mod_search_title_excerpt'));
?>
        </div>
    </div>

    <!-- CONTENT LENGTH LENGTH -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class=" td-box-title td-title-on-row">CONTENT LENGTH</span>
            <p></p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_mod_search_content_excerpt'));
?>
        </div>
    </div>

<?php 
echo td_panel_generator::box_end();
?>



开发者ID:Vatia13,项目名称:wordpress,代码行数:27,代码来源:panel_excerpts.php

示例14:

            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_logo_alt'));
?>
        </div>
    </div>


    <!-- Logo TITLE attribute -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">LOGO TITLE ATTRIBUTE</span>
            <p>Write TITLE attribute for the logo</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_logo_title'));
?>
        </div>
    </div>
<?php 
echo td_panel_generator::box_end();
?>



<!-- Logo for Mobile -->
<?php 
echo td_panel_generator::box_start('Logo for Mobile', false);
?>

    <!-- LOGO MOBILE IN MENU -->
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:panel_header.php

示例15: strtoupper

			<?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_logo_text', 'placeholder' => strtoupper(TD_THEME_NAME)));
?>
		</div>
	</div>


	<!-- Text LOGO Tagline -->
	<div class="td-box-row">
		<div class="td-box-description">
			<span class="td-box-title">文字LOGO标语</span>
			<p>写一个文字logo的标语</p>
		</div>
		<div class="td-box-control-full">
			<?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_tagline_text', 'placeholder' => '四亩地wordpress汉化主题'));
?>
		</div>
	</div>
<?php 
echo td_panel_generator::box_end();
?>



<!-- LOGO for MOBILE-->
<?php 
echo td_panel_generator::box_start('移动Logo', false);
?>

开发者ID:ryandong82,项目名称:colorfulladysite,代码行数:29,代码来源:td_panel_header.php


注:本文中的td_panel_generator::input方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。