Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: video_add_form.php
<!-- Page header --> <div class="page-header border-bottom-0"> <div class="page-header-content header-elements-md-inline"> <div class="page-title d-flex"> <h4><a href="javascript:void(0)" class="BackButton-Link" onclick="goBack()"><i class="icon-arrow-left52 mr-2"></i></a> <?php echo $this->lang->line('BE_LBL_808'); ?></h4> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <div class="card"> <div class="row"> <div class="col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10"> <div class="card-body"> <!-- Our Working Area Start --> <?php if (isset($message) && $message != '') { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="alert alert-success"><?php echo $message; ?></div> </div> </div> <?php } ?> <!-- BEGIN FORM--> <?php echo form_open(base_url($this->config->item('apanel_name').'/Miscellaneous/video') . '?id=' . $id . '&frmid=73&fTypeId=14', array('class' => "form-horizontal", 'name' => "frm", 'method' => "post", 'id' => "frm")) ?> <!--<form class="form-horizontal" name="frm" method="post" id="frm">--> <input type="hidden" id="id" name="id" value="<?php echo($id); ?>"> <div class="form-group row"> <label class="col-lg-3 control-label text-right"><? echo $this->lang->line('BE_MR_26'); ?>:<span class="required_field">*</span></label> <div class="col-lg-4"> <input type="text" class="form-control" placeholder="Enter Title" maxlength="100" name="txtTitle" id="txtTitle" value="<? echo($title); ?>"/> </div> </div> <div class="form-group row"> <label class="col-lg-3 control-label text-right"><? echo $this->lang->line('BE_LBL_809'); ?>:<span class="required_field">*</span></label> <div class="col-lg-4"> <input type="text" class="form-control" placeholder="Enter Youtube Video Link" maxlength="255" name="txtLnk" id="txtLnk" value="<? echo($lnk); ?>"/> </div> <span class="form-text text-muted"> Example: OSc9-rFuop4 </span> </div> <div class="form-group row"> <label class="col-lg-3 control-label text-right"> </label> <div class="col-lg-4"> <a href="javascript:void(0)" onclick="previewVideo()" class="btn btn-primary ThemeColorButton"> Preview Video</a> </div> </div> <div class="form-group row"> <label class="control-label col-md-3 text-right"><? echo $this->lang->line('BE_CR_2'); ?>:</label> <div class="col-lg-9"> <textarea class="ckeditor form-control" name="txtDescription" rows="6"><? echo $desc; ?></textarea> </div> </div> <div class="form-group row"> <label class="col-lg-3 control-label text-right"><? echo $this->lang->line('BE_GNRL_1'); ?>:</label> <div class="col-lg-4"> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" name="chkDisableVideo" id="chkDisableVideo" <? echo $disable == 1 ? 'checked' : ''; ?> class="toggle"/><span><label for="chkDisableVideo"></label></span> </div> </div> </div> <div class="form-group row"> <div class="col-lg-3"></div> <div class="col-md-9"> <button type="submit" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> class="btn btn-primary ThemeColorButton"><? echo $this->lang->line('BE_LBL_72'); ?></button> </div> </div> <?php echo form_close(); ?> <!--</form>--> <!-- END FORM--> </div> </div> </div> </div> </div> <div class="modal" tabindex="-1" role="dialog" id="videomodal"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">If video doesn't play automatically, then please check the video name you entered.</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <p>Modal body text goes here.</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </div> </div> </div> ]<!-- END PAGE CONTENT--> <script type="text/javascript" src="<?php echo base_url('assets/plugins/ckeditor/ckeditor.js'); ?>"></script> <script language="javascript" src="<?php echo base_url('assets/js/video.js'); ?>"></script> <script type="text/javascript"> function previewVideo() { var video = $('[name="txtLnk"]').val(); if(video.trim()) { $("#videomodal .modal-body").html(`<iframe width="420" height="315" src="https://www.youtube.com/embed/`+ video +`?autoplay=1&mute=1"></iframe>`); $("#videomodal").modal("show"); } else { alert("Please enter Youtube video name"); } } $(function () { $("#videomodal").on('hide.bs.modal', function () { $(this).find('.modal-body').html(""); }) }) </script>