<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>
예제 #2
0
<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>
예제 #3
0
<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>
$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>
예제 #5
0
<?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>';