本文整理汇总了PHP中td_panel_generator::textarea方法的典型用法代码示例。如果您正苦于以下问题:PHP td_panel_generator::textarea方法的具体用法?PHP td_panel_generator::textarea怎么用?PHP td_panel_generator::textarea使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类td_panel_generator
的用法示例。
在下文中一共展示了td_panel_generator::textarea方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<!-- Analitycs -->
<?php
echo td_panel_generator::box_start('分析');
?>
<!-- GOOGLE ASYNCHRONOUS ADS -->
<div class="td-box-row">
<div class="td-box-description td-box-full">
<span class="td-box-title">谷歌分析代码</span>
<p>谷歌分析代码帮助你跟踪你的网站。四亩地注:也可以放百度统计、CNZZ或者其它需要的JS代码</p>
</div>
</div>
<!-- paste your code here -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">在这里粘贴你的代码</span>
<p>谷歌分析代码</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_option', 'option_id' => 'td_analytics'));
?>
</div>
</div>
<?php
echo td_panel_generator::box_end();
示例2:
<div class="td-box-control-full">
<?php
echo td_panel_generator::upload_image(array('ds' => 'td_option', 'option_id' => 'tds_footer_retina_logo_upload'));
?>
</div>
</div>
<!-- footer text -->
<div class="td-box-row td-custom-css">
<div class="td-box-description">
<span class="td-box-title">页脚文字</span>
<p>在这里写页脚文字</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_option', 'option_id' => 'tds_footer_text'));
?>
</div>
</div>
<!-- Footer contact email -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">您的邮箱地址</span>
<p>你的邮箱地址</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_footer_email'));
?>
示例3:
<!-- typekit.com fonts -->
<div class="td-panel-active td-panel">
<?php
echo td_panel_generator::box_start('Typekit.com Fonts', false);
?>
<!-- javascript from typekit.com-->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">Javascript Code</span>
<p>Copy the javascript code from typekit.com and paste it here</p>
</div>
<div class="td-box-control-full td-panel-input-wide">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_fonts_user_insert', 'option_id' => 'typekit_js'));
?>
</div>
</div>
<!-- typekit.com Custom Font font family 1-->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">CUSTOM FONT FAMILY 1</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_1'));
?>
示例4:
<?php
echo td_panel_generator::box_start('Article bottom ad', false);
?>
<!-- ad box code -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">YOUR ARTICLE BOTTOM AD</span>
<p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_ads', 'item_id' => 'content_bottom', 'option_id' => 'ad_code'));
?>
</div>
</div>
<div class="td-box-row">
<div class="td-box-description td-box-full">
<span class="td-box-title">Advance usage:</span>
<p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
</div>
<div class="td-box-row-margin-bottom"></div>
</div>
<!-- disable ad on monitor -->
示例5: array
<?php
$ad_spot_id = td_util::get_http_post_val('ad_spot_id');
//google ad list sizes
$td_google_ad_list_sizes = array(array('text' => 'Auto', 'val' => ''), array('text' => '120 x 90', 'val' => '120 x 90'), array('text' => '120 x 240', 'val' => '120 x 240'), array('text' => '120 x 600', 'val' => '120 x 600'), array('text' => '125 x 125', 'val' => '125 x 125'), array('text' => '160 x 90', 'val' => '160 x 90'), array('text' => '160 x 600', 'val' => '160 x 600'), array('text' => '180 x 90', 'val' => '180 x 90'), array('text' => '180 x 150', 'val' => '180 x 150'), array('text' => '200 x 90', 'val' => '200 x 90'), array('text' => '200 x 200', 'val' => '200 x 200'), array('text' => '234 x 60', 'val' => '234 x 60'), array('text' => '250 x 250', 'val' => '250 x 250'), array('text' => '320 x 100', 'val' => '320 x 100'), array('text' => '300 x 250', 'val' => '300 x 250'), array('text' => '300 x 600', 'val' => '300 x 600'), array('text' => '320 x 50', 'val' => '320 x 50'), array('text' => '336 x 280', 'val' => '336 x 280'), array('text' => '468 x 15', 'val' => '468 x 15'), array('text' => '468 x 60', 'val' => '468 x 60'), array('text' => '728 x 15', 'val' => '728 x 15'), array('text' => '728 x 90', 'val' => '728 x 90'), array('text' => '970 x 90', 'val' => '970 x 90'), array('text' => '240 x 400 - Regional ad sizes', 'val' => '240 x 400'), array('text' => '250 x 360 - Regional ad sizes', 'val' => '250 x 360'), array('text' => '580 x 400 - Regional ad sizes', 'val' => '580 x 400'), array('text' => '750 x 100 - Regional ad sizes', 'val' => '750 x 100'), array('text' => '750 x 200 - Regional ad sizes', 'val' => '750 x 200'), array('text' => '750 x 300 - Regional ad sizes', 'val' => '750 x 300'), array('text' => '980 x 120 - Regional ad sizes', 'val' => '980 x 120'), array('text' => '930 x 180 - Regional ad sizes', 'val' => '930 x 180'));
?>
<!-- ad box code -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">YOUR AD CODE</span>
<p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_ads', 'item_id' => $ad_spot_id, 'option_id' => 'ad_code'));
?>
</div>
</div>
<div class="td-box-row">
<div class="td-box-description td-box-full">
<span class="td-box-title">Advance usage:</span>
<p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
</div>
<div class="td-box-row-margin-bottom"></div>
</div>
<!-- disable ad on monitor -->
示例6: get_template_directory_uri
<div class="td-box-row">
<div class="td-box-description">
<div class="td-display-inline-block">
<img src="<?php
echo get_template_directory_uri() . '/wp-admin/images/panel/resp-phone.png';
?>
">
</div>
<div class="td-display-inline-block">
<span class="td-box-title">PHONES</span>
<p>0 - 767px</p>
</div>
</div>
<div class="td-box-control-full">
<?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 -->
示例7:
<?php
echo td_panel_generator::box_start('Custom ad 3', false);
?>
<!-- ad box code -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">YOUR CUSTOM AD 3</span>
<p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_ads', 'item_id' => 'custom_ad_3', 'option_id' => 'ad_code'));
?>
</div>
</div>
<div class="td-box-row">
<div class="td-box-description td-box-full">
<span class="td-box-title">Advance usage:</span>
<p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
</div>
<div class="td-box-row-margin-bottom"></div>
</div>
<!-- disable ad on monitor -->
示例8:
<!-- CUSTOM Javascript -->
<?php
echo td_panel_generator::box_start('自定义Javascript');
?>
<!-- YOUR CUSTOM Javascript -->
<div class="td-box-row td-custom-javascript">
<div class="td-box-description">
<span class="td-box-title">你的自定义JAVASCRIPT</span>
<p>请输入你的自定义Javascript</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_option', 'option_id' => 'tds_custom_javascript'));
?>
</div>
</div>
<?php
echo td_panel_generator::box_end();
示例9: Class
">
</div>
<div class="td-display-inline-block">
<span class="td-box-title"><?php
echo $css_params['text'];
?>
</span>
<p><?php
echo $css_params['description'];
?>
</p>
</div>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_option', 'option_id' => $option_id));
?>
</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 -->
示例10: base64_encode
echo td_panel_generator::textarea(array('ds' => 'td_read_theme_options', 'option_id' => 'tds_read_theme_options', 'value' => base64_encode(serialize(get_option(TD_THEME_OPTIONS_NAME)))));
?>
</div>
<div class="td-box-row-margin-bottom"></div>
</div>
<div class="td-box-row">
<div class="td-box-description td-box-full">
<span class="td-box-title">IMPORT THEME SETTINGS</span>
<p>Paste your theme settings string here and the theme will load them into the database</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_update_theme_options', 'option_id' => 'tds_update_theme_options'));
?>
</div>
<div class="td-box-row-margin-bottom"></div>
</div>
<div class="td-box-row">
<input type="submit" class="td-big-button td-button-remove-border" value="Import theme settings">
</div>
<?php
echo td_panel_generator::box_end();
?>
</div>