コード例 #1
0
<?php

/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <wpopal@gmail.com, support@wpopal.com>
 * @copyright  Copyright (C) 2015 wpopal.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http://www.wpopal.com
 * @support  http://www.wpopal.com/support/forum.html
 */
$config = array('type' => 'wpo_postconfig', 'format' => 'chat_content');
?>

<div class="entry-thumb">
   <?php 
echo training_wpo_format_chat_content(training_wpo_getcontent($config));
?>
</div>
コード例 #2
0
 *
 * @website  http://www.wpopal.com
 * @support  http://www.wpopal.com/support/forum.html
 */
$quote_content = array('type' => 'wpo_postconfig', 'format' => 'quote_content');
$quote_author = array('type' => 'wpo_postconfig', 'format' => 'quote_author');
?>
<div class="entry-thumb">
   <?php 
if (training_wpo_getcontent($quote_content)) {
    ?>
      <blockquote class="blockquote border blockquote-success blockquote-left space-20">
      <i class="fa fa-quote-left blockquote-icon bg-success radius-x"></i>
         <div class="blockquote-in">
            <?php 
    echo training_wpo_getcontent($quote_content);
    ?>
         </div>
      </blockquote>
   <?php 
} else {
    ?>
      <blockquote class="blockquote border blockquote-success blockquote-left space-20">
       <i class="fa fa-quote-left blockquote-icon bg-success radius-x"></i>
         <div class="blockquote-in">
            <?php 
    the_excerpt();
    ?>
         </div>
      </blockquote>
   <?php 
コード例 #3
0
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <wpopal@gmail.com, support@wpopal.com>
 * @copyright  Copyright (C) 2015 wpopal.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http://www.wpopal.com
 * @support  http://www.wpopal.com/support/forum.html
 */
$link_url = array('type' => 'wpo_postconfig', 'format' => 'link_url');
$link_title = array('type' => 'wpo_postconfig', 'format' => 'link_title');
?>

<?php 
if (training_wpo_getcontent($link_url)) {
    ?>
	<a class="post-link" href="<?php 
    echo esc_url(training_wpo_getcontent($link_url));
    ?>
" title="<?php 
    echo esc_attr(training_wpo_getcontent($link_title));
    ?>
">
		<?php 
    echo esc_url(training_wpo_getcontent($link_url));
    ?>
	</a>
<?php 
}