|
@@ 1662-1669 (lines=8) @@
|
| 1659 |
|
* @since 1.0.4 |
| 1660 |
|
* @return bool |
| 1661 |
|
*/ |
| 1662 |
|
public function is_elementor_preview() { |
| 1663 |
|
$result = false; |
| 1664 |
|
if ( isset( $_REQUEST['elementor-preview'] ) || ( is_admin() && isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'elementor' ) || (isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'elementor_ajax') ) { |
| 1665 |
|
$result = true; |
| 1666 |
|
} |
| 1667 |
|
|
| 1668 |
|
return $result; |
| 1669 |
|
} |
| 1670 |
|
|
| 1671 |
|
/** |
| 1672 |
|
* Tests if the current output is inside a Divi preview. |
|
@@ 1677-1684 (lines=8) @@
|
| 1674 |
|
* @since 1.0.6 |
| 1675 |
|
* @return bool |
| 1676 |
|
*/ |
| 1677 |
|
public function is_divi_preview() { |
| 1678 |
|
$result = false; |
| 1679 |
|
if ( isset( $_REQUEST['et_fb'] ) || isset( $_REQUEST['et_pb_preview'] ) || ( is_admin() && isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'elementor' ) ) { |
| 1680 |
|
$result = true; |
| 1681 |
|
} |
| 1682 |
|
|
| 1683 |
|
return $result; |
| 1684 |
|
} |
| 1685 |
|
|
| 1686 |
|
/** |
| 1687 |
|
* Tests if the current output is inside a Beaver builder preview. |