• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP soliloquy函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中soliloquy函数的典型用法代码示例。如果您正苦于以下问题:PHP soliloquy函数的具体用法?PHP soliloquy怎么用?PHP soliloquy使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: output_hero

function output_hero()
{
    $slider = get_field('slider');
    // print_r($slider);
    if (function_exists('soliloquy') && isset($slider->ID)) {
        soliloquy($slider->ID);
    }
}
开发者ID:dkenzik,项目名称:genesis-starter-grunt-sass,代码行数:8,代码来源:theme-views.php


示例2: soliloquy_slider

 /**
  * Primary template tag for outputting Soliloquy sliders in templates (v1).
  *
  * @since 2.1.0
  *
  * @param int $slider_id The ID of the slider to load.
  * @param bool $return   Flag to echo or return the slider HTML.
  */
 function soliloquy_slider($id, $return = false)
 {
     // First test to see if the slider can be found by ID. If so, run that.
     $by_id = Soliloquy::get_instance()->get_slider($id);
     if ($by_id) {
         return soliloquy($id, 'id', array(), $return);
     }
     // If not by ID, it must be a slug, so return the slug.
     return soliloquy($id, 'slug', array(), $return);
 }
开发者ID:shellygraham,项目名称:lair-hill-crossing,代码行数:18,代码来源:legacy.php


示例3: widget

 /**
  * widget function.
  *
  * @see WP_Widget
  * @access public
  * @param array $args
  * @param array $instance
  * @return void
  */
 function widget($args, $instance)
 {
     if ($this->get_cached_widget($args)) {
         return;
     }
     ob_start();
     extract($args);
     $slider = absint($instance['slider']);
     echo $before_widget;
     if (function_exists('soliloquy_slider')) {
         add_filter('soliloquy_output_caption', array($this, 'soliloquy_output_caption'), 10, 5);
         soliloquy($slider);
         remove_filter('soliloquy_output_caption', array($this, 'soliloquy_output_caption'), 10, 5);
     }
     echo $after_widget;
     $content = apply_filters('jobify_widget_slider_hero', ob_get_clean(), $instance, $args);
     echo $content;
     $this->cache_widget($args, $content);
 }
开发者ID:Josizzle,项目名称:VisitLift,代码行数:28,代码来源:class-widget-slider-hero.php


示例4: widget

 /**
  * widget function.
  *
  * @see WP_Widget
  * @access public
  * @param array $args
  * @param array $instance
  * @return void
  */
 function widget($args, $instance)
 {
     if ($this->get_cached_widget($args)) {
         return;
     }
     extract($args);
     $slider = absint($instance['slider']);
     echo '</div>';
     echo $before_widget;
     if (function_exists('soliloquy')) {
         add_filter('soliloquy_output_before_caption', array($this, 'soliloquy_output_before_caption'), 10, 5);
         add_filter('soliloquy_output_after_caption', array($this, 'soliloquy_output_after_caption'), 10, 5);
         add_filter('soliloquy_output_caption', array($this, 'soliloquy_output_caption'), 10, 5);
         soliloquy($slider);
         remove_filter('soliloquy_output_before_caption', array($this, 'soliloquy_output_before_caption'), 10, 5);
         remove_filter('soliloquy_output_after_caption', array($this, 'soliloquy_output_after_caption'), 10, 5);
         remove_filter('soliloquy_output_caption', array($this, 'soliloquy_output_caption'), 10, 5);
     }
     echo $after_widget;
     echo '<div class="container">';
 }
开发者ID:evinw,项目名称:project_3dBP,代码行数:30,代码来源:class-widget-slider-soliloquy.php


示例5: widget

 /**
  * Outputs the widget within the widgetized area.
  *
  * @since 1.0.0
  *
  * @param array $args     The default widget arguments.
  * @param array $instance The input settings for the current widget instance.
  */
 public function widget($args, $instance)
 {
     // Extract arguments into variables.
     extract($args);
     $title = apply_filters('widget_title', $instance['title']);
     $slider_id = $instance['soliloquy_id'];
     do_action('soliloquy_widget_before_output', $args, $instance);
     echo $before_widget;
     do_action('soliloquy_widget_before_title', $args, $instance);
     // If a title exists, output it.
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     do_action('soliloquy_widget_before_slider', $args, $instance);
     // If a slider has been selected, output it.
     if ($slider_id) {
         soliloquy($slider_id);
     }
     do_action('soliloquy_widget_after_slider', $args, $instance);
     echo $after_widget;
     do_action('soliloquy_widget_after_output', $args, $instance);
 }
开发者ID:rainrose,项目名称:WoodsDev,代码行数:30,代码来源:widget.php


示例6: widget

    /**
     * widget function.
     *
     * @see WP_Widget
     * @access public
     * @param array $args
     * @param array $instance
     * @return void
     */
    function widget($args, $instance)
    {
        if ($this->get_cached_widget($args)) {
            return;
        }
        ob_start();
        extract($args);
        $slider = absint($instance['slider']);
        $background = esc_url($instance['background']);
        echo $before_widget;
        if (function_exists('soliloquy_slider')) {
            add_filter('soliloquy_output_before_image', array($this, 'soliloquy_output_before_image'), 10, 5);
            add_filter('soliloquy_output_after_image', array($this, 'soliloquy_output_after_image'), 10, 5);
            add_filter('soliloquy_output_before_caption', array($this, 'soliloquy_output_before_caption'), 10, 5);
            add_filter('soliloquy_output_after_caption', array($this, 'soliloquy_output_after_image'), 10, 5);
            add_filter('soliloquy_output_caption', array($this, 'soliloquy_output_caption'), 10, 5);
            soliloquy($slider);
            remove_filter('soliloquy_output_before_image', array($this, 'soliloquy_output_before_image'), 10, 5);
            remove_filter('soliloquy_output_after_image', array($this, 'soliloquy_output_after_image'), 10, 5);
            remove_filter('soliloquy_output_before_caption', array($this, 'soliloquy_output_before_caption'), 10, 5);
            remove_filter('soliloquy_output_after_caption', array($this, 'soliloquy_output_after_image'), 10, 5);
            remove_filter('soliloquy_output_caption', array($this, 'soliloquy_output_caption'), 10, 5);
        }
        ?>
			<style>
			#<?php 
        echo $this->id;
        ?>
 { background-image: url(<?php 
        echo $background;
        ?>
); background-size: cover; }
			</style>
		<?php 
        echo $after_widget;
        $content = apply_filters('jobify_widget_slider', ob_get_clean(), $instance, $args);
        echo $content;
        $this->cache_widget($args, $content);
    }
开发者ID:Josizzle,项目名称:VisitLift,代码行数:48,代码来源:class-widget-slider-content.php


示例7: uw_site_title



<div class="home uw-body">

  <div class="row">

    <div role='main' class="uw-content" >
   
         <?php 
uw_site_title();
?>
                         
      <div id='main_content' class="uw-body-copy" tabindex="-1">
   <?php 
if (function_exists('soliloquy')) {
    soliloquy('14466');
}
?>
    
         
         <div class="row">
			
<?php 
get_template_part('quicklinks');
?>
            </div>
      
            <?php 
// Start the Loop.
while (have_posts()) {
    the_post();
开发者ID:anyalynn,项目名称:uwsod,代码行数:29,代码来源:home-no-title.php


示例8: one_blog_slider

function one_blog_slider()
{
    if (is_front_page() && function_exists('soliloquy')) {
        echo '
		<div class="home-slider-container hidden-xs">
			<div class="container-fluid">
				<div class="row">
					<div class="col-md-12">
						<div class="home-slider">';
        soliloquy('home-page-slider', 'slug');
        echo '</div>
					</div>
				</div>
			</div>
		</div>
		';
    }
}
开发者ID:riceguitar,项目名称:onetheme,代码行数:18,代码来源:functions.php


示例9: the_field

if (get_field('testimonial')) {
    ?>
                    <?php 
    the_field('testimonial');
    ?>
                <?php 
}
?>
            </div>
        </section>

        <section id="bottom">
            <div class="home-widgets-6 color-section widget-area">
                 <?php 
if (function_exists('soliloquy')) {
    soliloquy('376');
}
?>
            </div>
        </section>

        <footer role="contentinfo">

            <div id="footerbottom">
                <div class="wrap">
                    <p class="copyright">Copyright <?php 
echo date('Y');
?>
 Detroit IT.</p>
                </div>
            </div>
开发者ID:timk85,项目名称:DIT,代码行数:31,代码来源:page-law-firms.php


示例10: soliloquy

?>
" >

                    <div class="input-group">
                        <input type="text" id="searchbox" class="form-control" placeholder="Search" name="s" id="s">
                        <div class="input-group-btn">
                            <button class="btn btn-default"  id="searchsubmit"  type="submit"><i class="glyphicon glyphicon-search"></i></button>
                        </div>
                    </div>
                </form> 
            </div>-->

              </div>
        </div><!--end navbar-colapse-->

</nav>
        </div>
    
     <?php 
//Muestra SLIDESHOW solo si es FRONT PAGE
if (is_front_page()) {
    if (function_exists('soliloquy')) {
        soliloquy('29');
    }
}
?>
   
	</header><!-- #masthead -->

	<div id="content" class="site-content">
开发者ID:conceptorobledo,项目名称:ecoh,代码行数:30,代码来源:header.php


示例11: the_ID

 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Red_Cedar_Theme
 */
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
<?php 
if (function_exists('soliloquy')) {
    soliloquy('midwifery-services-slider', 'slug');
}
?>
<div class="entry-content">
	<div class="row">
		<h4><strong>Midwifery Services</strong></h4><br>
	</div>
	<div class="row">
		<div class="midwifery small-12 large-4 columns">
			<img src="/wp-content/uploads/2016/04/midwifery4.jpg" alt="Mother and Baby" width="400" height="600" />
		</div>
		<div class="labor small-12 large-8 columns">			
			<h5><strong>PRENATAL CARE</strong><br><p>Regular prenatal care includes monitoring the physical aspects of pregnancy as well as a time to learn about your changing body and the baby growing inside you. It is a time to get answers, discuss concerns, receive support, and prepare for giving birth. Partners and children are welcome and encouraged to participate in appointments.</p><br> <p>We value shared decision making and respect each family's right to make informed choices about the care they receive during pregnancy and birth. Making an informed choice allows families to take responsibility for decisions by considering all the options, risks and benefits. We support you making informed decisions by providing choices, information, and connecting you with resources.</h5></p>
		</div>
	</div>
	&nbsp;
开发者ID:evanjfarmer,项目名称:redcedar-theme,代码行数:31,代码来源:content-page-midwifery-services.php


示例12: the_ID

 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Red_Cedar_Theme
 */
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
<?php 
if (function_exists('soliloquy')) {
    soliloquy('doula-services-slider', 'slug');
}
?>
<div class="entry-content">
	<div class="row">
  		<div class="doula services small-12 large-8 columns">
  			<h4>Doula Services</h4>
  			&nbsp;
  			<h5><p>We all want a healthy mother and healthy baby. As your doula, our focus is on your specific goals and desires for this birth.  At <strong><i>Red Cedar Birth</i></strong> we trust you to make the best choices about your body, your baby and your birth.  You can expect your doula to provide information and education as well as affirm your priorities and preferences. We offer unbiased support and a policy of non-judgement, without agenda.<p>
  			Red Cedar Birth is a proud member of the <a class="community" href="http://www.willowtreefamily.com/lansing-doula-network">Lansing Doula Network</a>, and we have personally worked with the network to encourage a welcome and cohesive relationship between local doulas and hospital staff. Many of the providers in our area have been very open to deepening these relationships and we look forward to the positive impact this will have on our clients.<p>
  				<p><strong>Your doula team will:</strong></p>
  				<ul>
				<li><strong>Be a personal resource</strong> during your pregnancy and postpartum. Your doula is here to provide you with answers to questions and additional information on a large variety of subjects, as well as to help navigate hospital policy and regional standards of care.</li><br>
				<li><strong>Offer generous  phone and email support</strong> as well as any professional referrals into the community as needed.</li><br>
				<li><strong>Meet with you and your partner</strong> prenatally to discuss your birth goals, desires, and preferences.</li><br>
				<li><strong>When you are ready</strong> for physical support, your doula will join you, at home or hospital, and remain with you until you and baby are settled in for quiet family time.</li><br>
开发者ID:evanjfarmer,项目名称:redcedar-theme,代码行数:31,代码来源:content-page-doula-services.php


示例13: get_header

<?php

/* Template Name: Homepage */
get_header();
?>

<!--==============================Section start=================================-->
<section>
	
    <!--Slider Start-->
    <?php 
$avocation_soliloquy = get_theme_mod('avocation_soliloquy');
if (!empty($avocation_soliloquy)) {
    if (function_exists('soliloquy')) {
        soliloquy($avocation_soliloquy);
    }
}
?>
<!--Slider End-->   
 
<!--Purpose-Business  Start-->
    <div class="business-wrap">
        <span class="mask-overlay"></span>
        <div class="avocation-container  container business-box"> 
<?php 
$purpose_check = get_theme_mod('avocation_purposetitle');
if (!empty($purpose_check)) {
    ?>
            <h2><?php 
    echo esc_attr(get_theme_mod('avocation_purposetitle', ''));
    ?>
开发者ID:stvnfrancisco,项目名称:art_portfolio_wordpress,代码行数:31,代码来源:homepage.php


示例14: get_header

<?php

/*
	Template Name: Home Page
*/
get_header();
?>
	<div class="slider">
		<?php 
if (function_exists('soliloquy')) {
    soliloquy('1138');
}
?>
		<div class="content cf">
			
		</div><!-- .content -->
	</div><!-- #zone1 -->
	<?php 
while (have_posts()) {
    the_post();
    ?>
	<div class="fullwidth">
		<div class="content cf">
			<?php 
    the_content();
    ?>
		</div>
		<?php 
    if ($_GET['admin'] == 't8-seo-check') {
        echo '<div class="content cf">';
        the_meta();
开发者ID:spencer8,项目名称:tsp13,代码行数:31,代码来源:homepage.php


示例15: genesis_slider

function genesis_slider()
{
    if (function_exists('soliloquy')) {
        soliloquy('81');
    }
    if (function_exists('soliloquy')) {
        soliloquy('81', 'slug');
    }
    // custom excerpt length
    function custom_excerpt_length($length)
    {
        return 26;
    }
    add_filter('excerpt_length', 'custom_excerpt_length', 999);
    //edit read more text
    function new_excerpt_more($more)
    {
        return '&#133; <div class="read-more">  <a href="' . get_permalink(get_the_ID()) . '"><br>Read On &rarr;</a></div>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    // create custom loop
    function ycc_custom_loop()
    {
        global $post;
        setup_postdata($post);
        // create custom widget for school's introduction
        genesis_widget_area('homemainwidget', array('before' => '<div class="homemainwidget">', 'after' => '</div>'));
        // loop through posts to get 2 latest posts
        global $post;
        $args = array('posts_per_page' => 1, 'offset' => 0);
        $myposts = get_posts($args);
        foreach ($myposts as $post) {
            setup_postdata($post);
            ?>
<div class="news">
	<h2>News</h2>
		<div class="one-half first">
			<li><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a><p><?php 
            the_excerpt();
            ?>
</p></li>
		</div>
<?php 
        }
        wp_reset_postdata();
        $args = array('posts_per_page' => 1, 'offset' => 1);
        $myposts = get_posts($args);
        foreach ($myposts as $post) {
            setup_postdata($post);
            ?>
		<div class="one-half">
			<li><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a><p><?php 
            the_excerpt();
            ?>
</p></li>
		</div>
<?php 
        }
        wp_reset_postdata();
        ?>
</div>
	<div class="one-half first">
		<h2>Gallery</h2>
		<img src="http://www.cominscoch.ceredigion.sch.uk/wp/wp-content/uploads/IMG_1789.jpg" alt="">
	</div>
	<div class="one-half">
	Twitter Feed
	</div>
<?php 
    }
}
开发者ID:elk10,项目名称:CS399-Major-Project,代码行数:83,代码来源:home.php


示例16: if

	"03" => "Marzo",
	"04" => "Abril",
	"05" => "Mayo",
	"06" => "Junio",
	"07" => "Julio",
	"08" => "Agosto",
	"09" => "Septiembre",
	"10" => "Octubre",
	"11" => "Noviembre",
	"12" => "Diciembre"
);

?>
	<div class="row ctn__heroe-home">
		<div class="col-md-7">
			<?php if (function_exists('soliloquy')) { soliloquy( get_field('slider') ); } ?>
		</div>
		<div class="col-md-5">
			<script>
				jQuery(function($) {
					var menu = $('<?php echo $menu; ?>');

					$(menu).find('ul').children().each(function (k, v) {
						var link = $(v).children().get(0);
						var icon_name = $(link).attr('menu-icono');
						var menu_color = $(link).attr('menu-color');
						var span_icon = $('<span>').css({'float':'left','font-size':'40px','margin-top':'5px','width':'100%'}).get(0);
						var span_text = $('<span>').css({'float':'left','width':'100%'}).get(0).innerHTML = link.innerHTML;
						link.innerHTML = '';
						$(link).append($(span_icon).attr('class','fa fa-' + icon_name).css({'color':menu_color}).get(0).outerHTML).append(span_text);
					});
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:31,代码来源:page-home.php


示例17: genesis_slider

function genesis_slider()
{
    if (function_exists('soliloquy')) {
        soliloquy('81');
    }
    if (function_exists('soliloquy')) {
        soliloquy('81', 'slug');
    }
    // create custom loop
    function ycc_custom_loop()
    {
        global $post;
        setup_postdata($post);
        // create custom widget for school's introduction
        genesis_widget_area('homemainwidget', array('before' => '<div class="homemainwidget">', 'after' => '</div>'));
        // loop through posts to get 2 latest posts
        global $post;
        $args = array('posts_per_page' => 1, 'offset' => 0);
        $myposts = get_posts($args);
        foreach ($myposts as $post) {
            setup_postdata($post);
            ?>
<div class="latest-news">
	<h2>News</h2>
		<div class="one-half first">
			<li><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a><p><?php 
            the_excerpt();
            ?>
</p></li>
		</div>
<?php 
        }
        wp_reset_postdata();
        $args = array('posts_per_page' => 1, 'offset' => 1);
        $myposts = get_posts($args);
        foreach ($myposts as $post) {
            setup_postdata($post);
            ?>
		<div class="one-half">
			<li><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a><p><?php 
            the_excerpt();
            ?>
</p></li>
		</div>
<?php 
        }
        wp_reset_postdata();
        ?>
	</div>
	<div class="one-half first">
		<h2>Gallery</h2>
		<img src="http://www.cominscoch.ceredigion.sch.uk/wp/wp-content/uploads/IMG_1789.jpg" alt="">
	</div>
	<div class="one-half">
	Twitter Feed
	</div>
	
<?php 
    }
}
开发者ID:elk10,项目名称:CS399-Major-Project,代码行数:72,代码来源:front-page.php


示例18: soliloquy

</h4>
							

							
						<div class="front-page-button-div show-for-large-up">
							<a role="button" class="front-page-button-sign-up alert button" href="#what-we-do">Sign Up</a>
							<a role="button" class="front-page-button secondary button hvr-icon-down bounceInDown animated" href="#what-we-do">Learn More!</a>
						</div>
							

						</div>
						
				</header> 
				<?php 
    if (function_exists('soliloquy')) {
        soliloquy('frontpage-slider', 'slug');
    }
    ?>
				
				<?php 
    //if ( function_exists( 'rotating_text' ) ) { rotating_text(); }
    ?>
				

			</div>
			

	<?php 
} else {
    ?>
		<div class="header-wrapper">
开发者ID:breeeezzzz,项目名称:WeedPress,代码行数:31,代码来源:featured-image-frontpage.php


示例19: while

if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

                    <article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('cf');
        ?>
 role="article" itemscope itemtype="http://schema.org/BlogPosting">

                        <?php 
        if (function_exists('soliloquy')) {
            soliloquy('homepage', 'slug');
        }
        ?>

                        <div class="entry-content" itemprop="articleBody">
                            <?php 
        // the content (pretty self explanatory huh)
        the_content();
        ?>
                        </div>

                    </article>

                <?php 
    }
} else {
开发者ID:pfgl,项目名称:leedhams-rwd,代码行数:31,代码来源:page-home.php


示例20: get_header

/* Template Name: Homepage  */
get_header();
?>
        <section>
        	<?php 
if (!empty($eminent_soliloquy)) {
    ?>
            <div class="home-banner-section col-md-12">
                
			<?php 
    $eminent_soliloquy = get_theme_mod('eminent_soliloquy');
    $supporters = get_theme_mod('eminent_slideroption');
    if (1 == get_theme_mod('eminent_slideroption')) {
        if (function_exists('soliloquy')) {
            soliloquy($eminent_soliloquy);
        }
    }
    ?>
  

                   
            </div>
            <?php 
}
?>

            <!--blog section start-->
            <div class="section-row portfolio-section col-md-12">
                <div class="container less-padding">
                    <div class="theme-title col-md-8  col-md-offset-2">
开发者ID:dimiske,项目名称:gaastra,代码行数:30,代码来源:homepage.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP solution函数代码示例发布时间:2022-05-23
下一篇:
PHP softheader函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap