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


PHP Jot::info方法代码示例

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


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

示例1:

<fieldset>
  <legend>Disqus</legend>
  <label class="grid-group">
    <span class="grid span-1 form-label"><?php 
echo $speak->id . ' ' . Jot::info($speak->plugin_comment_service->description->disqus_id);
?>
</span>
    <span class="grid span-5"><?php 
echo Form::text('services[disqus][id]', $comment_service_config['services']['disqus']['id'], File::N($config->host));
?>
</span>
  </label>
</fieldset>
开发者ID:tovic,项目名称:comment-service-plugin-for-mecha-cms,代码行数:13,代码来源:configurator.php

示例2: trim

<form class="form-plugin" action="<?php 
echo $config->url_current;
?>
/update" method="post">
  <?php 
echo Form::hidden('token', $token);
?>
  <p><?php 
echo $speak->plugin_cache_description_content . ' ' . Jot::info($speak->plugin_cache_info_content);
?>
</p>
  <?php 
$cache_config = File::open(__DIR__ . DS . 'states' . DS . 'config.txt')->unserialize();
$content = "";
foreach ($cache_config['path'] as $path => $exp) {
    if ($exp !== true) {
        $exp = ' ' . $exp;
    } else {
        $exp = "";
    }
    $content .= $path . $exp . "\n";
}
?>
  <p><?php 
echo Form::textarea('content', trim($content), 'feed/rss', array('class' => array('textarea-block', 'textarea-expand')));
?>
</p>
  <p><?php 
echo Jot::button('action', $speak->update);
?>
</p>
开发者ID:yiannisSt,项目名称:mecha-cms,代码行数:31,代码来源:configurator.php

示例3: trim

<p><?php 
echo $speak->plugin_cache->description->content . ' ' . Jot::info($speak->plugin_cache->info->content);
?>
</p>
<?php 
$c_cache = $config->states->{'plugin_' . md5(File::B(__DIR__))};
$content = "";
foreach ($c_cache->path as $path => $exp) {
    if ($exp !== true) {
        $exp = ' ' . $exp;
    } else {
        $exp = "";
    }
    $content .= $path . $exp . "\n";
}
?>
<p><?php 
echo Form::textarea('content', trim($content), 'feed/rss', array('class' => array('textarea-block', 'textarea-expand')));
?>
</p>
<p><?php 
echo Jot::button('action', $speak->update);
?>
</p>
开发者ID:AdeHaze,项目名称:mecha-cms,代码行数:24,代码来源:configurator.php

示例4: array

$twitter_cards_config = File::open(__DIR__ . DS . 'states' . DS . 'config.txt')->unserialize();
?>
  <label class="grid-group">
    <span class="grid span-2 form-label"><?php 
echo $speak->plugin_twitter_cards->twitter_site . ' ' . Jot::info($speak->plugin_twitter_cards->description);
?>
</span>
    <span class="grid span-4">
    <?php 
echo Form::text('twitter_site', $twitter_cards_config['twitter_site'], Text::parse(File::N($config->host), '->array_key', true), array('class' => 'input-block'));
?>
    </span>
  </label>
  <label class="grid-group">
    <span class="grid span-2 form-label"><?php 
echo $speak->plugin_twitter_cards->twitter_creator . ' ' . Jot::info($speak->plugin_twitter_cards->description);
?>
</span>
    <span class="grid span-4">
    <?php 
echo Form::text('twitter_creator', $twitter_cards_config['twitter_creator'], Text::parse($config->author->name, '->array_key', true), array('class' => 'input-block'));
?>
    </span>
  </label>
  <div class="grid-group">
    <span class="grid span-2"></span>
    <span class="grid span-4"><?php 
echo Jot::button('action', $speak->update);
?>
</span>
  </div>
开发者ID:tovic,项目名称:twitter-cards-plugin-for-mecha-cms,代码行数:31,代码来源:configurator.php

示例5: array

<?php

$fields = Get::state_field(null, array(), true, $segment);
if (!empty($fields)) {
    $html = "";
    $field = Guardian::wayback('fields', Mecha::A($page->fields_raw));
    $_ = 'unit:' . time() . '--';
    foreach ($fields as $key => $value) {
        if (isset($field[$key]['type'])) {
            // `POST` request
            $field[$key] = isset($field[$key]['value']) ? $field[$key]['value'] : "";
        }
        $type = $value['type'];
        if (!isset($value['scope']) || strpos(',' . $value['scope'] . ',', ',' . $segment . ',') !== false) {
            $description = isset($value['description']) && trim($value['description']) !== "" ? ' ' . Jot::info($value['description']) : "";
            $title = $value['title'] . $description;
            $html .= Form::hidden('fields[' . $key . '][type]', $type);
            if ($type === 'hidden' || $type === 'h') {
                $html .= Form::hidden('fields[' . $key . '][value]', isset($field[$key]) ? $field[$key] : $value['value']);
            } else {
                if ($type === 'text' || $type === 't') {
                    $html .= '<label class="grid-group grid-group-text">';
                    $html .= '<span class="grid span-2 form-label">' . $title . '</span>';
                    $html .= '<span class="grid span-4">';
                    $html .= Form::text('fields[' . $key . '][value]', Converter::toText(isset($field[$key]) ? $field[$key] : $value['value']), Converter::toText(isset($value['placeholder']) ? $value['placeholder'] : $value['value']), array('class' => 'input-block'));
                    $html .= '</span>';
                    $html .= '</label>';
                } else {
                    if ($type === 'boolean' || $type === 'b') {
                        $html .= '<div class="grid-group grid-group-boolean">';
                        $html .= '<span class="grid span-2"></span>';
开发者ID:yiannisSt,项目名称:mecha-cms,代码行数:31,代码来源:fields[].php


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