本文整理汇总了PHP中GFAddOn::styles方法的典型用法代码示例。如果您正苦于以下问题:PHP GFAddOn::styles方法的具体用法?PHP GFAddOn::styles怎么用?PHP GFAddOn::styles使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GFAddOn
的用法示例。
在下文中一共展示了GFAddOn::styles方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: styles
public function styles()
{
parent::styles();
return array(array("handle" => "gravityforms-digitalocean_css", "src" => $this->get_base_url() . "/css/gfdo.css", "version" => GFCommon::$version, "enqueue" => array(array("admin_page" => array("form_settings", "plugin_settings", "plugin_page")))));
}
示例2: styles
protected function styles()
{
$my_styles = array(array("handle" => "gform_admin", "src" => GFCommon::get_base_url() . "/css/admin.css", "version" => GFCommon::$version, "enqueue" => array(array("query" => "page=" . $this->_slug))));
return array_merge(parent::styles(), $my_styles);
}
示例3: styles
public function styles()
{
return array_merge(parent::styles(), array(array('handle' => 'gravity_forms_section_tabs_main', 'src' => $this->get_base_url() . '/css/main.css', 'version' => $this->_version, 'enqueue' => array(array('field_types' => array('section'))))));
}
示例4: styles
public function styles()
{
$min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG || isset($_GET['gform_debug']) ? '' : '.min';
$styles = array(array('handle' => 'gfwebap_settings', 'src' => GFCommon::get_base_url() . "/includes/webapi/css/gfwebapi_settings{$min}.css", 'version' => $this->_version, 'deps' => array('thickbox'), 'enqueue' => array(array('admin_page' => array('plugin_settings')))));
return array_merge(parent::styles(), $styles);
}
示例5: styles
/**
* Include admin css
*
*/
public function styles()
{
$styles = array(array("handle" => "sticky-list_admin_styles", "src" => $this->get_base_url() . "/css/sticky-list_admin_styles.css", "version" => $this->_version, "enqueue" => array(array("admin_page" => array("form_settings"), "tab" => "sticky-list"))));
return array_merge(parent::styles(), $styles);
}
示例6: styles
/**
* Return the stylesheets which should be enqueued.
*
* @return array
*/
public function styles()
{
$styles = array(array('handle' => 'gpoll_form_editor_css', 'src' => $this->get_base_url() . '/css/gpoll_form_editor.css', 'version' => $this->_version, 'enqueue' => array(array('admin_page' => array('form_editor')))), array('handle' => 'gpoll_css', 'src' => $this->get_base_url() . '/css/gpoll.css', 'version' => $this->_version, 'enqueue' => array(array('field_types' => array('poll')), array('admin_page' => array('form_editor', 'results', 'entry_view', 'entry_detail')))));
return array_merge(parent::styles(), $styles);
}
示例7: styles
/**
* Register styles in the app admin page
* @return array
*/
public function styles()
{
$styles = parent::styles();
$styles[] = array('handle' => 'gravityview_settings', 'src' => plugins_url('assets/css/admin-settings.css', GRAVITYVIEW_FILE), 'version' => GravityView_Plugin::version, "deps" => array('gaddon_form_settings_css'), 'enqueue' => array(array('admin_page' => array('app_settings'))));
return $styles;
}
示例8: styles
/**
* Return the stylesheets which should be enqueued.
*
* @return array
*/
public function styles()
{
$styles = array(array('handle' => 'gquiz_form_editor_css', 'src' => $this->get_base_url() . '/css/gquiz_form_editor.css', 'version' => $this->_version, 'enqueue' => array(array('admin_page' => array('form_editor')))), array('handle' => 'gquiz_form_settings_css', 'src' => $this->get_base_url() . '/css/gquiz_form_settings.css', 'version' => $this->_version, 'enqueue' => array(array('admin_page' => array('form_settings'), 'tab' => array('gravityformsquiz')))), array('handle' => 'gquiz_css', 'src' => $this->get_base_url() . '/css/gquiz.css', 'version' => $this->_version, 'enqueue' => array(array('field_types' => array('quiz')), array('admin_page' => array('form_editor', 'results', 'entry_view', 'entry_detail')))));
return array_merge(parent::styles(), $styles);
}
示例9: styles
public function styles()
{
$styles = array(array("handle" => "my_styles_css", "src" => $this->get_base_url() . "/css/my_styles.css", "version" => $this->_version, "enqueue" => array(array("field_types" => array("poll")))));
return array_merge(parent::styles(), $styles);
}
示例10: styles
public function styles()
{
$styles = array(array('handle' => 'gfwebap_settings', 'src' => GFCommon::get_base_url() . '/includes/webapi/css/gfwebapi_settings.css', 'version' => $this->_version, 'deps' => array('thickbox'), 'enqueue' => array(array('admin_page' => array('plugin_settings')))));
return array_merge(parent::styles(), $styles);
}
示例11: styles
/**
* Enqueue styles using the Gravity Forms Addons framework
*
* @see GFAddOn::styles()
* @return void
*/
public function styles()
{
$styles = array(array("handle" => "business_hours_admin_style", "src" => $this->get_base_url() . "/assets/css/admin.css", "version" => $this->_version, "enqueue" => array(array("admin_page" => array("entry_view", "entry_detail", "form_editor")))), array("handle" => "business_hours_frontend_style", "src" => $this->get_base_url() . "/assets/css/public.css", "version" => $this->_version, "deps" => array("dashicons"), "enqueue" => array(array("field_types" => array("business_hours")), array("admin_page" => array("entry_edit", "entry_detail")))));
return array_merge(parent::styles(), $styles);
}
示例12: styles
protected function styles()
{
$styles = array(array("handle" => "gpoll_form_editor_css", "src" => $this->get_base_url() . "/css/gpoll_form_editor.css", "version" => $this->_version, "enqueue" => array(array("admin_page" => array("form_editor")))), array("handle" => "gpoll_css", "src" => $this->get_base_url() . "/css/gpoll.css", "version" => $this->_version, "enqueue" => array(array("field_types" => array("poll")), array("admin_page" => array("form_editor", "results", "entry_view", "entry_detail")))));
return array_merge(parent::styles(), $styles);
}