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


PHP Actions::theme方法代码示例

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


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

示例1: form

 /**
  * @param array $instance
  * @return string|void
  * @description Widget Backend
  */
 public function form($instance)
 {
     if (isset($instance['title'])) {
         $title = $instance['title'];
     }
     $post_types = get_post_types();
     $objAction = new Actions();
     $data['post_types'] = $post_types;
     $data['title'] = $title;
     $data['obj'] = $this;
     $data['post_type'] = get_post_types();
     echo $objAction->theme('nv_new_posts_widget', $data);
 }
开发者ID:IdDevGroup,项目名称:Identifid-Website,代码行数:18,代码来源:NV_post_widget.php

示例2: form

 /**
  * @param array $instance
  * @return string|void
  * @description Widget Backend
  */
 public function form($instance)
 {
     if (isset($instance['title'])) {
         $title = $instance['title'];
     } else {
         $title = __('New title', 'novario');
     }
     if (isset($instance['address'])) {
         $address = $instance['address'];
     } else {
         $address = __('New address', 'novario');
     }
     if (isset($instance['phone'])) {
         $phone = $instance['phone'];
     } else {
         $phone = __('New phone', 'novario');
     }
     if (isset($instance['email'])) {
         $email = $instance['email'];
     } else {
         $email = __('New E-Mail', 'novario');
     }
     if (isset($instance['facebook'])) {
         $facebook = $instance['facebook'];
     } else {
         $facebook = __('New facebook link', 'novario');
     }
     if (isset($instance['googleplus'])) {
         $googleplus = $instance['googleplus'];
     } else {
         $googleplus = __('New google plus', 'novario');
     }
     if (isset($instance['twitter'])) {
         $twitter = $instance['twitter'];
     } else {
         $twitter = __('New twitter', 'novario');
     }
     if (isset($instance['linkedin'])) {
         $linkedin = $instance['linkedin'];
     } else {
         $linkedin = __('New linkedin', 'novario');
     }
     $objAction = new Actions();
     $data['obj'] = $this;
     $data['title'] = $title;
     $data['address'] = $address;
     $data['phone'] = $phone;
     $data['email'] = $email;
     $data['facebook'] = $facebook;
     $data['googleplus'] = $googleplus;
     $data['twitter'] = $twitter;
     $data['linkedin'] = $linkedin;
     echo $objAction->theme('nv_contact_and_social', $data);
 }
开发者ID:IdDevGroup,项目名称:Identifid-Website,代码行数:59,代码来源:NV_contact_widget.php


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