本文整理汇总了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);
}
示例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);
}