Server IP : 162.0.217.223 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/view/Indexnow/ |
Upload File : |
<?php defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' ); if ( ! isset( $view ) ) { return; } /** * Index Now Setting view * * Called from Index Now Controller */ ?> <div id="sq_wrap"> <?php $view->show_view( 'Blocks/Toolbar' ); ?> <?php do_action( 'sq_notices' ); ?> <div id="sq_content" class="d-flex flex-row bg-white my-0 p-0 m-0"> <?php if ( ! SQ_Classes_Helpers_Tools::userCan( 'sq_manage_settings' ) ) { echo '<div class="col-12 alert alert-success text-center m-0 p-3">' . esc_html__( "You do not have permission to access this page. You need Squirrly SEO Admin role.", 'squirrly-seo' ) . '</div>'; return; } ?> <?php $view->show_view( 'Blocks/Menu' ); ?> <div class="d-flex flex-row flex-nowrap flex-grow-1 bg-light m-0 p-0"> <div class="flex-grow-1 sq_flex m-0 p-0 px-4 pb-4"> <?php do_action( 'sq_form_notices' ); ?> <div class="sq_breadcrumbs my-4"><?php SQ_Classes_ObjController::getClass( 'SQ_Models_Menu' )->showBreadcrumbs( SQ_Classes_Helpers_Tools::getValue( 'page' ) . '/' . SQ_Classes_Helpers_Tools::getValue( 'tab', 'settings' ) ) ?></div> <h3 class="mt-4 card-title"> <?php echo esc_html__( "Auto-Indexing Settings", 'squirrly-seo' ); ?> <div class="sq_help_question d-inline"> <a href="https://howto12.squirrly.co/kb/indexnow/#settings" target="_blank"><i class="fa-solid fa-question-circle"></i></a> </div> </h3> <div class="col-7 small m-0 p-0"> <?php echo esc_html__( "Automatically send URLs to the IndexNow API. The post types are automatically sent to the IndexNow API when a post is published, updated, or trashed.", 'squirrly-seo' ); ?> </div> <div id="sq_seosettings" class="col-12 p-0 m-0"> <div class="col-12 m-0 p-0"> <div class="col-12 m-0 p-0"> <div class="col-12 p-0 m-0 my-5"> <form method="POST"> <?php SQ_Classes_Helpers_Tools::setNonce( 'sq_seosettings_indexnow_reset', 'sq_nonce' ); ?> <input type="hidden" name="action" value="sq_seosettings_indexnow_reset"/> <div class="col-12 row p-0 m-0"> <div class="col-4 p-0 pr-3 font-weight-bold"> <?php echo esc_html__( "IndexNow Key", 'squirrly-seo' ); ?>: <div class="small text-black-50 my-1"><?php echo esc_html__( "The IndexNow key confirms the ownership of the site. The key is generated automatically.", 'squirrly-seo' ); ?></div> </div> <div class="col-8 p-0"> <div class="col-12 row m-0 p-0 my-1"> <div class="col-9 m-0 p-0 input-group"> <label for="indexnow_key"></label><input id="indexnow_key" type="text" disabled="disabled" class="form-control bg-input" value="<?php echo esc_attr( SQ_Classes_ObjController::getClass( 'SQ_Models_Indexnow' )->getKey() ) ?>"/> </div> <div class="col m-0 p-0 input-group"> <button type="submit" class="btn btn-block btn-warning btn-sm mx-2 py-2"> <i class="dashicons dashicons-update m-1"></i><?php echo esc_html__( "Reset Key", 'squirrly-seo' ); ?> </button> </div> </div> </div> </div> </form> <div class="col-12 row m-0 p-0"> <div class="col-12 row p-0 m-0 my-5"> <div class="col-4 p-0 pr-3 font-weight-bold"> <?php echo esc_html__( "IndexNow Key URL", 'squirrly-seo' ); ?>: <div class="small text-black-50 my-1"><?php echo esc_html__( "The IndexNow key URL should show the API key when opened.", 'squirrly-seo' ); ?></div> </div> <div class="col-8 p-0"> <div class="col-12 row m-0 p-0 my-1"> <div class="col-9 m-0 p-0 input-group"> <label for="indexnow_url"></label><input id="indexnow_url" type="text" disabled="disabled" class="form-control bg-input" value="<?php echo esc_url( SQ_Classes_ObjController::getClass( 'SQ_Models_Indexnow' )->getKeyUrl() ) ?>"/> </div> <div class="col m-0 p-0 input-group"> <a href="<?php echo esc_url( SQ_Classes_ObjController::getClass( 'SQ_Models_Indexnow' )->getKeyUrl() ) ?>" target="_blank" class="btn btn-block btn-warning btn-sm mx-2 py-2"><i class="dashicons dashicons-external m-1"></i><?php echo esc_html__( "Check Key", 'squirrly-seo' ); ?> </a> </div> </div> </div> </div> </div> <form method="POST"> <?php SQ_Classes_Helpers_Tools::setNonce( 'sq_seosettings_indexnow', 'sq_nonce' ); ?> <input type="hidden" name="action" value="sq_seosettings_indexnow"/> <div class="col-12 row m-0 p-0"> <div class="col-12 row p-0 m-0 my-3"> <div class="col-4 p-0 font-weight-bold"> <label for="indexnow_post_type"><?php echo esc_html__( "Automatically Submit Post Types", 'squirrly-seo' ); ?> :</label> <div class="small text-black-50 my-1"><?php echo esc_html__( "Select post types you want to send for Auto-Indexing.", 'squirrly-seo' ); ?></div> </div> <div class="col-8 p-0 m-0 form-group"> <select id="indexnow_post_type" multiple name="indexnow_post_type[]" class="selectpicker form-control bg-input mb-1" data-live-search="true"> <?php $types = get_post_types( array( 'public' => true ) ); if ( ! empty( $types ) ) { foreach ( $types as $type => $name ) { echo '<option value="' . esc_attr( $type ) . '" ' . ( in_array( $type, (array) SQ_Classes_Helpers_Tools::getOption( 'indexnow_post_type' ) ) ? 'selected="selected"' : '' ) . '>' . esc_html( ucfirst( $name ) ) . '</option>'; } } ?> </select> </div> </div> </div> <div class="col-12 row m-0 p-0"> <div class="col-12 row p-0 m-0 my-3"> <div class="col-4 p-0 font-weight-bold"> <label for="indexnow_post_type"><?php echo esc_html__( "IndexNow Endpoints", 'squirrly-seo' ); ?> :</label> <div class="small text-black-50 my-1"><?php echo esc_html__( "Select the IndexNow endpoints you want to submit the URLs to.", 'squirrly-seo' ); ?></div> </div> <div class="col-8 p-0 m-0 form-group"> <select id="indexnow_endpoints" multiple name="indexnow_endpoints[]" class="selectpicker form-control bg-input mb-1" data-live-search="true"> <?php $dbendpoints = (array) SQ_Classes_Helpers_Tools::getOption( 'indexnow_endpoints' ); if(empty( $dbendpoints )){ $dbendpoints = array( 'https://api.indexnow.org', 'https://www.bing.com/indexnow', ); } $endpoints = array( 'https://api.indexnow.org', 'https://www.bing.com/indexnow', 'https://searchadvisor.naver.com/indexnow', 'https://search.seznam.cz/indexnow', 'https://yandex.com/indexnow', ); if ( ! empty( $endpoints ) ) { foreach ( $endpoints as $endpoint ) { echo '<option value="' . esc_attr( $endpoint ) . '" ' . ( in_array( $endpoint, $dbendpoints ) ? 'selected="selected"' : '' ) . '>' . parse_url($endpoint, PHP_URL_HOST) . '</option>'; } } ?> </select> </div> </div> </div> <?php do_action( 'sq_indexnow_settings_after' ); ?> <div class="col-12 my-3 p-0 mt-5"> <button type="submit" class="btn rounded-0 btn-primary btn-lg m-0 px-5 "><?php echo esc_html__( "Save Settings", 'squirrly-seo' ); ?></button> </div> </form> </div> </div> </div> </div> <?php SQ_Classes_ObjController::getClass( 'SQ_Core_BlockKnowledgeBase' )->init(); ?> </div> <div class="sq_col_side bg-white"> <div class="col-12 m-0 p-0 sq_sticky"> <?php do_action( 'sq_indexnow_settings_side_after' ); ?> </div> </div> </div> </div> </div>