| @@ 130-143 (lines=14) @@ | ||
| 127 | * @return n/a |
|
| 128 | */ |
|
| 129 | ||
| 130 | function admin_enqueue_scripts() { |
|
| 131 | ||
| 132 | // validate page |
|
| 133 | if( !$this->validate_page() ) return; |
|
| 134 | ||
| 135 | ||
| 136 | // load acf scripts |
|
| 137 | acf_enqueue_scripts(); |
|
| 138 | ||
| 139 | ||
| 140 | // actions |
|
| 141 | add_action('acf/input/admin_head', array($this,'admin_head')); |
|
| 142 | add_action('acf/input/admin_footer', array($this,'admin_footer')); |
|
| 143 | } |
|
| 144 | ||
| 145 | ||
| 146 | /* |
|
| @@ 100-117 (lines=18) @@ | ||
| 97 | * @return N/A |
|
| 98 | */ |
|
| 99 | ||
| 100 | function admin_enqueue_scripts() { |
|
| 101 | ||
| 102 | // validate page |
|
| 103 | if( ! $this->validate_page() ) { |
|
| 104 | ||
| 105 | return; |
|
| 106 | ||
| 107 | } |
|
| 108 | ||
| 109 | ||
| 110 | // load acf scripts |
|
| 111 | acf_enqueue_scripts(); |
|
| 112 | ||
| 113 | ||
| 114 | // actions |
|
| 115 | add_action('acf/input/admin_footer', array($this, 'admin_footer'), 10, 1); |
|
| 116 | ||
| 117 | } |
|
| 118 | ||
| 119 | ||
| 120 | /* |
|