403Webshell
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/Assistant/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/view/Assistant/Settings.php
<?php defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );
if ( ! isset( $view ) ) {
	return;
}

/**
 * Live Assistant Settings view
 *
 * Called from Assistant 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">
				<?php do_action( 'sq_form_notices' ); ?>


                <form method="POST">
					<?php SQ_Classes_Helpers_Tools::setNonce( 'sq_settings_assistant', 'sq_nonce' ); ?>
                    <input type="hidden" name="action" value="sq_settings_assistant"/>

                    <div class="sq_breadcrumbs my-4"><?php SQ_Classes_ObjController::getClass( 'SQ_Models_Menu' )->showBreadcrumbs( 'sq_assistant/settings' ) ?></div>
                    <h3 class="mt-4 card-title">
						<?php echo esc_html__( "Live Assistant Settings", "squirrly-seo" ); ?>
                        <div class="sq_help_question d-inline">
                            <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#settings" target="_blank"><i class="fa-solid fa-question-circle"></i></a>
                        </div>
                    </h3>

                    <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 m-0 p-0">
									<?php if ( SQ_Classes_Helpers_Tools::getOption( 'sq_seoexpert' ) || SQ_Classes_Helpers_Tools::isPluginInstalled( 'elementor/elementor.php' ) || SQ_Classes_Helpers_Tools::isPluginInstalled( 'bb-plugin/fl-builder.php' ) || SQ_Classes_Helpers_Tools::isPluginInstalled( 'oxygen/functions.php' ) || SQ_Classes_Helpers_Tools::isPluginInstalled( 'divi-builder/divi-builder.php' ) || SQ_Classes_Helpers_Tools::isThemeActive( 'Divi' ) || SQ_Classes_Helpers_Tools::isThemeActive( 'bricks' ) || SQ_Classes_Helpers_Tools::isPluginInstalled( 'js_composer/js_composer.php' ) || SQ_Classes_Helpers_Tools::isPluginInstalled( 'zionbuilder/zionbuilder.php' ) ) { ?>
                                        <div class="col-12 row m-0 p-0">
                                            <div class="checker col-12 row my-4 p-0 mx-0">
                                                <div class="col-12 p-0 m-0 sq-switch sq-switch-sm">
                                                    <input type="hidden" name="sq_sla_frontend" value="0"/>
                                                    <input type="checkbox" id="sq_sla_frontend" name="sq_sla_frontend" class="sq-switch" <?php echo( SQ_Classes_Helpers_Tools::getOption( 'sq_sla_frontend' ) ? 'checked="checked"' : '' ) ?> value="1"/>
                                                    <label for="sq_sla_frontend" class="ml-1"><?php echo esc_html__( "Activate Live Assistant in Frontend", "squirrly-seo" ); ?>
                                                        <span class="text-danger"></span>
                                                        <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#Add-Live-Assistant-in-Frontend" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
                                                    </label>
                                                    <div class="small text-black-50 ml-5"><?php echo esc_html__( "Load Squirrly Live Assistant in Frontend to customize the posts and pages with Builders.", "squirrly-seo" ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Elementor Builder %s plugin.", "squirrly-seo" ), '<a href="https://elementor.com/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Oxygen Builder %s plugin.", "squirrly-seo" ), '<a href="https://oxygenbuilder.com/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Divi Builder %s plugin.", "squirrly-seo" ), '<a href="https://www.elegantthemes.com/gallery/divi/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Thrive Architect %s plugin.", "squirrly-seo" ), '<a href="https://thrivethemes.com/architect/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Bricks Website Builder %s.", "squirrly-seo" ), '<a href="https://bricksbuilder.io/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s WPBakery Page Builder %s plugin.", "squirrly-seo" ), '<a href="https://wpbakery.com/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Zion Builder %s plugin.", "squirrly-seo" ), '<a href="https://zionbuilder.io/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Beaver Builder %s plugin.", "squirrly-seo" ), '<a href="https://www.wpbeaverbuilder.com/" target="_blank" class="font-weight-bold">', '</a>' ); ?></div>
                                                    <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf( esc_html__( "Supports %s Fusion Builder %s plugin.", "squirrly-seo" ), '<a href="https://avada.com/" target="_blank" class="font-weight-bold">', '</a>' ); ?>
                                                        (BETA)
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
									<?php } ?>

                                    <div class="col-12 row m-0 p-0">
                                        <div class="checker col-12 row my-4 p-0 mx-0">
                                            <div class="col-12 p-0 m-0 sq-switch sq-switch-sm">
                                                <input type="hidden" name="sq_img_licence" value="0"/>
                                                <input type="checkbox" id="sq_img_licence" name="sq_img_licence" class="sq-switch" <?php echo( SQ_Classes_Helpers_Tools::getOption( 'sq_img_licence' ) ? 'checked="checked"' : '' ) ?> value="1"/>
                                                <label for="sq_img_licence" class="ml-1"><?php echo esc_html__( "Show Copyright Free Images", "squirrly-seo" ); ?>
                                                    <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#copyright_free_images" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
                                                </label>
                                                <div class="small text-black-50 ml-5"><?php echo sprintf( esc_html__( "Search %sCopyright Free Images%s in Squirrly Live Assistant.", "squirrly-seo" ), '<strong>', '</strong>' ); ?></div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-12 row m-0 p-0 sq_advanced">
                                        <div class="checker col-12 row my-4 p-0 mx-0">
                                            <div class="col-12 p-0 m-0 sq-switch sq-switch-sm">
                                                <input type="hidden" name="sq_sla_social_fetch" value="0"/>
                                                <input type="checkbox" id="sq_sla_social_fetch" name="sq_sla_social_fetch" class="sq-switch" <?php echo( SQ_Classes_Helpers_Tools::getOption( 'sq_sla_social_fetch' ) ? 'checked="checked"' : '' ) ?> value="1"/>
                                                <label for="sq_sla_social_fetch" class="ml-1"><?php echo esc_html__( "Fetch Snippet on Social Media", "squirrly-seo" ); ?>
                                                    <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#fetch_snippet" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
                                                </label>
                                                <div class="small text-black-50 ml-5"><?php echo sprintf( esc_html__( "Automatically fetch the Squirrly Snippet on %sFacebook Sharing Debugger%s every time you update the content on a page.", "squirrly-seo" ), '<a href="https://developers.facebook.com/tools/debug/" target="_blank">', '</a>' ); ?></div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-12 row m-0 p-0 sq_advanced">
                                        <div class="checker col-12 row my-4 p-0 mx-0">
                                            <div class="col-12 p-0 m-0 sq-switch sq-switch-sm">
                                                <input type="hidden" name="sq_local_images" value="0"/>
                                                <input type="checkbox" id="sq_local_images" name="sq_local_images" class="sq-switch" <?php echo( SQ_Classes_Helpers_Tools::getOption( 'sq_local_images' ) ? 'checked="checked"' : '' ) ?> value="1"/>
                                                <label for="sq_local_images" class="ml-1"><?php echo esc_html__( "Download Remote Images", "squirrly-seo" ); ?>
                                                    <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#download_images" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
                                                </label>
                                                <div class="small text-black-50 ml-5"><?php echo sprintf( esc_html__( "Download %sremote images%s in your %sMedia Library%s for the new posts.", "squirrly-seo" ), '<strong>', '</strong>', '<strong>', '</strong>' ); ?></div>
                                                <div class="small text-black-50 ml-5"><?php echo esc_html__( "Prevent from losing the images you use in your articles in case the remote images are deleted.", "squirrly-seo" ); ?></div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-12 row m-0 p-0 sq_advanced">
                                        <div class="checker col-12 row my-4 p-0 mx-0">
                                            <div class="col-12 p-0 m-0 sq-switch sq-switch-sm">
                                                <input type="hidden" name="sq_keyword_help" value="0"/>
                                                <input type="checkbox" id="sq_keyword_help" name="sq_keyword_help" class="sq-switch" <?php echo( SQ_Classes_Helpers_Tools::getOption( 'sq_keyword_help' ) ? 'checked="checked"' : '' ) ?> value="1"/>
                                                <label for="sq_keyword_help" class="ml-1"><?php echo esc_html__( "Show Tooltips", "squirrly-seo" ); ?>
                                                    <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#tooltip" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
                                                </label>
                                                <div class="small text-black-50 ml-5"><?php echo sprintf( esc_html__( "Show %s Tooltips %s in Squirrly Live Assistant for tasks and sections.", "squirrly-seo" ), '<strong>', '</strong>' ); ?></div>
                                            </div>
                                        </div>
                                    </div>

									<?php do_action( 'sq_live_assistant_settings' ); ?>

                                    <div class="col-12 row m-0 p-0 my-5 sq_advanced">
                                        <div class="col-4 p-0 font-weight-bold">
                                            <label for="sq_sla_type"><?php echo esc_html__( "Live Assistant Type", "squirrly-seo" ); ?>
                                                :</label>
                                            <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#settings" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
                                        </div>
                                        <div class="col-8 m-0 p-0 input-group">
                                            <select id="sq_sla_type" name="sq_sla_type" class="form-control bg-input mb-1">
                                                <option value="auto" <?php echo( ( SQ_Classes_Helpers_Tools::getOption( 'sq_sla_type' ) == 'auto' ) ? 'selected="selected"' : '' ) ?>><?php echo esc_html__( "Auto", "squirrly-seo" ); ?></option>
                                                <option value="integrated" <?php echo( ( SQ_Classes_Helpers_Tools::getOption( 'sq_sla_type' ) == 'integrated' ) ? 'selected="selected"' : '' ) ?>><?php echo esc_html__( "Integrated Box", "squirrly-seo" ); ?></option>
                                                <option value="floating" <?php echo( ( SQ_Classes_Helpers_Tools::getOption( 'sq_sla_type' ) == 'floating' ) ? 'selected="selected"' : '' ) ?>><?php echo esc_html__( "Floating Box", "squirrly-seo" ); ?></option>
                                            </select>
                                        </div>
                                    </div>

                                </div>

                                <div class="col-12 p-0 m-0 my-5">
                                    <div class="col-12 row m-0 p-0">
                                        <div class="col-4 p-0 font-weight-bold">
                                            <label for="sq_sla_exclude_post_types"><?php echo esc_html__( "Exclusions", "squirrly-seo" ); ?>
                                                :</label>
                                            <a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#disable_live_assistant" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
                                            <div class="small text-black-50 pr-3 my-1"><?php echo esc_html__( "Select places where you do NOT want Squirrly Live Assistant to load.", "squirrly-seo" ); ?></div>
                                        </div>
                                        <div class="col-8 p-0 m-0 form-group">
                                            <input type="hidden" name="sq_sla_exclude_post_types[]" value="0"/>
                                            <select multiple id="sq_sla_exclude_post_types" name="sq_sla_exclude_post_types[]" class="selectpicker form-control mb-1" data-live-search="true">
												<?php
												$types = get_post_types( array( 'public' => true ) );

												if ( ! empty( $types ) ) {
													foreach ( $types as $value => $name ) {
														echo '<option value="' . esc_attr( $value ) . '" ' . ( in_array( $value, (array) SQ_Classes_Helpers_Tools::getOption( 'sq_sla_exclude_post_types' ) ) ? 'selected="selected"' : '' ) . '>' . esc_html( ucfirst( $name ) ) . '</option>';
													}
												}
												?>
                                            </select>
                                            <div class="small text-danger py-3 my-1"><?php echo esc_html__( "Don't select anything if you wish Squirrly Live Assistant to load for all post types.", "squirrly-seo" ); ?></div>

                                        </div>
                                    </div>
                                </div>
                            </div>

							<?php do_action( 'sq_live_assistant_settings_after' ); ?>

                        </div>
                    </div>


                    <div class="col-12 p-0 m-0 my-5 border-top sq_advanced">
                        <h3 class="mt-4 card-title">
		                    <?php echo esc_html__( "META Lengths", "squirrly-seo" ); ?>
                            <div class="sq_help_question d-inline">
                                <a href="https://howto12.squirrly.co/kb/seo-automation/" target="_blank"><i class="fa-solid fa-question-circle" style="margin: 0;"></i></a>
                            </div>
                        </h3>
                        <div class="col-7 small m-0 p-0">
		                    <?php echo esc_html__( "Change the lengths for each META on automation", "squirrly-seo" ); ?>
                        </div>

	                    <?php $metas = json_decode( wp_json_encode( SQ_Classes_Helpers_Tools::getOption( 'sq_metas' ) ) ); ?>

                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="title_maxlength"><?php echo esc_html__( "Title Length", "squirrly-seo" ); ?>
                                    :
                                    <a href="https://howto12.squirrly.co/kb/seo-automation/#automation_custom_lengths" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a></label>
                            </div>
                            <div class="col-6 p-0 input-group input-group-sm">
                                <input id="title_maxlength" type="text" class="form-control bg-input" name="sq_metas[title_maxlength]" value="<?php echo (int) $metas->title_maxlength ?>"/>
                            </div>
                        </div>

                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="description_maxlength"><?php echo esc_html__( "Description Length", "squirrly-seo" ); ?>
                                    :
                                    <a href="https://howto12.squirrly.co/kb/seo-automation/#automation_custom_lengths" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a></label>
                            </div>
                            <div class="col-6 p-0 input-group input-group-sm">
                                <input id="description_maxlength" type="text" class="form-control bg-input" name="sq_metas[description_maxlength]" value="<?php echo (int) $metas->description_maxlength ?>"/>
                            </div>
                        </div>
                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="og_title_maxlength"><?php echo esc_html__( "Open Graph Title Length", "squirrly-seo" ); ?>
                                    :</label>
                            </div>
                            <div class="col-6 p-0 input-group input-group-sm">
                                <input id="og_title_maxlength" type="text" class="form-control bg-input" name="sq_metas[og_title_maxlength]" value="<?php echo (int) $metas->og_title_maxlength ?>"/>
                            </div>
                        </div>
                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="og_description_maxlength"><?php echo esc_html__( "Open Graph Description Length", "squirrly-seo" ); ?>
                                    :</label>
                            </div>
                            <div class="col-6 p-0 input-group input-group-sm">
                                <input id="og_description_maxlength" type="text" class="form-control bg-input" name="sq_metas[og_description_maxlength]" value="<?php echo (int) $metas->og_description_maxlength ?>"/>
                            </div>
                        </div>
                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="tw_title_maxlength"><?php echo esc_html__( "Twitter Card Title Length", "squirrly-seo" ); ?>
                                    :</label>
                            </div>
                            <div class="col-6 p-0 input-group input-group-sm">
                                <input id="tw_title_maxlength" type="text" class="form-control bg-input" name="sq_metas[tw_title_maxlength]" value="<?php echo (int) $metas->tw_title_maxlength ?>"/>
                            </div>
                        </div>
                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="tw_description_maxlength"><?php echo esc_html__( "Twitter Card Description Length", "squirrly-seo" ); ?>
                                    :</label>
                            </div>
                            <div class="col-6 p-0 input-group input-group-sm">
                                <input id="tw_description_maxlength" type="text" class="form-control bg-input" name="sq_metas[tw_description_maxlength]" value="<?php echo (int) $metas->tw_description_maxlength ?>"/>
                            </div>
                        </div>
                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="jsonld_title_maxlength"><?php echo esc_html__( "JSON-LD Title Length", "squirrly-seo" ); ?>
                                    :</label>
                            </div>
                            <div class="col-6 m-0 p-0 input-group input-group-sm">
                                <input id="jsonld_title_maxlength" type="text" class="form-control bg-input" name="sq_metas[jsonld_title_maxlength]" value="<?php echo (int) $metas->jsonld_title_maxlength ?>"/>
                            </div>
                        </div>
                        <div class="col-12 row m-0 p-0 my-5">
                            <div class="col-4 m-0 p-0 font-weight-bold">
                                <label for="jsonld_description_maxlength"><?php echo esc_html__( "JSON-LD Description Length", "squirrly-seo" ); ?>
                                    :</label>
                            </div>
                            <div class="col-6 m-0 p-0 input-group input-group-sm">
                                <input id="jsonld_description_maxlength" type="text" class="form-control bg-input" name="sq_metas[jsonld_description_maxlength]" value="<?php echo (int) $metas->jsonld_description_maxlength ?>"/>
                            </div>
                        </div>

		                <?php do_action( 'sq_automation_settings_after' ); ?>

                    </div>

                    <div class="col-12 my-3 p-0">
                        <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 class="sq_tips col-12 m-0 p-0 my-5">
                    <h5 class="text-left my-3 font-weight-bold">
                        <i class="fa-solid fa-exclamation-circle"></i> <?php echo esc_html__( "Tips and Tricks", "squirrly-seo" ); ?>
                    </h5>
                    <ul class="mx-4">
                        <li class="text-left"><?php echo esc_html__( "The Settings section allows you to set up your assistant just the way you like it.", "squirrly-seo" ); ?></li>
                        <li class="text-left"><?php echo esc_html__( "Quickly enable or disable the settings available here based on your needs and preferences.", "squirrly-seo" ); ?></li>
                    </ul>
                </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 SQ_Classes_ObjController::getClass( 'SQ_Core_BlockAssistant' )->init(); ?>

					<?php do_action( 'sq_live_assistant_settings_side_after' ); ?>

                </div>
            </div>
        </div>

    </div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit