| @@ 81-87 (lines=7) @@ | ||
| 78 | /** |
|
| 79 | * {@inheritDoc} |
|
| 80 | */ |
|
| 81 | public function enqueue_web_scripts() { |
|
| 82 | foreach ( $this->scripts as $script ) { |
|
| 83 | if ( in_array( $script['type'], array( 'web', 'shared' ) ) ) { |
|
| 84 | $this->enqueue_script( $script ); |
|
| 85 | } |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * {@inheritDoc} |
|
| @@ 105-111 (lines=7) @@ | ||
| 102 | * |
|
| 103 | * @param string $hook Passes a string representing the current page. |
|
| 104 | */ |
|
| 105 | public function enqueue_admin_scripts( $hook ) { |
|
| 106 | foreach ( $this->scripts as $script ) { |
|
| 107 | if ( in_array( $script['type'], array( 'admin', 'shared' ) ) ) { |
|
| 108 | $this->enqueue_script( $script, $hook ); |
|
| 109 | } |
|
| 110 | } |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * {@inheritDoc} |
|