PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/productjuly1video/champdoms.click/themes/youplay/layout/edit_articles/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/productjuly1video/champdoms.click/themes/youplay/layout/edit_articles/content.html |
<div class="wo_about_wrapper_parent"> <div class="wo_about_wrapper"> <div class="hero hero-overlay"></div> </div> </div> <div class="pt_page_margin"> <div class="mat_header"> <h1><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z" /></svg> {{LANG edit_article}}</h1> </div> <div class="content pt_shadow"> <div class="col-md-12"> <div class="upload-head"> <h4>{{TITLE}}</h4> <hr> </div> </div> <div id="video-success" class="alert alert-success"></div> <div class="errors alert alert-danger"></div> <div class="col-md-8" id="edit-form"> <form action="" class="form-horizontal setting-panel pt_forms" method="POST"> <div class="form-group"> <label class="col-md-12" for="title">{{LANG title}}</label> <div class="col-md-12"> <input id="title" name="title" type="text" value="{{TITLE}}" class="form-control input-md"> </div> </div> <div class="form-group"> <label class="col-md-12" for="description">{{LANG descritpion}}</label> <div class="col-md-12"> <textarea name="description" id="description" cols="30" rows="10" class="form-control">{{DESC}}</textarea> </div> </div> <div class="form-group"> <label class="col-md-12" for="text">{{LANG the_article}}</label> <div class="col-md-12"> <textarea name="text" id="text" class="form-control">{{TEXT}}</textarea> </div> </div> <div class="form-group"> <label class="col-md-12" for="category_id">{{LANG category}}</label> <div class="col-md-12"> <select name="category" id="category_id" class="form-control"> <?php foreach($pt->categories as $key => $category) { $selected = ($pt->article->category == $key) ? 'selected' : '';?> <option value="<?php echo $key?>" <?php echo $selected?>><?php echo $category?></option> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-md-12" for="tags">{{LANG tags}}</label> <div class="col-md-12"> <input id="mySingleFieldTags" name="tags" type="text" value="{{TAGS}}" placeholder="" class="form-control input-md"> <span class="help-block">{{LANG tags_help}}</span> </div> </div> <div class="form-group hidden"> <label class="col-md-12" for="thumbnail">{{LANG thumbnail}}</label> <div class="col-md-12"> <input id="thumbnail" name="image" type="file" accept="image/*"> <span class="help-block">jpg, png, gif</span> </div> </div> <div class="last-sett-btn modal-footer" style="margin: 0px -25px -10px -25px;"> <button type="button" class="btn btn-delete setting-panel-mdbtn" onclick="PT_DeleteArticle({{ID}});">{{LANG delete}}</button> <button type="submit" id="submit-btn" class="btn btn-main setting-panel-mdbtn"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg> {{LANG publish}}</button> </div> <input type="hidden" name="id" class="id" value="{{ID}}"> </form> </div> <div class="col-md-4"> <div class="thumbnail-preview edit-thumb"> <img src="{{IMAGE}}" alt="{{TITLE}}"> </div> <div class="video-title"> <p>{{TITLE}}</p> </div> </div> <div class="clear"></div> <div class="clear"></div> </div> </div> <script src="{{CONFIG theme_url}}/js/tinymce/js/tinymce/tinymce.min.js"></script> <script> tinymce.init({ selector: '#text', // change this value according to your HTML auto_focus: 'element1', relative_urls: false, remove_script_host: false, height:500, toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image uploadImages | preview media fullpage | forecolor backcolor emoticons', plugins: [ 'advlist autolink link image lists charmap preview hr anchor pagebreak spellchecker', 'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking', 'save table contextmenu directionality emoticons template paste textcolor' ] }); function PT_DeleteArticle(id) { if (!id) { return false; } if (!confirm("{{LANG delete_article_text}}")) { return false; } $.post('{{LINK aj/articles/delete-article}}', {id: id}, function(data, textStatus, xhr) { if (data.status == 200) { window.location.href = '{{LINK my_articles}}'; } }); } $(function () { $('.edit-thumb').on('click', function(event) { $('#thumbnail').trigger('click'); }); $('#thumbnail').on('change', function(event) { readURL(this); }); $('#title').keyup(function(event) { $('.video-title p').html($(this).val()); }); $("#mySingleFieldTags").tagit({ allowSpaces: true }); $('#edit-form form').ajaxForm({ url: '{{LINK aj/articles/update-article}}?hash=' + $('.main_session').val(), beforeSend: function() { $('#submit-btn').attr('disabled', true); $('#submit-btn').text("{{LANG please_wait}}"); }, success: function(data) { if (data.status == 200) { $('#video-success').html("{{LANG reviewed_article}}"); window.location.href = data.url; } else { $('#submit-btn').attr('disabled', false); $('#submit-btn').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg> {{LANG publish}}'); $('.errors').removeClass('hidden').html(data.message); } } }); }); </script>