[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/ -> assets-loader.php (summary)

Defines default styles and scripts.

File Size: 142 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  gp_register_default_styles()
  gp_register_default_scripts()
  gp_enqueue_styles()
  gp_enqueue_style()
  gp_enqueue_scripts()
  gp_enqueue_script()
  gp_print_styles()
  gp_print_scripts()

Functions
Functions that are not part of a class:

gp_register_default_styles()   X-Ref
Registers the GlotPress styles and loads the base style sheet.


gp_register_default_scripts()   X-Ref
Register the GlotPress scripts.


gp_enqueue_styles( $handles )   X-Ref
Enqueue one or more styles.

param: string|array $handles A single style handle to enqueue or an array or style handles to enqueue.
since: 2.2.0

gp_enqueue_style( $handle )   X-Ref
Enqueue one or more styles.

param: string $handle A single style handle to enqueue.
since: 1.0.0

gp_enqueue_scripts( $handles )   X-Ref
Enqueue one or more scripts.

param: string|array $handles A single script handle to enqueue or an array of enqueue handles to enqueue.
since: 2.2.0

gp_enqueue_script( $handle )   X-Ref
Enqueue one or more scripts.

param: string $handle A single script handle to enqueue.
since: 1.0.0

gp_print_styles()   X-Ref
Print the styles that have been enqueued.

Only output the styles that GlotPress has registered, otherwise we'd be sending any style that the WordPress theme or plugins may have enqueued.

since: 2.2.0

gp_print_scripts()   X-Ref
Print the scripts that have been enqueued.

Only output the scripts that GlotPress has registered, otherwise we'd be sending any scripts that the WordPress theme or plugins may have enqueued.

since: 2.2.0



Generated: Thu Dec 26 01:01:15 2024 Cross-referenced by PHPXref 0.7.1