File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/core.zip
Back
PK �x�Z��5a� � addgame.phpnu �[��� <div class="section section-full"> <?php $selected_tab = isset($_GET['slug']) ? $_GET['slug'] : 'upload'; $tabs = array( 'upload' => 'Upload game', 'fetch' => 'Fetch games', 'remote' => 'Remote add', 'json' => 'JSON Importer' ); if(!check_purchase_code() && !ADMIN_DEMO){ echo('<div class="bs-callout bs-callout-warning"><p>Please provide your <b>Item Purchase code</b>. You can submit or update your Purchase code on site settings.</p><p>To be able to add a game, you need to provide your Item Purchase code. <a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code" target="_blank">Where to get Envato purchase code?</a></p></div>'); } else { ?> <input type="hidden" name="p_code" value="<?php echo (ADMIN_DEMO ? 'holy-moly' : check_purchase_code()) ?>" id="p_code" /> <ul class="nav nav-tabs custom-tab" role="tablist"> <?php foreach ($tabs as $tab_key => $tab_value) { $active = ($tab_key === $selected_tab) ? 'active' : ''; ?> <li class="nav-item" role="presentation"> <a class="nav-link <?php echo $active ?>" href="dashboard.php?viewpage=addgame&slug=<?php echo $tab_key ?>"><?php _e($tab_value) ?></a> </li> <?php } ?> </ul> <!-- Tab panes --> <div class="general-wrapper"> <div class="tab-content"> <?php $selected_categories = []; //Used for showing last selected categories if(isset($_SESSION['category'])){ if(is_array($_SESSION['category'])){ $selected_categories = (array)$_SESSION['category']; } else { $selected_categories = commas_to_array($_SESSION['category']); } } if(isset($_GET['status'])){ echo '<div class="mb-4"></div>'; if($_GET['status'] == 'added'){ show_alert('Game added!', 'success'); } elseif($_GET['status'] == 'exist'){ show_alert('Game already exist!', 'warning'); } elseif($_GET['status'] == 'error'){ $error = json_decode($_GET['error-data']); foreach ($error as $value) { show_alert($value, 'warning'); } } } if($selected_tab === 'upload'){ include 'core/addgame-upload.php'; } else if($selected_tab === 'fetch'){ include 'core/addgame-fetch.php'; } else if($selected_tab === 'remote'){ include 'core/addgame-remote.php'; } else if($selected_tab === 'json'){ include 'core/addgame-json.php'; } ?> </div> </div> <?php } ?> </div>PK �x�Z��8GI I collections.phpnu �[��� <?php require( dirname(__FILE__).'/../../classes/Collection.php' ); if(isset($_GET['status'])){ $type = 'success'; $message = ''; if($_GET['status'] == 'added'){ $message = 'New collection added!'; } elseif($_GET['status'] == 'exist'){ $type = 'warning'; $message = 'Collection already exist!'; } elseif($_GET['status'] == 'deleted'){ $type = 'warning'; $message = 'Collection deleted!'; } elseif($_GET['status'] == 'updated'){ $message = 'Collection updated!'; if(isset($_GET['info'])){ $message = $message.' '.$_GET['info']; } } show_alert($message, $type); } ?> <div class="row"> <div class="col-lg-8"> <div class="section"> <ul class="collection-list"> <?php $results = array(); $data = Collection::getList(); if($data['totalRows'] > 0){ $collections = $data['results']; foreach ($collections as $item) { echo '<li class="collection-item d-flex align-items-center">'; echo esc_string($item->name); echo '<div style="margin-left: auto;">'; echo '<span class="actions"><a class="editcollection" href="#" id="'.esc_int($item->id).'"><i class="fa fa-pencil-alt circle" aria-hidden="true"></i></a><a class="remove-collection text-danger" href="#" id="'.esc_int($item->id).'"><i class="fa fa-trash circle" aria-hidden="true"></i></a></span>'; echo '</div></li>'; } } else { _e('No collections found!'); } ?> </ul> </div> </div> <div class="col-lg-4"> <div class="section"> <form id="form-newcollection" action="request.php" method="post"> <input type="hidden" name="action" value="newCollection"> <input type="hidden" name="redirect" value="<?php echo DOMAIN ?>admin/dashboard.php?viewpage=collections"> <div class="mb-3"> <label for="collection"><?php _e('Add new collection') ?>:</label> <input type="text" class="form-control" name="name" placeholder="Name" value="" minlength="2" maxlength="15" required> </div> <div class="mb-3"> <label for="data">Game ids, separated by commas:</label> <input type="text" class="form-control" name="data" placeholder="2,4,11,12,23" value="" minlength="2" required> </div> <button type="submit" class="btn btn-primary btn-md"><?php _e('Add') ?></button> </form> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="edit-collection" tabindex="-1" role="dialog" aria-labelledby="edit-collection-modal-label" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="edit-collection-label"><?php _e('Edit collection') ?></h5> <button type="button" class="btn-close text-white" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form id="form-editcollection" action="request.php" method="post"> <input type="hidden" name="action" value="editCollection"> <input type="hidden" name="redirect" value="<?php echo DOMAIN ?>admin/dashboard.php?viewpage=collections"> <input type="hidden" id="edit-id" name="id" value=""/> <div class="mb-3"> <label class="form-label"><?php _e('Collection name / title') ?>:</label> <input type="text" class="form-control" id="edit-name" name="name" autocomplete="off" placeholder="Name of the collection" required minlength="2" maxlength="255" value=""/> </div> <div class="mb-3"> <label class="form-label"><?php _e('Collection slug') ?>:</label> <input type="text" class="form-control" id="edit-slug" name="slug" autocomplete="off" placeholder="collection-name" minlength="2" maxlength="255" value=""/> </div> <div class="mb-3"> <label for="data" class="form-label"><?php _e('Game ids') ?>:</label> <textarea class="form-control" name="data" id="edit-data" rows="3" placeholder="2,4,11,12,23" value="" minlength="2" required maxlength="10000"></textarea> </div> <div class="mb-3"> <label class="form-label"><?php _e('Description') ?>:</label> <textarea class="form-control" name="description" id="edit-description" rows="3" placeholder="" value="" maxlength="1000"></textarea> </div> <div class="mb-3"> <label class="form-label">Game list:</label> <select multiple class="form-control" id="collection-game-list" readonly="readonly"> </select> </div> <div class="mb-3"> <input id="edit-allow_dedicated_page" class="edit-allow_dedicated_page" name="allow_dedicated_page" type="checkbox"> <label class="form-label" for="edit-allow_dedicated_page">Allow dedicated page</label><br> </div> <input type="submit" class="btn btn-primary" value="<?php _e('Save changes') ?>" /> <input type="button" class="btn btn-secondary" data-bs-dismiss="modal" value="<?php _e('Close') ?>" /> </form> </div> </div> </div> </div>PK �x�Zt �� gamelist-edit.phpnu �[��� <?php if(isset($_SESSION['message'])){ show_alert($_SESSION['message']['text'], $_SESSION['message']['type']); unset($_SESSION['message']); } if(isset($_GET['id'])){ $game = Game::getById($_GET['id']); if($game){ ?> <div class="section section-full"> <ul class="nav nav-tabs custom-tab" role="tablist"> <li class="nav-item" role="presentation"> <a class="nav-link active"><?php _e('Edit game') ?></a> </li> </ul> <div class="general-wrapper"> <div class="editgame-wrapper"> <form id="form-uploadgame" action="request.php" enctype="multipart/form-data" autocomplete="off" method="post"> <input type="hidden" name="action" value="editGame"> <input type="hidden" name="redirect" value="dashboard.php?viewpage=gamelist&slug=edit&id=<?php echo $game->id ?>"> <input type="hidden" name="id" value="<?php echo $game->id ?>"> <div class="row"> <div class="col-md-8"> <div class="mb-3"> <label class="form-label" for="title"><?php _e('Game title') ?>:</label> <input type="text" class="form-control" name="title" value="<?php echo $game->title ?>" required/> </div> <div class="mb-3"> <label class="form-label" for="slug"><?php _e('Game slug') ?>:</label> <input type="text" class="form-control" name="slug" placeholder="game-title" value="<?php echo $game->slug ?>" minlength="3" maxlength="50" required> </div> <div class="mb-3"> <label class="form-label" for="description"><?php _e('Description') ?>:</label> <textarea class="form-control" name="description" rows="3" required><?php echo $game->description ?></textarea> </div> <div class="mb-3"> <label class="form-label" for="instructions"><?php _e('Instructions') ?>:</label> <textarea class="form-control" name="instructions" rows="3"><?php echo $game->instructions ?></textarea> </div> <div class="mb-3"> <label class="form-label"><?php _e('Game URL') ?>:</label> <input type="text" class="form-control" name="url" value="<?php echo $game->url ?>" minlength="3" required> </div> <div class="mb-3"> <label class="form-label"><?php _e('Game thumb_1') ?>:</label> <input type="text" class="form-control" name="thumb_1" value="<?php echo $game->thumb_1 ?>" minlength="3" required> </div> <div class="mb-3"> <label class="form-label"><?php _e('Game thumb_2') ?>:</label> <input type="text" class="form-control" name="thumb_2" value="<?php echo $game->thumb_2 ?>" minlength="3" required> </div> <div class="mb-3"> <label class="form-label"><?php _e('Game small thumbnail') ?>:</label> <input type="text" class="form-control" name="thumb_small" value="<?php echo $game->thumb_small ?>" minlength="3"> </div> <div class="mb-3"> <label class="form-label" for="width"><?php _e('Game width') ?>:</label> <input type="number" class="form-control" name="width" value="<?php echo $game->width ?>" required/> </div> <div class="mb-3"> <label class="form-label" for="height"><?php _e('Game height') ?>:</label> <input type="number" class="form-control" name="height" value="<?php echo $game->height ?>" required/> </div> <div class="mb-3"> <label class="form-label" for="category"><?php _e('Category') ?>:</label> <select multiple class="form-control" name="category[]" size="8" required/> <?php $selected_categories = commas_to_array($game->category); $results = array(); $data = Category::getList(); $categories = $data['results']; foreach ($categories as $cat) { $selected = (in_array($cat->name, $selected_categories)) ? 'selected' : ''; echo '<option '.$selected.'>'.$cat->name.'</option>'; } ?> </select> </div> </div> <div class="col-md-4"> <div class="mb-3"> <label class="form-label" for="tags"><?php _e('Tags') ?>:</label> <input type="text" class="form-control" name="tags" value="<?php echo $game->get_tags() ?>" id="tags-upload" placeholder="<?php _e('Separated by comma') ?>"> </div> <div class="tag-list"> <?php $tag_list = get_tags('usage'); if(count($tag_list)){ echo '<div class="mb-3">'; foreach ($tag_list as $tag_name) { echo '<span class="badge rounded-pill bg-secondary btn-tag" data-target="tags-upload" data-value="'.$tag_name.'">'.$tag_name.'</span>'; } echo '</div>'; } ?> </div> <?php $extra_fields = get_extra_fields('game'); if(count($extra_fields)){ ?> <div class="extra-fields"> <?php foreach ($extra_fields as $field) { ?> <div class="mb-3"> <label class="form-label" for="<?php echo $field['field_key'] ?>"><?php _e($field['title']) ?>: <br> <small class="fst-italic text-secondary"><?php echo $field['field_key'] ?></small> </label> <?php $default_value = $game->getExtraField($field['field_key']); $placeholder = $field['placeholder']; if($field['type'] === 'textarea'){ echo '<textarea class="form-control" name="extra_fields['.$field['field_key'].']" rows="3">'.$default_value.'</textarea>'; } else if($field['type'] === 'number'){ echo '<input type="number" name="extra_fields['.$field['field_key'].']" class="form-control" placeholder="'.$placeholder.'" value="'.$default_value.'">'; } else if($field['type'] === 'text'){ echo '<input type="text" name="extra_fields['.$field['field_key'].']" class="form-control" placeholder="'.$placeholder.'" value="'.$default_value.'">'; } ?> </div> <?php } ?> </div> <?php } ?> </div> </div> <div class="mb-3"> <input id="is_mobile" type="checkbox" name="is_mobile" <?php echo (isset($game->is_mobile) ? filter_var($game->is_mobile, FILTER_VALIDATE_BOOLEAN) : true) ? 'checked' : ''; ?>> <label class="form-label" for="is_mobile"><?php _e('Is mobile compatible') ?></label><br> <input id="published" type="checkbox" name="published" <?php echo (isset($game->published) ? filter_var($game->published, FILTER_VALIDATE_BOOLEAN) : true) ? 'checked' : ''; ?>> <label class="form-label" for="published"><?php _e('Published') ?></label><br> <p style="margin-left: 20px;" class="text-secondary"> <?php _e('If unchecked, this game will set as Draft.') ?> </p> </div> <button type="submit" class="btn btn-primary btn-md"><?php _e('Save changes') ?></button> </form> </div> </div> </div> <?php } } ?>PK �x�Z���� � categories-edit.phpnu �[��� <?php if(isset($_SESSION['message'])){ show_alert($_SESSION['message']['text'], $_SESSION['message']['type']); unset($_SESSION['message']); } if(isset($_GET['id'])){ $category = Category::getById($_GET['id']); if($category){ ?> <div class="section section-full"> <ul class="nav nav-tabs custom-tab" role="tablist"> <li class="nav-item" role="presentation"> <a class="nav-link active"><?php _e('Edit category') ?></a> </li> </ul> <div class="general-wrapper"> <form action="request.php" method="post"> <input type="hidden" name="action" value="editCategory"> <input type="hidden" name="redirect" value="dashboard.php?viewpage=categories&slug=edit&id=<?php echo $_GET['id'] ?>"> <input type="hidden" name="id" value="<?php echo $_GET['id'] ?>"/> <div class="row"> <div class="col-md-8"> <div class="mb-3"> <label class="form-label" for="title"><?php _e('Category Name') ?>:</label> <?php show_alert('Change category name will update all related games category string.', 'warning') ?> <input type="text" class="form-control" id="edit-name" name="name" placeholder="Name of the game" required minlength="2" maxlength="30" value="<?php echo $category->name ?>"> </div> <div class="mb-3"> <label class="form-label" for="slug"><?php _e('Category Slug') ?>:</label> <input type="text" class="form-control" id="edit-slug" name="slug" placeholder="online-games" required minlength="2" maxlength="30" value="<?php echo $category->slug ?>"> </div> <div class="mb-3"> <label class="form-label" for="description"><?php _e('Description') ?>:</label> <textarea class="form-control" name="description" id="edit-description" rows="3" placeholder="(Optional) Category description" minlength="3" maxlength="100000"><?php echo $category->description ?></textarea> </div> <div class="mb-3"> <label class="form-label" for="meta_description"><?php _e('Meta Description') ?>:</label> <textarea class="form-control" name="meta_description" id="edit-meta_description" rows="3" placeholder="(Optional) Category meta description" minlength="3" maxlength="100000"><?php echo $category->meta_description ?></textarea> </div> <div class="mb-3"> <label class="form-label" for="edit-priority"><?php _e('Priority') ?>:</label> <input type="number" class="form-control" id="edit-priority" name="priority" value="<?php echo $category->priority ?>" /> </div> <div class="mb-3"> <label class="form-label" for="cat-id"><?php _e('ID') ?>:</label> <input type="text" class="form-control" id="cat-id" value="<?php echo $category->id ?>" disabled /> </div> <div class="mb-3"> <input id="edit-hide" class="edit-hide" name="hide" type="checkbox" <?php echo ($category->priority < 0) ? 'checked' : '' ?>> <label class="form-label" for="edit-hide"><?php _e('Hide') ?></label><br> </div> </div> <div class="col-md-4"> <?php $extra_fields = get_extra_fields('category'); if(count($extra_fields)){ ?> <div class="extra-fields"> <?php foreach ($extra_fields as $field) { ?> <div class="mb-3"> <label class="form-label" for="<?php echo $field['field_key'] ?>"><?php _e($field['title']) ?>: <br> <small class="fst-italic text-secondary"><?php echo $field['field_key'] ?></small> </label> <?php $default_value = $category->getExtraField($field['field_key']); $placeholder = $field['placeholder']; if($field['type'] === 'textarea'){ echo '<textarea class="form-control" name="extra_fields['.$field['field_key'].']" rows="3">'.$default_value.'</textarea>'; } else if($field['type'] === 'number'){ echo '<input type="number" name="extra_fields['.$field['field_key'].']" class="form-control" placeholder="'.$placeholder.'" value="'.$default_value.'">'; } else if($field['type'] === 'text'){ echo '<input type="text" name="extra_fields['.$field['field_key'].']" class="form-control" placeholder="'.$placeholder.'" value="'.$default_value.'">'; } ?> </div> <?php } ?> </div> <?php } ?> </div> </div> <input type="submit" class="btn btn-primary" value="<?php _e('Save changes') ?>"> </form> </div> <?php } } ?>PK �x�Z5�R� � addgame-json.phpnu �[��� <div class="addgame-wrapper" id="json"> <p>Bulk import your game data with JSON format.</p> <p>Read "User Documentation" for sample JSON structure or code.</p> <p>Open browser log to see the import progress.</p> <p>Paste your JSON data below.</p> <form id="form-json"> <div class="mb-3"> <label class="form-label" for="json-importer">JSON data:</label> <textarea class="form-control" name="json-importer" rows="8" required /></textarea> </div> <button type="submit" class="btn btn-primary btn-md"><?php _e('Import') ?></button> </form> <br> <p>Preview JSON data (Game list) before submited.</p> <button class="btn btn-primary btn-md" id="json-preview"><?php _e('Preview') ?></button> <br><br> <table class="table" style="display: none;" id="table-json-preview"> <thead> <tr> <th>#</th> <th><?php _e('Title') ?></th> <th><?php _e('Slug') ?></th> <th><?php _e('URL') ?></th> <th><?php _e('Width') ?></th> <th><?php _e('Height') ?></th> <th><?php _e('Thumb') ?> 1</th> <th><?php _e('Thumb') ?> 2</th> <th><?php _e('Category') ?></th> <th><?php _e('Source') ?></th> </tr> </thead> <tbody id="json-list-preview"> </tbody> </table> </div>PK �x�Z��% % menus.phpnu �[��� <?php //include '../' .TEMPLATE_PATH . '/layout.php'; if(isset($_POST['menu_data'])){ if(USER_ADMIN && !ADMIN_DEMO){ $array_menu = json_decode($_POST['menu_data'], true); $sql = "TRUNCATE TABLE menus"; $st = $conn->prepare($sql); $st->execute(); update_menu($array_menu); show_alert('Menu saved!', 'success'); } } function update_menu($menu,$parent = 0) { global $conn; if (!empty($menu)) { foreach ($menu as $value) { $label = $value['label']; $name = 'top_nav'; $url = (empty($value['url'])) ? '#' : $value['url']; $sql = "INSERT INTO menus (label, url, parent_id, name) VALUES (:label, :url, :parent, :name)"; $st = $conn->prepare($sql); $st->bindValue(':label', $label, PDO::PARAM_STR); $st->bindValue(':url', $url, PDO::PARAM_STR); $st->bindValue(':name', $name, PDO::PARAM_STR); $st->bindValue(':parent', $parent, PDO::PARAM_INT); $st->execute(); $id = $conn->lastInsertId(); if (array_key_exists('children', $value)) update_menu($value['children'],$id); } } } function render_menu_item($id, $label, $url) { return '<li class="dd-item dd3-item" data-id="' . $id . '" data-label="' . $label . '" data-url="' . $url . '">' . '<div class="dd-handle dd3-handle" > Drag</div>' . '<div class="dd3-content"><span>' . $label . '</span>' . '<div class="item-edit"><i class="fa fa-pencil-alt" aria-hidden="true"></i></div>' . '</div>' . '<div class="item-settings d-none">' . '<div class="mb-3">' . '<label>Name</label><input type="text" class="form-control" name="navigation_label" value="' . $label . '">' . '</div>' . '<div class="mb-3">' . '<label>URL</label><input type="text" class="form-control" name="navigation_url" value="' . $url . '">' . '</div>' . '<p><a class="item-delete" href="javascript:;">Remove</a> | ' . '<a class="item-close" href="javascript:;">Close</a></p>' . '</div>'; } function menu_tree($parent_id = 0) { global $conn; $items = ''; $sql = "SELECT * FROM menus WHERE parent_id = :parent_id ORDER BY id ASC"; $st = $conn->prepare($sql); $st->bindValue(":parent_id", $parent_id, PDO::PARAM_INT); $st->execute(); $result = $st->fetchAll(); if (count($result)) { $items .= '<ol class="dd-list">'; foreach ($result as $row) { $items .= render_menu_item($row['id'], $row['label'], $row['url']); $items .= menu_tree($row['id']); $items .= '</li>'; } $items .= '</ol>'; } return $items; } ?> <?php if(isset($_GET['status'])){ $type = 'success'; $message = ''; if($_GET['status'] == 'saved'){ $message = 'Layout saved!'; } show_alert($message, $type); } ?> <div class="row"> <div class="col-lg-8"> <div class="section section-full"> <ul class="nav nav-tabs custom-tab" role="tablist"> <?php foreach($tab_list as $tab => $label){ $active = ''; if($tab == $slug){ $active = 'active'; } ?> <li class="nav-item" role="presentation"> <a class="nav-link <?php echo $active ?>" href="dashboard.php?viewpage=layout&slug=<?php echo $tab ?>"><?php _e($label) ?></a> </li> <?php } ?> </ul> <div class="general-wrapper"> <div class="mb-4"></div> <form id="add-item"> <div class="form-row"> <div class="mb-3 col-md-6"> <input type="text" name="name" class="form-control" placeholder="<?php _e('Name') ?>" required> </div> <div class="mb-3 col-md-6"> <input type="text" name="url" class="form-control" placeholder="<?php _e('URL') ?>" required> </div> </div> <button type="submit" class="btn btn-primary btn-md"><?php _e('ADD MENU') ?></button> </form> <hr /> <div class="dd" id="nestable"> <?php $html_menu = menu_tree(); echo (empty($html_menu)) ? '<ol class="dd-list"></ol>' : $html_menu; ?> </div> <hr /> <div id="alert-menu-unsaved-changes" style="display: none;"> <?php show_alert('Unsaved changes detected!', 'warning', false) ?> </div> <form action="dashboard.php?viewpage=layout" method="post"> <input type="hidden" id="nestable-output" name="menu_data"> <button type="submit" class="btn btn-primary btn-md"><?php _e('SAVE MENU') ?></button> </form> </div> </div> </div> <div class="col-lg-4"> <div class="section"> <p><?php _e('Add menu items') ?></p> <div class="accordion" id="accordion-container"> <div class="card"> <div class="card-header" id="acc-head1"> <a href="#" class="btn btn-header-link collapsed" data-bs-toggle="collapse" data-bs-target="#acc1" aria-expanded="true" aria-controls="acc1"><?php _e('Pages') ?></a> </div> <div id="acc1" class="collapse" aria-labelledby="acc-head1" data-bs-parent="#accordion-container"> <div class="card-body"> <form id="form-page-menu"> <?php $data = Page::getList(); $pages = $data['results']; if($pages){ echo '<div class="ml-3">'; foreach ($pages as $page) { echo '<div class="form-check">'; echo '<input class="form-check-input" type="checkbox" name="'.$page->title.'" value="'.$page->slug.'" id="item-'.$page->slug.'" data-url="/'.SUB_FOLDER.str_replace( DOMAIN, '', get_permalink('page', $page->slug)).'">'; echo '<label class="form-check-label" for="item-'.$page->slug.'">'; echo $page->title; echo '</label></div>'; } echo '</div><br>'; echo '<input type="submit" class="btn btn-info btn-md" value="'. _t('ADD TO MENU') .'">'; } else { _e('Empty'); } ?> </form> </div> </div> </div> <div class="card"> <div class="card-header" id="acc-head2"> <a href="#" class="btn btn-header-link collapsed" data-bs-toggle="collapse" data-bs-target="#acc2" aria-expanded="true" aria-controls="acc2"><?php _e('Categories') ?></a> </div> <div id="acc2" class="collapse" aria-labelledby="acc-head2" data-bs-parent="#accordion-container"> <div class="card-body"> <form id="form-category-menu"> <?php $data = Category::getList(); $categories = $data['results']; if($categories){ echo '<div class="ml-3">'; foreach ($categories as $category) { echo '<div class="form-check">'; echo '<input class="form-check-input" name="'.$category->name.'" type="checkbox" value="'.$category->slug.'" id="item-'.$category->slug.'" data-url="/'.SUB_FOLDER.str_replace( DOMAIN, '', get_permalink('category', $category->slug)).'">'; echo '<label class="form-check-label" for="item-'.$category->slug.'">'; echo $category->name; echo '</label></div>'; } echo '</div><br>'; echo '<input type="submit" class="btn btn-info btn-md" value="'. _t('ADD TO MENU') .'">'; } else { _e('Empty'); } ?> </form> </div> </div> </div> </div> </div> </div> </div>PK �x�ZNRaʊ'