مؤسسة الركن المكتبي التجارية تأسست على رؤية مُختلفة، تهدف إلى تقديم تجربة فريدة من نوعها في الأثاث المكتبي والفندقي لكي نضمن بيئة عمل توفر مساحات عمل مريحة وصحية، حيث نمتاز بخبراتنا الواسعة فأصبحت أحد أفضل المؤسسات الوطنية الرائدة في تجارة وصناعة الأثاث والتصميم الداخلي والسبّاقة على مستوى المملكة في المفروشات المكتبية والفندقية والمنزلية، نهدف الى خلق قيمة لعملائنا عن طريق توفير الجودة العالية في مقابل السعر المناسب.
منتجاتنا الجودة العالية في مقابل السعر المناسب
أغسطس 15, 2022
UX-антипаттерны в действии – Анализ скриншотов популярных онлайн-площадок Просматривая сотни скриншотов популярных онлайн-площадок, мы сразу же видим: навязчивое […]
يناير 1, 2023
Vavada рабочее зеркало вход для удобного доступа Vavada рабочее зеркало вход Чтобы получить моментальный доступ к любимым развлечениям, […]
مايو 29, 2023
Эпикстар казино играй и выигрывай без проблем онлайн Эпикстар казино играй и выигрывай онлайн без проблем Добро пожаловать […]
سبتمبر 16, 2023
Рацион 2025 год что ждет нас на столах Ключ к вашему рациону 2025 года – персонализация. Забудьте о […]
أكتوبر 16, 2023
Авто 2025 – Ваш выбор лучших моделей по всем классам Выберите свой идеальный автомобиль 2025 года. Наш гид […]
فبراير 6, 2025
فبراير 6, 2025
فبراير 6, 2025
أغسطس 15, 2022
UX-антипаттерны в действии – Анализ скриншотов популярных онлайн-площадок Просматривая сотни скриншотов популярных онлайн-площадок, мы сразу же видим: навязчивое […]
يناير 1, 2023
Vavada рабочее зеркало вход для удобного доступа Vavada рабочее зеркало вход Чтобы получить моментальный доступ к любимым развлечениям, […]
مايو 29, 2023
Эпикстар казино играй и выигрывай без проблем онлайн Эпикстар казино играй и выигрывай онлайн без проблем Добро пожаловать […]
سبتمبر 16, 2023
Рацион 2025 год что ждет нас на столах Ключ к вашему рациону 2025 года – персонализация. Забудьте о […]
أكتوبر 16, 2023
Авто 2025 – Ваш выбор лучших моделей по всем классам Выберите свой идеальный автомобиль 2025 года. Наш гид […]
فبراير 6, 2025
فبراير 6, 2025
فبراير 6, 2025
*(……&*6干sfa绅士的风度sfsdfd不打发打发死啊好办法
/home/officeco/public_html/wp-content/plugins/old/ninja-forms/includes/Display/Preview.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Class NF_Display_Preview
*/
class NF_Display_Preview
{
protected $_form_id = '';
public function __construct()
{
$this->_form_id = $this->constructFormId();
if(is_null($this->_form_id)){
return;
}
add_action('pre_get_posts', array($this, 'pre_get_posts'));
add_filter('the_title', array($this, 'the_title'));
remove_filter('the_content', 'wpautop');
remove_filter('the_excerpt', 'wpautop');
add_filter('the_content', array($this, 'the_content'), 9001);
add_filter('get_the_excerpt', array($this, 'the_content'));
//switched from template_include to template redirect filter hook to work with block-based (FSE) themes
add_filter('template_redirect', array($this, 'template_include'));
add_filter('post_thumbnail_html', array($this, 'post_thumbnail_html'));
}
public function pre_get_posts( $query )
{
$query->set( 'posts_per_page', 1 );
}
/**
* @return string
*/
function the_title( $title )
{
if( ! in_the_loop() ) return $title;
$form_title = Ninja_Forms()->form( $this->_form_id )->get()->get_setting( 'title' );
return esc_html( $form_title ) . " " . esc_html__( 'Preview', 'ninja-forms' );
}
/**
* @return string
*/
function the_content()
{
if ( !$this->userCanViewPreview() ) return esc_html__( 'You must be logged in and have form privileges to preview a form.', 'ninja-forms' );
// takes into account if we are trying to preview a non-published form
$tmp_id_test = explode( '-', $this->_form_id );
// if only 1 element, then is it numeric
if( 1 === count( $tmp_id_test) && ! is_numeric( $tmp_id_test[ 0 ] ) ) {
return esc_html__( 'You must provide a valid form ID.', 'ninja-forms' );
}
// if 2 array elements, is the first equal to 'tmp' and the second numeric
elseif ( ( 2 === count( $tmp_id_test )
&& ('tmp' != $tmp_id_test[ 0 ]
|| ! is_numeric( $tmp_id_test[ 1 ] ) ) ) ) {
return esc_html__( 'You must provide a valid form ID.', 'ninja-forms' );
}
return do_shortcode("[nf_preview id='" . esc_attr($this->_form_id) . "']");
}
/**
* Construct the form id
*
* Check for GET parameter, then sanitize. Failures return null
*
* @return string|null
*/
protected function constructFormId()
{
$return = null;
$previewParameter = $this->extractPreviewGetParameter();
if (is_null($previewParameter)) {
return $return;
}
$sanitizedFormId = $this->sanitizeFormId($previewParameter);
if (is_null($sanitizedFormId)) {
return $return;
}
return $sanitizedFormId;
}
/**
* Return the GET parameter for form preview id
*
* @return string|null
*/
protected function extractPreviewGetParameter()
{
$return = null;
if ( isset( $_GET['nf_preview_form'] ) ){
$return = $_GET['nf_preview_form'];
}
return $return;
}
/**
* Ensure form Id is only integer or tmp-*
*
* If disallowed structure is found, return null
*
* @param int|string $unsanitizedFormId
* @return int|string|null
*/
protected function sanitizeFormId($unsanitizedFormId)
{
$return = null;
$wpSanitized = WPN_Helper::sanitize_text_field($unsanitizedFormId);
if(is_int($wpSanitized) ||
is_string($wpSanitized) && ctype_digit($wpSanitized) ){
$return = $wpSanitized;
return $return;
}
if(!is_string($wpSanitized)){
return $return;
}
$return = $this->sanitizeForUnpublishedFormId($wpSanitized);
return $return;
}
/**
* Allow non-integer-like values form unpublished form
*
* Uses format tmp-***
*
* @param string $incoming
* @return void
*/
protected function sanitizeForUnpublishedFormId(string $incoming)
{
$return = null;
if (strpos($incoming, 'tmp-') === 0) {
$prefixRemoved = str_replace('tmp-', '', $incoming);
if (ctype_digit($prefixRemoved)) {
$return = $incoming;
}
}
return $return;
}
/**
* Does user have permission to preview forms?
*
* @return boolean
*/
protected function userCanViewPreview(): bool
{
$return = true;
if (! is_user_logged_in() || !current_user_can(apply_filters('ninja_forms_admin_all_forms_capabilities', 'manage_options'))) {
$return = false;
}
return $return;
}
/**
* Locate_template will be loaded using second argument of the get_query_templates() function
* First argument will be prefixed with _template to create a hook
* @return void
*/
function template_include()
{
$templates = array( 'page.php', 'single.php', 'index.php');
include( get_query_template('ninja-forms', $templates) );
exit;
}
function post_thumbnail_html() {
return '';
}
} // END CLASS NF_Display_Preview
Run Command [Bypass]
Run Command