Пример #1
0
        private function printBaseInterface()
        {
            global $wpdb;
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('off_page_optimization')->show_menu();
            ?>
			<div id="psp-lightbox-overlay">
				<div id="psp-lightbox-container">
					<h1 class="psp-lightbox-headline">
						<span style="left: 10px;"><?php 
            _e('The submit status was:', $this->the_plugin->localizationName);
            ?>
</span>
						<a href="#" class="psp-close-btn" title="Close Lightbox"></a>
					</h1>

					<div class="psp-seo-status-container" style="margin: 30px 0 0;">
			
						<div id="psp-lightbox-backlink-builder-response" style="text-align: center;">
							<br /><br />
							<a href="#" data-status="success" class="psp-button green psp-submit-status"><?php 
            _e('Success submited', $this->the_plugin->localizationName);
            ?>
</a>&nbsp;
							<a href="#" data-status="error" class="psp-button red psp-submit-status"><?php 
            _e('Error on submit', $this->the_plugin->localizationName);
            ?>
</a>
						</div>
						<div style="clear:both"></div>
					</div>
				</div>
			</div>

			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<img src="<?php 
            echo $this->module_folder;
            ?>
assets/link.png">
											<?php 
            _e('Semi-automatic Backink Builder', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<div style="display: none;" id="psp-submit-status-values">
											<div class="submit_never"><?php 
            _e('Never submit', $this->the_plugin->localizationName);
            ?>
</div>
											<div class="submit_inprogress"><?php 
            _e('Submit in progress', $this->the_plugin->localizationName);
            ?>
</div>
											<div class="submit_error"><?php 
            _e('Error on submit', $this->the_plugin->localizationName);
            ?>
</div>
											<div class="submit_success"><?php 
            _e('Submit successfully', $this->the_plugin->localizationName);
            ?>
</div>
											
											
										</div>
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspWebDirectories', 'custom_table' => "psp_web_directories", 'custom_table_force_action' => true, 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'submit_btn' => array('th' => __('Submit', $this->the_plugin->localizationName), 'td' => '%submit_btn%', 'align' => 'center', 'width' => '120'), 'submit_status' => array('th' => __('Submit status', $this->the_plugin->localizationName), 'td' => '%submit_status%', 'align' => 'center', 'width' => '120'), 'directory_name' => array('th' => __('Directory Name', $this->the_plugin->localizationName), 'td' => '%directory_name%', 'align' => 'left'), 'pagerank' => array('th' => '<img src="' . $this->module_folder . 'assets/google.png" style="position: relative;bottom: -3px; left: -2px;"> ' . __('Pagerank', $this->the_plugin->localizationName), 'td' => '%pagerank%', 'align' => 'center', 'width' => '80'), 'alexa' => array('th' => '<img src="' . $this->module_folder . 'assets/alexa.png" style="position: relative;bottom: -3px; left: -2px"> ' . __('Alexa', $this->the_plugin->localizationName), 'td' => '%alexa%', 'align' => 'center', 'width' => '70')), 'mass_actions' => array('delete_directory' => array('value' => __('Delete selected rows', $this->the_plugin->localizationName), 'action' => 'do_bulk_delete_directory_rows', 'color' => 'red'))))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							
							<?php 
            $website_profile = get_option('psp_website_profile', true);
            $website_profile = maybe_unserialize($website_profile);
            if ($website_profile === true || count($website_profile) == 0) {
                global $current_user;
                get_currentuserinfo();
                $page_details = $this->the_plugin->get_page_meta(home_url());
                $website_profile_values = array('page_title' => $page_details['page_title'], 'page_meta_description' => $page_details['page_meta_description'], 'page_meta_keywords' => $page_details['page_meta_keywords'], 'author_name' => $current_user->user_firstname . " " . $current_user->user_lastname, 'author_email' => $current_user->user_email);
            } else {
                $website_profile_values = array('page_title' => $website_profile['website_title'], 'page_meta_description' => $website_profile['website_meta_description'], 'page_meta_keywords' => $website_profile['website_meta_keywords'], 'author_name' => $website_profile['website_author_name'], 'author_email' => $website_profile['website_author_email']);
            }
            ?>
							<div class="psp-grid_4">
								<div class="psp-panel">
									<div class="psp-panel-header">
										<span class="psp-panel-title"> 
											<img src="<?php 
            echo $this->module_folder;
            ?>
assets/website.png">
											<?php 
            _e('Autofill options', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form action="#save_with_ajax" id="psp_website_profile" class="psp-form">
											
											<div class="psp-message" style="padding-left: 10px;">
												<?php 
            _e('Drag this button to your bookmark bar:', $this->the_plugin->localizationName);
            ?>
												<a class="psp-button orange" style="display:inline-block; margin: 0px 0px 0px 10px; position: relative; bottom: -6px;" href="javascript:(function(){document.body.appendChild(document.createElement('script')).src='<?php 
            echo $this->module_folder;
            ?>
/backlink.php';})();"><?php 
            _e('Autofill', $this->the_plugin->localizationName);
            ?>
 <?php 
            echo get_bloginfo();
            ?>
 <?php 
            _e('Metas', $this->the_plugin->localizationName);
            ?>
</a><br>
											</div>
											
											<input type="hidden" value="psp_website_profile" name="box_id" id="box_id">
											<input type="hidden" id="box_nonce" name="box_nonce" value="<?php 
            echo wp_create_nonce('psp_website_profile-nonce');
            ?>
" />
											
											<div class="psp-form-row">
												<label for="services"><?php 
            _e('Your Name:', $this->the_plugin->localizationName);
            ?>
</label>
												<div class="psp-form-item large">
													<span class="formNote"><span style="color:red">*</span> <?php 
            _e('This field is required.', $this->the_plugin->localizationName);
            ?>
</span>
													<input type="text" value="<?php 
            echo $website_profile_values['author_name'];
            ?>
" name="website_author_name" id="website_author_name" style="width:30%">
												</div>
											</div>
											
											<div class="psp-form-row">
												<label for="services"><?php 
            _e('Your Email:', $this->the_plugin->localizationName);
            ?>
</label>
												<div class="psp-form-item large">
													<span class="formNote"><span style="color:red">*</span> <?php 
            _e('This field is required.', $this->the_plugin->localizationName);
            ?>
</span>
													<input type="text" value="<?php 
            echo $website_profile_values['author_email'];
            ?>
" name="website_author_email" id="website_author_email" style="width:35%">
												</div>
											</div>
											
											<div class="psp-form-row">
												<label for="services"><?php 
            _e('Title:', $this->the_plugin->localizationName);
            ?>
</label>
												<div class="psp-form-item large">
													<span class="formNote"><span style="color:red">*</span> <?php 
            _e('This field is required.', $this->the_plugin->localizationName);
            ?>
</span>
													<input type="text" value="<?php 
            echo $website_profile_values['page_title'];
            ?>
" name="website_title" id="website_title" style="width:40%">
												</div>
											</div>
											<div class="psp-form-row">
												<label for="services"><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label>
												<div class="psp-form-item large">
													<span class="formNote"><span style="color:red">*</span> <?php 
            _e('This field is required.', $this->the_plugin->localizationName);
            ?>
</span>
													<input type="text" readonly value="<?php 
            echo home_url();
            ?>
" name="website_url" id="website_url" style="width:60%">
												</div>
											</div>
											<div class="psp-form-row">
												<label for="services"><?php 
            _e('Meta Description:', $this->the_plugin->localizationName);
            ?>
</label>
												<div class="psp-form-item large">
													<span class="formNote"><?php 
            _e('This field is not required.', $this->the_plugin->localizationName);
            ?>
</span>
													<textarea name="website_meta_description" id="website_meta_description" style="width:40%"><?php 
            echo $website_profile_values['page_meta_description'];
            ?>
</textarea>
												</div>
											</div>
											<div class="psp-form-row">
												<label for="services"><?php 
            _e('Meta Keywords:', $this->the_plugin->localizationName);
            ?>
</label>
												<div class="psp-form-item large">
													<span class="formNote"><?php 
            _e('This field is not required.', $this->the_plugin->localizationName);
            ?>
</span>
													<input type="text" value="<?php 
            echo $website_profile_values['page_meta_keywords'];
            ?>
" name="website_meta_keywords" id="website_meta_keywords">
												</div>
											</div>
											<div style="display:none;" id="psp-status-box" class="psp-message"></div>
											<div class="psp-button-row">
												<input type="submit" class="psp-button green psp-saveOptions" value="<?php 
            _e('Save the settings', $this->the_plugin->localizationName);
            ?>
">
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #2
0
        private function printBaseInterface()
        {
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<link rel='stylesheet' href='<?php 
            echo $this->module_folder;
            ?>
app.css' type='text/css' media='all' />
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('off_page_optimization')->show_menu();
            ?>
			
			<div id="psp-lightbox-overlay">
				<div id="psp-lightbox-container">
					<h1 class="psp-lightbox-headline">
						<img class="psp-lightbox-icon" src="<?php 
            echo $this->the_plugin->cfg['paths']['freamwork_dir_url'];
            ?>
images/light-bulb.png">
						<span id="link-title-add"><?php 
            _e('Add new link:', $this->the_plugin->localizationName);
            ?>
</span>
						<span id="link-title-upd"><?php 
            _e('Update link:', $this->the_plugin->localizationName);
            ?>
</span>
						<a href="#" class="psp-close-btn" title="<?php 
            _e('Close Lightbox', $this->the_plugin->localizationName);
            ?>
"></a>
					</h1>

					<div class="psp-seo-status-container">
						<div id="psp-lightbox-seo-report-response">
							<form class="psp-add-link-form">
								<table width="100%">
									<tr>
										<td width="80"><label><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_url" name="new_url" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('URL Redirect:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_url_redirect" name="new_url_redirect" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td></td>
										<td>
											<input type="button" class="psp-button green" value="<?php 
            _e('Add this new link', $this->the_plugin->localizationName);
            ?>
" id="psp-submit-to-builder">
										</td>
									</tr>
								</table>
								
							</form>
						</div>
						
						<div id="psp-lightbox-seo-report-response2">
							<form class="psp-update-link-form">
								<input type="hidden" id="upd-itemid" name="upd-itemid" value="" />
								<table width="100%">
									<tr>
										<td width="80"><label><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_url2" name="new_url2" value="" class="psp-add-link-field" readonly disabled="disabled" /></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('URL Redirect:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_url_redirect2" name="new_url_redirect2" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td></td>
										<td>
											<input type="button" class="psp-button green" value="<?php 
            _e('Update link info', $this->the_plugin->localizationName);
            ?>
" id="psp-submit-to-builder2">
										</td>
									</tr>
								</table>
								
							</form>
						</div>
						<div style="clear:both"></div>
					</div>
				</div>
			</div>

			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix" style="padding-top: 20px;">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            /*<img src="<?php echo $this->the_plugin->cfg['paths']['plugin_dir_url'];?>/modules/Social_Stats/assets/menu_icon.png">*/
            ?>
											<?php 
            _e('301 Link Redirect', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspLinkRedirect', 'custom_table' => "psp_link_redirect", 'custom_table_force_action' => true, 'force_publish_field' => false, 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%id%', 'width' => '20'), 'hits' => array('th' => __('Hits', $this->the_plugin->localizationName), 'td' => '%hits%', 'width' => '15'), 'url' => array('th' => __('URL', $this->the_plugin->localizationName), 'td' => '%linkred_url%', 'align' => 'left'), 'url_redirect' => array('th' => __('URL Redirect', $this->the_plugin->localizationName), 'td' => '%linkred_url_redirect%', 'align' => 'left'), 'created' => array('th' => __('Creation Date', $this->the_plugin->localizationName), 'td' => '%created%', 'width' => '115'), 'update_btn' => array('th' => __('Update', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Update', $this->the_plugin->localizationName), 'action' => 'do_item_update', 'color' => 'blue'), 'width' => '30'), 'delete_btn' => array('th' => __('Delete', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Delete', $this->the_plugin->localizationName), 'action' => 'do_item_delete', 'color' => 'red'), 'width' => '30')), 'mass_actions' => array('add_new_link' => array('value' => __('Add new link', $this->the_plugin->localizationName), 'action' => 'do_add_new_link', 'color' => 'blue'), 'delete_all_rows' => array('value' => __('Delete selected rows', $this->the_plugin->localizationName), 'action' => 'do_bulk_delete_rows', 'color' => 'red'))))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
<?php 
        }
Пример #3
0
        private function printBaseInterface()
        {
            global $wpdb;
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('monitoring')->show_menu();
            ?>
			
			<div id="psp-lightbox-overlay">
				<div id="psp-lightbox-container">
					<h1 class="psp-lightbox-headline">
						<img class="psp-lightbox-icon" src="<?php 
            echo $this->the_plugin->cfg['paths']['freamwork_dir_url'];
            ?>
images/light-bulb.png">
						<span id="link-details"><?php 
            _e('Details:', $this->the_plugin->localizationName);
            ?>
</span>
						<span id="link-add-redirect"><?php 
            _e('Add to Link Redirect:', $this->the_plugin->localizationName);
            ?>
</span>
						<a href="#" class="psp-close-btn" title="<?php 
            _e('Close Lightbox', $this->the_plugin->localizationName);
            ?>
"></a>
					</h1>

					<div class="psp-seo-status-container">
						<div id="psp-lightbox-seo-report-response"></div>
						
						<div id="psp-lightbox-seo-report-response2">
							<form class="psp-update-link-form">
								<input type="hidden" id="upd-itemid" name="upd-itemid" value="" />
								<table width="100%">
									<tr>
										<td width="120"><label><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><span id="old_url_list"></span></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('URL Redirect:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_url_redirect2" name="new_url_redirect2" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td></td>
										<td>
											<input type="button" class="psp-button green" value="<?php 
            _e('Add to Link Redirect', $this->the_plugin->localizationName);
            ?>
" id="psp-submit-to-builder2">
										</td>
									</tr>
								</table>
								
							</form>
						</div>
						<div style="clear:both"></div>
					</div>
				</div>
			</div>

			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            /*<img src="<?php echo $this->the_plugin->cfg['paths']['plugin_dir_url'];?>/modules/Social_Stats/assets/menu_icon.png">*/
            ?>
											<?php 
            _e('Monitor Page Not Found Errors', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspMonitor404', 'custom_table' => "psp_monitor_404", 'custom_table_force_action' => true, 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%id%', 'width' => '40'), 'hits' => array('th' => __('Hits', $this->the_plugin->localizationName), 'td' => '%hits%', 'width' => '40'), 'bad_url' => array('th' => __('Bad URL', $this->the_plugin->localizationName), 'td' => '%bad_url%', 'align' => 'left'), 'referrers' => array('th' => __('Referrers', $this->the_plugin->localizationName), 'td' => '%referrers%', 'align' => 'center', 'width' => '80'), 'user_agents' => array('th' => __('User Agents', $this->the_plugin->localizationName), 'td' => '%user_agents%', 'align' => 'center', 'width' => '80'), 'last_date' => array('th' => __('Last Log Date', $this->the_plugin->localizationName), 'td' => '%last_date%', 'width' => '120')), 'mass_actions' => array('add_new_link' => array('value' => __('Add to Link Redirect', $this->the_plugin->localizationName), 'action' => 'do_add_new_link', 'color' => 'blue'), 'delete_404_rows' => array('value' => __('Delete selected rows', $this->the_plugin->localizationName), 'action' => 'do_bulk_delete_404_rows', 'color' => 'blue'))))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #4
0
        private function printBaseInterface()
        {
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<link rel='stylesheet' href='<?php 
            echo $this->module_folder;
            ?>
app.css' type='text/css' media='all' />
		<div id="psp-wrapper" class="fluid wrapper-psp">
			
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('off_page_optimization')->show_menu();
            ?>
		
			<div id="psp-lightbox-overlay">
				<div id="psp-lightbox-container">
					<h1 class="psp-lightbox-headline">
						<img class="psp-lightbox-icon" src="<?php 
            echo $this->the_plugin->cfg['paths']['freamwork_dir_url'];
            ?>
images/light-bulb.png">
						<span id="link-title-details"><?php 
            _e('Details:', $this->the_plugin->localizationName);
            ?>
</span>
						<span id="link-title-add"><?php 
            _e('Add new link:', $this->the_plugin->localizationName);
            ?>
</span>
						<span id="link-title-upd"><?php 
            _e('Update link:', $this->the_plugin->localizationName);
            ?>
</span>
						<a href="#" class="psp-close-btn" title="<?php 
            _e('Close Lightbox', $this->the_plugin->localizationName);
            ?>
"></a>
					</h1>

					<div class="psp-seo-status-container">
						<div id="psp-lightbox-seo-report-response-details">
								<table width="100%">
									<tr>
										<td width="120"><label><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><span id="details_url"></span></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Text:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><span id="details_text"></span></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Title:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><span id="details_title"></span></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Rel:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><span id="details_rel"></span></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Target:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><span id="details_target"></span></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Max replacements:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><span id="details_max_replacements"></span></td>
									</tr>
								</table>
						</div>
					
						<div id="psp-lightbox-seo-report-response">
							<form class="psp-add-link-form">
								<input type="hidden" id="new_hits" name="new_hits" value="0" />
								<table width="100%">
									<tr>
										<td width="80"><label><?php 
            _e('Text:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_text" name="new_text" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_url" name="new_url" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td></td>
										<td>
											<input type="button" class="psp-button blue" value="Verify founds" id="psp-builder-verify-hits"><span style="margin-left:10px;" id="psp-builder-text-hits"><span style="font-weight:bold;"></span><?php 
            _e(' posts|pages in which the text was found!', $this->the_plugin->localizationName);
            ?>
</span>
										</td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Title:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_title" name="new_title" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Rel:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td>
											<select id="rel" name="new_rel">
												<?php 
            $arr_rel = array('no', 'alternate', 'author', 'bookmark', 'help', 'license', 'next', 'nofollow', 'noreferrer', 'prefetch', 'prev', 'search', 'tag');
            foreach ($arr_rel as $key => $value) {
                echo '<option value="' . $value . '">' . $value . '</option>';
            }
            ?>
											</select>
										</td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Target:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td>
											<select id="target" name="new_target">
												<?php 
            $arr_target = array('no', '_blank', '_parent', '_self', '_top');
            foreach ($arr_target as $key => $value) {
                echo '<option value="' . $value . '">' . $value . '</option>';
            }
            ?>
											</select>
										</td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Max replacements:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td>
											<select id="max_replacements" name="new_max_replacements">
												<?php 
            $arr_target = range(1, 10, 1);
            foreach ($arr_target as $key => $value) {
                echo '<option value="' . $value . '">' . $value . '</option>';
            }
            ?>
											</select>
										</td>
									</tr>
									<tr>
										<td></td>
										<td>
											<input type="button" class="psp-button green" value="<?php 
            _e('Add this new link', $this->the_plugin->localizationName);
            ?>
" id="psp-submit-to-builder">
										</td>
									</tr>
								</table>
								
							</form>
						</div>
						
						<div id="psp-lightbox-seo-report-response2">
							<form class="psp-update-link-form">
								<input type="hidden" id="upd-itemid" name="upd-itemid" value="" />
								<table width="100%">
									<tr>
										<td width="80"><label><?php 
            _e('Text:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_text2" name="new_text2" value="" class="psp-add-link-field" readonly disabled="disabled" /></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_url2" name="new_url2" value="" class="psp-add-link-field" readonly disabled="disabled" /></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Title:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td><input type="text" id="new_title2" name="new_title2" value="" class="psp-add-link-field" /></td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Rel:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td>
											<select id="rel2" name="new_rel2">
												<?php 
            $arr_rel = array('no', 'alternate', 'author', 'bookmark', 'help', 'license', 'next', 'nofollow', 'noreferrer', 'prefetch', 'prev', 'search', 'tag');
            foreach ($arr_rel as $key => $value) {
                echo '<option value="' . $value . '">' . $value . '</option>';
            }
            ?>
											</select>
										</td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Target:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td>
											<select id="target2" name="new_target2">
												<?php 
            $arr_target = array('no', '_blank', '_parent', '_self', '_top');
            foreach ($arr_target as $key => $value) {
                echo '<option value="' . $value . '">' . $value . '</option>';
            }
            ?>
											</select>
										</td>
									</tr>
									<tr>
										<td><label><?php 
            _e('Max replacements:', $this->the_plugin->localizationName);
            ?>
</label></td>
										<td>
											<select id="max_replacements2" name="new_max_replacements2">
												<?php 
            $arr_target = range(1, 10, 1);
            foreach ($arr_target as $key => $value) {
                echo '<option value="' . $value . '">' . $value . '</option>';
            }
            ?>
											</select>
										</td>
									</tr>
									<tr>
										<td></td>
										<td>
											<input type="button" class="psp-button green" value="<?php 
            _e('Update link info', $this->the_plugin->localizationName);
            ?>
" id="psp-submit-to-builder2">
										</td>
									</tr>
								</table>
								
							</form>
						</div>
						<div style="clear:both"></div>
					</div>
				</div>
			</div>

			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix" style="padding-top: 20px;">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('SEO link builder (internal/external)', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspLinkBuilder', 'custom_table' => "psp_link_builder", 'custom_table_force_action' => true, 'force_publish_field' => false, 'show_header' => true, 'items_per_page' => 10, 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%id%', 'width' => '20'), 'hits' => array('th' => __('Hits', $this->the_plugin->localizationName), 'td' => '%hits%', 'width' => '15'), 'url' => array('th' => __('URL', $this->the_plugin->localizationName), 'td' => '%builder_url%', 'align' => 'left'), 'phrase' => array('th' => __('Phrase', $this->the_plugin->localizationName), 'td' => '%builder_phrase%', 'align' => 'center', 'width' => '150'), 'url_attributes' => array('th' => __('Link Attributes', $this->the_plugin->localizationName), 'td' => '%url_attributes%', 'align' => 'center', 'width' => '100'), 'created' => array('th' => __('Creation Date', $this->the_plugin->localizationName), 'td' => '%created%', 'width' => '115'), 'publish_btn' => array('th' => __('Status', $this->the_plugin->localizationName), 'td' => '%button_publish%', 'option' => array('value' => __('Unpublish', $this->the_plugin->localizationName), 'value_change' => __('Publish', $this->the_plugin->localizationName), 'action' => 'do_item_publish', 'color' => 'orange'), 'width' => '40'), 'update_btn' => array('th' => __('Update', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Update', $this->the_plugin->localizationName), 'action' => 'do_item_update', 'color' => 'blue'), 'width' => '30'), 'delete_btn' => array('th' => __('Delete', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Delete', $this->the_plugin->localizationName), 'action' => 'do_item_delete', 'color' => 'red'), 'width' => '30')), 'mass_actions' => array('add_new_link' => array('value' => __('Add new link', $this->the_plugin->localizationName), 'action' => 'do_add_new_link', 'color' => 'blue'), 'delete_all_rows' => array('value' => __('Delete selected rows', $this->the_plugin->localizationName), 'action' => 'do_bulk_delete_rows', 'color' => 'red'))))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
<?php 
        }
Пример #5
0
        private function printBaseInterface()
        {
            ?>
		<link rel='stylesheet' href='<?php 
            echo $this->module_folder;
            ?>
app.css' type='text/css' media='screen' />
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('monitoring')->show_menu();
            ?>
			
			<div id="psp-lightbox-overlay">
				<div id="psp-lightbox-container">
					<h1 class="psp-lightbox-headline">
						<img class="psp-lightbox-icon" src="<?php 
            echo $this->the_plugin->cfg['paths']['freamwork_dir_url'];
            ?>
images/light-bulb.png">
						<span><?php 
            _e('Your focus keywords list', $this->the_plugin->localizationName);
            ?>
</span>
					<a href="#" class="psp-close-btn" title="<?php 
            _e('Close Lightbox', $this->the_plugin->localizationName);
            ?>
"></a>
					</h1>

					<div class="psp-seo-status-container">
						<div id="psp-lightbox-seo-report-response"></div>
						<div style="clear:both"></div>
					</div>
				</div>
			</div>
			
			<!-- Main loading box -->
			<div id="psp-main-loading" style="display:block;">
				<div id="psp-loading-overlay" style="display:block;"></div>
				<div id="psp-loading-box" style="display:block;">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            /*<img src="<?php echo $this->module_folder;?>assets/serp-icon.png">*/
            ?>
											<?php 
            _e('Search Engine Results Page Reporter', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" action="#save_with_ajax">
											<div class="psp-form-row" id="psp-serp-container">
												<div class="psp-top-filters">

													<span id="psp-select-engine-text"><?php 
            _e('Google:', $this->the_plugin->localizationName);
            ?>
 </span>
													
													<select id="select-engine">
													<option value='--all--'><?php 
            _e('all locations', $this->the_plugin->localizationName);
            ?>
</option>
													<?php 
            $__seUsed = $this->getSearchEngineUsed();
            foreach ($__seUsed as $__k => $__v) {
                echo '<option value="' . $__v . '" ' . (isset($_SESSION['psp_serp']['search_engine']) && $__v == $_SESSION['psp_serp']['search_engine'] ? ' selected ' : '') . '>' . $__v . '</option>';
            }
            ?>
													</select>

													<?php 
            /*<input type="button" class="psp-button blue" id="psp-cron-ckeck" value="<?php _e('Cron check now', $this->the_plugin->localizationName);?>">*/
            ?>
													
													<div id="psp-filter-by-date">
														<label for="psp-filter-by-date-from"><?php 
            _e('From:', $this->the_plugin->localizationName);
            ?>
</label>
														<input type="text" id="psp-filter-by-date-from" name="psp-filter-by-date-from" value="<?php 
            echo $this->__initialDate['from'];
            ?>
" />
														<label for="psp-filter-by-date-to"><?php 
            _e('to', $this->the_plugin->localizationName);
            ?>
</label>
														<input type="text" id="psp-filter-by-date-to" name="psp-filter-by-date-to" value="<?php 
            echo $this->__initialDate['to'];
            ?>
" />
														<input type="button" id="psp-toggle-ku" class="psp-button gray psp-select-fw" value="Customize view">
														<input type="button" class="psp-button blue" id="psp-filter-graph-data" value="<?php 
            _e('Apply Filters', $this->the_plugin->localizationName);
            ?>
">
													</div>
												</div>
												
												<!-- keywords, url filter -->
												<div class="psp-panel psp-serp-filter-keyurl" id="psp-serp-filter-keyurl">
					                        		<div class="psp-panel-header">
														<span class="psp-panel-title">
															<?php 
            _e('Filter Focus Keywords and URLs', $this->the_plugin->localizationName);
            ?>
														</span>
													</div>
													<div class="psp-panel-content psp-serp-filter-keyurl-content">
														<div style="float:left; width:49%; height: 200px; overflow: auto; margin-right: 1%;">
														<table class="psp-table" style="border:  none;border-bottom:  1px solid #dadada;width:100%;  border-spacing:0;border-collapse:collapse;">
															<thead>
																<tr>
																	<th align="left" width="10"><input type="checkbox" id="psp-item-check-all-key"></th>
																	<th align="left"><?php 
            _e('Focus Keywords', $this->the_plugin->localizationName);
            ?>
</th>
																</tr>
															</thead>
															
															<tbody>
															<?php 
            $__keys = $this->getKeywordsList();
            if (count($__keys) > 0) {
                $__theHtml = array();
                foreach ($__keys as $k => $v) {
                    $__theHtml[] = '<tr>';
                    $__theHtml[] = '<td align="left">';
                    $__theHtml[] = '<input type="checkbox" class="psp-item-checkbox-key" name="psp-item-checkbox-key-' . $v['id'] . '" value="' . $v['info'] . '"' . (isset($_SESSION['psp_serp']['filter_keywords']) && isset($_SESSION['psp_serp']['filter_keywords'][$v['info']]) ? ' checked="checked" ' : '') . '>';
                    $__theHtml[] = '</td>';
                    $__theHtml[] = '<td align="left">';
                    $__theHtml[] = $v['info'];
                    $__theHtml[] = '</td>';
                    $__theHtml[] = '<tr>';
                }
                echo implode('', $__theHtml);
            }
            ?>
															</tbody>
														</table>
														</div>
														<div style="float:left; width:50%; height: 200px; overflow: auto;">
														 <table class="psp-table" style="border: none;border-left: 1px solid #ededed;border-bottom: 1px solid #dadada;width:100%;border-spacing:0;border-collapse:collapse;">
															<thead>
																<tr>
																	<th align="left" width="10"><input type="checkbox" id="psp-item-check-all-url"></th>
																	<th align="left"><?php 
            _e('URLs', $this->the_plugin->localizationName);
            ?>
</th>
																</tr>
															</thead>
															
															<tbody>
															<?php 
            $__keys = $this->getUrlsList();
            if (count($__keys) > 0) {
                $__theHtml = array();
                foreach ($__keys as $k => $v) {
                    $__theHtml[] = '<tr>';
                    $__theHtml[] = '<td align="left">';
                    $__theHtml[] = '<input type="checkbox" class="psp-item-checkbox-url" name="psp-item-checkbox-url-' . $v['id'] . '" value="' . $v['info'] . '"' . (isset($_SESSION['psp_serp']['filter_urls']) && isset($_SESSION['psp_serp']['filter_urls'][$v['info']]) ? ' checked="checked" ' : '') . '>';
                    $__theHtml[] = '</td>';
                    $__theHtml[] = '<td align="left">';
                    $__theHtml[] = $v['info'];
                    $__theHtml[] = '</td>';
                    $__theHtml[] = '<tr>';
                }
                echo implode('', $__theHtml);
            }
            ?>
															</tbody>
														</table>
														</div>
														<div style="clear:left;"></div>
													</div>
												</div>
												
												<div class="psp-serp-graph" id="psp-serp-graph"></div>
												
												<div class="psp-panel psp-serp-add-keyword" id="psp-serp-add-keyword">
					                        		<div class="psp-panel-header">
														<span class="psp-panel-title">
															<img src="<?php 
            echo $this->module_folder;
            ?>
assets/new-kw.png">
															<?php 
            _e('Add Keyword <i>(You can keep an eye on your competitors too)</i>', $this->the_plugin->localizationName);
            ?>
															<span id="search-engine-current-loc"><?php 
            _e('Google location currently used: ', $this->the_plugin->localizationName);
            echo '<strong>' . $this->search_engine . "</strong>";
            ?>
</span>
														</span>
													</div>
													<div class="psp-panel-content">
														<div id="psp-add-keyword-block">
															<div style="float: left;width: 450px;">
																<label for="psp-new-keyword"><?php 
            _e('Keyword:', $this->the_plugin->localizationName);
            ?>
</label>
																<input type="text" id="psp-new-keyword" name="psp-new-keyword" class="psp-new-keyword" value="" />
																<div style="clear:left;"></div>
																<label for="psp-new-keyword-link"><?php 
            _e('URL:', $this->the_plugin->localizationName);
            ?>
</label>
																<input type="text" id="psp-new-keyword-link" name="psp-new-keyword-link" class="psp-new-keyword-link" value="" />
															</div>
															<div class="psp-or-block">
																<span class="line"></span>
																<h2><?php 
            _e('OR', $this->the_plugin->localizationName);
            ?>
</h2>	
															</div>
															<div style="float: left;width: 300px; ">
																<label><?php 
            _e('Select from your:', $this->the_plugin->localizationName);
            ?>
</label>
																<div style="clear:left;"></div>
																<input type="button" id="psp-select-fw" class="psp-button gray psp-select-fw" value="<?php 
            _e('Focus keywords', $this->the_plugin->localizationName);
            ?>
">
															</div>	
															<div style="clear:left;"></div>
															<input type="button" class="psp-button blue" id="psp-submit-to-reporter" value="<?php 
            _e('Add to Reporter', $this->the_plugin->localizationName);
            ?>
">
														</div>
														<div style="clear:left;"></div>
													</div>
												</div>
												
												
												<form class="psp-form" action="#save_with_ajax">
													<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
													<?php 
            $html_rank_header = array();
            $html_rank_header[] = '<table class="serp-thead-rank">';
            $html_rank_header[] = '<thead>';
            $html_rank_header[] = '<tr>';
            $html_rank_header[] = '<th>' . __('Current', $this->the_plugin->localizationName) . '</th>';
            $html_rank_header[] = '<th>' . __('Best', $this->the_plugin->localizationName) . '</th>';
            $html_rank_header[] = '<th>' . __('Worst', $this->the_plugin->localizationName) . '</th>';
            $html_rank_header[] = '</tr>';
            $html_rank_header[] = '</thead>';
            $html_rank_header[] = '</table>';
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspSERPKeywords', 'custom_table' => "psp_serp_reporter", 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('serp_focus_keyword' => array('th' => __('Focus Keyword', $this->the_plugin->localizationName), 'td' => '%serp_focus_keyword%', 'align' => 'left', 'width' => '150'), 'serp_url' => array('th' => __('URL', $this->the_plugin->localizationName), 'td' => '%serp_url%', 'align' => 'left'), 'serp_location' => array('th' => __('Location', $this->the_plugin->localizationName), 'td' => '%serp_location%', 'align' => 'center', 'width' => '80'), 'serp_google' => array('th' => __('Google Rank', $this->the_plugin->localizationName) . implode("\n", $html_rank_header), 'td' => '%serp_google%', 'align' => 'center', 'width' => '120'), 'serp_start_date' => array('th' => __('Start Date', $this->the_plugin->localizationName), 'td' => '%serp_start_date%', 'width' => '115'), 'serp_visits' => array('th' => __('Visits', $this->the_plugin->localizationName), 'td' => '%serp_visits%', 'width' => '30'), 'publish_btn' => array('th' => __('Status', $this->the_plugin->localizationName), 'td' => '%button_publish%', 'option' => array('value' => __('Unpublish', $this->the_plugin->localizationName), 'value_change' => __('Publish', $this->the_plugin->localizationName), 'action' => 'do_item_publish', 'color' => 'orange'), 'width' => '40'), 'update_btn' => array('th' => __('Update', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Update', $this->the_plugin->localizationName), 'action' => 'do_item_update', 'color' => 'blue'), 'width' => '35'), 'delete_btn' => array('th' => __('Delete', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Delete', $this->the_plugin->localizationName), 'action' => 'do_item_delete', 'color' => 'red'), 'width' => '35'))))->print_html();
            ?>
										            </div>
									            </form>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #6
0
        private function printBaseInterface()
        {
            ?>
		<link rel='stylesheet' href='<?php 
            echo $this->module_folder;
            ?>
app.css' type='text/css' media='screen' />
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('monitoring')->show_menu();
            ?>
			
			<!-- Page detail -->
			<div id="psp-pagespeed-detail">
				<div id="psp-pagespeed-ajaxresponse"></div>
			</div>
				
			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('Analyze your website with PageSpeed', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            $settings = $this->the_plugin->getAllSettings('array', 'pagespeed');
            $attrs = array('id' => 'pspPageSpeed', 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%ID%', 'width' => '40'), 'title' => array('th' => __('Title', $this->the_plugin->localizationName), 'td' => '%title%', 'align' => 'left'), 'page_speed_desktop_score' => array('th' => __('Desktop Score', $this->the_plugin->localizationName), 'td' => '%desktop_score%', 'width' => '130', 'css' => array('padding' => '0px', 'background' => '#fcfcfc'), 'class' => 'psp_the_desktop_score'), 'page_speed_mobile_score' => array('th' => __('Mobile Score', $this->the_plugin->localizationName), 'td' => '%mobile_score%', 'width' => '130', 'css' => array('padding' => '0px', 'background' => '#fcfcfc'), 'class' => 'psp_the_mobile_score'), 'page_speed_details' => array('th' => __('View report', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('View Report', $this->the_plugin->localizationName), 'action' => 'do_item_view_report', 'color' => 'blue'), 'width' => '80'), 'optimize_btn' => array('th' => __('Action', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Test PageSpeed', $this->the_plugin->localizationName), 'action' => 'do_item_pagespeed_test', 'color' => 'orange'), 'width' => '80')), 'mass_actions' => array('speed_test_mass' => array('value' => __('Mass PageSpeed test', $this->the_plugin->localizationName), 'action' => 'do_speed_test_mass', 'color' => 'blue')));
            // if report type not both
            if (isset($settings['report_type']) && $settings['report_type'] != "both") {
                $removeWhat = 'desktop';
                if ($settings['report_type'] == 'desktop') {
                    $removeWhat = 'mobile';
                }
                unset($attrs['columns']['page_speed_' . $removeWhat . '_score']);
            }
            pspAjaxListTable::getInstance($this->the_plugin)->setup($attrs)->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #7
0
        private function printBaseInterface()
        {
            if (!wp_script_is('psp-media-smushit-js')) {
                wp_enqueue_style('psp-media-smushit-js', $this->module_folder . 'app.css', false, '1.0', 'all');
            }
            if (!wp_script_is('psp-media-smushit-css')) {
                wp_enqueue_script('psp-media-smushit-css', $this->module_folder . 'app.class.js', array('jquery'), '1.0', false);
            }
            ?>
		<?php 
            /*
            <link rel='stylesheet' href='<?php echo $this->module_folder;?>app.css' type='text/css' media='screen' />
            <script type="text/javascript" src="<?php echo $this->module_folder;?>app.class.js" ></script>
            */
            ?>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('advanced_setup')->show_menu();
            ?>
			
			<!-- Page detail -->
			<div id="psp-pagespeed-detail">
				<div id="psp-pagespeed-ajaxresponse"></div>
			</div>
				
			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('Media files Smushit!', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            //$settings = $this->the_plugin->getAllSettings( 'array', 'psp_smushit' );
            $settings = $this->settings;
            $attrs = array('id' => 'pspSmushit', 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%ID%', 'width' => '40'), 'thumbnail' => array('th' => __('', $this->the_plugin->localizationName), 'td' => '%thumbnail%', 'align' => 'left', 'width' => '60'), 'title' => array('th' => __('File', $this->the_plugin->localizationName), 'td' => '%title%', 'align' => 'left', 'width' => '250'), 'smushit' => array('th' => __('Smushit Status', $this->the_plugin->localizationName), 'td' => '%smushit_status%', 'align' => 'left'), 'date' => array('th' => __('Date', $this->the_plugin->localizationName), 'td' => '%date%', 'width' => '120'), 'optimize_btn' => array('th' => __('Action', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Smushit', $this->the_plugin->localizationName), 'action' => 'do_item_smushit', 'color' => 'orange'), 'width' => '80')), 'mass_actions' => array('speed_test_mass' => array('value' => __('Mass Smushit', $this->the_plugin->localizationName), 'action' => 'do_mass_smushit', 'color' => 'blue')));
            pspAjaxListTable::getInstance($this->the_plugin)->setup($attrs)->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #8
0
        private function printBaseInterface()
        {
            ?>
		<link rel='stylesheet' href='<?php 
            echo $this->module_folder;
            ?>
app.css' type='text/css' media='screen' />
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('monitoring')->show_menu();
            ?>
			
			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-gAnalytics-container">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('Audience Overview', $this->the_plugin->localizationName);
            ?>
 - <span id="psp-gdata-profile"></span>
										</span>
										
										<div class="psp-top-filters">
											<div id="psp-filter-by-date">
												<label for="psp-filter-by-date-from"><?php 
            _e('From:', $this->the_plugin->localizationName);
            ?>
</label>
												<input type="text" id="psp-filter-by-date-from" name="psp-filter-by-date-from" value="<?php 
            echo date('Y-m-d', strtotime("-1 week"));
            ?>
" />
												<label for="psp-filter-by-date-to"><?php 
            _e('to', $this->the_plugin->localizationName);
            ?>
</label>
												<input type="text" id="psp-filter-by-date-to" name="psp-filter-by-date-to" value="<?php 
            echo date('Y-m-d');
            ?>
" />
												<input type="button" class="psp-button blue" id="psp-filter-graph-data" value="<?php 
            _e('Apply Filters', $this->the_plugin->localizationName);
            ?>
">
											</div>
										</div>
									</div>
									
									<div class="psp-panel-content">
										<div class="psp-audience-container">
											<div class="psp-audience-graph" id="psp-audience-visits-graph"></div>
											<div id="audience-choose-container"></div>
											
											<div class="psp-ga-summary-stat">
												<div class="psp-ga-summary-block">
													<div class="psp-ga-summery-title">
														<?php 
            _e('Visits', $this->the_plugin->localizationName);
            ?>
: <span id="ga-data-visits"></span> 
													</div>
													<div class="psp-ga-summery-desc">
														<?php 
            _e('The number of visits to your site. For more information, see <a href="http://support.google.com/analytics/bin/answer.py?answer=2731565&amp;topic=2524483&amp;ctx=topic">How Visits are Calculated in Analytics</a>', $this->the_plugin->localizationName);
            ?>
													</div>
												</div>
												<div class="psp-ga-summary-block">
													<div class="psp-ga-summery-title">
														<?php 
            _e('Unique Visitors', $this->the_plugin->localizationName);
            ?>
: <span id="ga-data-uniquePageviews"></span> 
													</div>
													<div class="psp-ga-summery-desc">
														<?php 
            _e('Unique Visitors is the number of unduplicated (counted only once) visitors to your website over the course of a specified time period.', $this->the_plugin->localizationName);
            ?>
													</div>
												</div>
												<div class="psp-ga-summary-block">
													<div class="psp-ga-summery-title">
														<?php 
            _e('% New Visits', $this->the_plugin->localizationName);
            ?>
: <span id="ga-data-newVisits"></span> 
													</div>
													<div class="psp-ga-summery-desc">
														<?php 
            _e('An estimate of the percentage of first time visits.', $this->the_plugin->localizationName);
            ?>
													</div>
												</div>
												<div class="psp-ga-summary-block">
													<div class="psp-ga-summery-title">
														<?php 
            _e('Avg. Visit Duration', $this->the_plugin->localizationName);
            ?>
: <span id="ga-data-avgTimeOnPage"></span> 
													</div>
													<div class="psp-ga-summery-desc">
														<?php 
            _e('The average time duration of a session.', $this->the_plugin->localizationName);
            ?>
													</div>
												</div>
												<div class="psp-ga-summary-block">
													<div class="psp-ga-summery-title">
														<?php 
            _e('Bounce Rate', $this->the_plugin->localizationName);
            ?>
: <span id="ga-data-visitBounceRate"></span> 
													</div>
													<div class="psp-ga-summery-desc">
														<?php 
            _e('Bounce Rate is the percentage of single-page visits (i.e. visits in which the person left your site from the entrance page without interacting with the page).', $this->the_plugin->localizationName);
            ?>
													</div>
												</div>
	                                        	<div class="psp-ga-summary-block">
	                                        		<div class="psp-ga-summery-title">
														<?php 
            _e('Pages / Visit', $this->the_plugin->localizationName);
            ?>
: <span id="ga-data-pageviewsPerVisit"></span> 
													</div>
													<div class="psp-ga-summery-desc">
														<?php 
            _e('Pages/Visit (Average Page Depth) is the average number of pages viewed during a visit to your site. Repeated views of a single page are counted.', $this->the_plugin->localizationName);
            ?>
													</div>
												</div>
												<div class="psp-ga-summary-block">
													<div class="psp-ga-summery-title">
														<?php 
            _e('Pageviews', $this->the_plugin->localizationName);
            ?>
: <span id="ga-data-pageviews"></span> 
													</div>
													<div class="psp-ga-summery-desc">
														<?php 
            _e('Pageviews is the total number of pages viewed. Repeated views of a single page are counted.', $this->the_plugin->localizationName);
            ?>
													</div>
												</div>
												
	                                        </div>
										</div>
									</div>
								</div>
							</div>

							<div class="psp-grid_1_3">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('Demographics', $this->the_plugin->localizationName);
            ?>
										</span>
										
										<select class="psp-ga-filter" data-rel="psp-demographics-container" id="psp-demographics-select">
											<option value="language" selected><?php 
            _e('Language', $this->the_plugin->localizationName);
            ?>
</option>
											<option value="country"><?php 
            _e('Country / Territory', $this->the_plugin->localizationName);
            ?>
</option>
											<option value="city"><?php 
            _e('City', $this->the_plugin->localizationName);
            ?>
</option>
										</select>
									</div>
									
									<div class="psp-panel-content">
										<div class="psp-demographics-container"></div>
									</div>
								</div>
							</div>
							
							<div class="psp-grid_1_3">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('System', $this->the_plugin->localizationName);
            ?>
										</span>
										<select class="psp-ga-filter" data-rel="psp-system-container" id="psp-system-select">
											<option value="browser" selected><?php 
            _e('Browser', $this->the_plugin->localizationName);
            ?>
</option>
											<option value="operatingSystem"><?php 
            _e('Operating System', $this->the_plugin->localizationName);
            ?>
</option>
											<option value="networkDomain"><?php 
            _e('Service Provider', $this->the_plugin->localizationName);
            ?>
</option>
										</select>
									</div>
									
									<div class="psp-panel-content">
										<div class="psp-system-container"></div>
									</div>
								</div>
							</div>
							
							<div class="psp-grid_1_3">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('Mobile', $this->the_plugin->localizationName);
            ?>
										</span>
										<select class="psp-ga-filter" data-rel="psp-mobile-container" id="psp-mobile-select">
											<option value="mob_operatingSystem" selected><?php 
            _e('Operating System', $this->the_plugin->localizationName);
            ?>
</option>
											<option value="mob_networkDomain"><?php 
            _e('Service Provider', $this->the_plugin->localizationName);
            ?>
</option>
											<option value="mob_screenResolution"><?php 
            _e('Screen Resolution', $this->the_plugin->localizationName);
            ?>
</option>
										</select>
									</div>
									
									<div class="psp-panel-content">
										<div class="psp-mobile-container"></div>
									</div>
								</div>
							</div>
							
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
        public function printBaseInterface()
        {
            ?>
		<div id="psp-wrapper" class="fluid wrapper-psp">

			<!-- Header -->
			<div id="psp-header">

				<!--div id="psp-header-top">


					<div class="psp-container clearfix">

						<div id="psp-logo-wrap">
							<div id="psp-logo">
								<div id="psp-logo-img">
									<a href="#">
										<img src="<?php 
            echo $this->cfg['paths']['plugin_dir_url'] . '/icon_80.png';
            ?>
" alt="logo" />
									</a>
								</div>
							</div>
						</div>
					</div>
				</div-->

				<!--div id="psp-header-bottom">
					
					<div class="psp-container clearfix">
						<div id="psp-topMenu">
							<ul>
								<?php 
            if (count($this->cfg['activate_modules']) > 0) {
                foreach ($this->cfg['menu_order'] as $order => $module_alias) {
                    // skip if module it's not activated
                    if (!in_array($module_alias, array_keys($this->cfg['activate_modules']))) {
                        continue;
                    }
                    // update the module with rest of information about modue
                    $module = $this->cfg['modules'][$module_alias];
                    if (isset($module[$module_alias]['menu']["show_in_menu"]) && $module[$module_alias]['menu']["show_in_menu"] === false) {
                        continue;
                    }
                    $iconImg = '';
                    if (is_file($module['folder_path'] . $module[$module_alias]['menu']['icon'])) {
                        $iconImg = '<img src="' . ($module['folder_uri'] . $module[$module_alias]['menu']['icon']) . '" />';
                    }
                    if (is_file($module["folder_path"] . 'options.php')) {
                        echo '<li id="psp-nav-' . $module_alias . '">' . $iconImg . '<a href="#' . $module_alias . '">' . $module[$module_alias]['menu']['title'] . '</a></li>';
                    }
                }
            }
            ?>
							</ul>
						</div>

					</div>
				</div-->
				<?php 
            // show the top menu
            pspAdminMenu::getInstance()->show_menu();
            ?>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<!-- Content Area -->
							<div id="psp-ajax-response"></div>

							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #10
0
        private function printBaseInterface()
        {
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('on_page_optimization')->show_menu();
            ?>
			
			<div id="psp-lightbox-overlay">
				<div id="psp-lightbox-container">
					<h1 class="psp-lightbox-headline">
						<img class="psp-lightbox-icon" src="<?php 
            echo $this->the_plugin->cfg['paths']['freamwork_dir_url'];
            ?>
images/light-bulb.png">
						<span><?php 
            _e('PSP SEO Report for post ID:', $this->the_plugin->localizationName);
            ?>
 <i></i></span>
						<a href="#" class="psp-close-btn" title="<?php 
            _e('Close Lightbox', $this->the_plugin->localizationName);
            ?>
"></a>
					</h1>

					<div class="psp-seo-status-container">
						<div id="psp-lightbox-seo-report-response"></div>
						<div style="clear:both"></div>
					</div>
				</div>
			</div>

			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<img src="<?php 
            echo $this->the_plugin->cfg['paths']['plugin_dir_url'];
            ?>
/modules/Social_Stats/assets/menu_icon.png">
											<?php 
            _e('Mass Optimization', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspPageOptimization', 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%ID%', 'width' => '40'), 'title' => array('th' => __('Title', $this->the_plugin->localizationName), 'td' => '%title_and_actions%', 'align' => 'left'), 'score' => array('th' => __('Score', $this->the_plugin->localizationName), 'td' => '%score%', 'width' => '130', 'css' => array('padding' => '0px', 'background' => '#fcfcfc')), 'focus_keyword' => array('th' => __('Focus Keyword', $this->the_plugin->localizationName), 'td' => '%focus_keyword%', 'align' => 'left', 'width' => '350'), 'seo_report' => array('th' => __('Seo report', $this->the_plugin->localizationName), 'td' => '%seo_report%', 'align' => 'center', 'width' => '110'), 'date' => array('th' => __('Date', $this->the_plugin->localizationName), 'td' => '%date%', 'width' => '120'), 'optimize_btn' => array('th' => __('Action', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Optimize', $this->the_plugin->localizationName), 'action' => 'do_item_optimize', 'color' => 'orange'), 'width' => '80'))))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #11
0
        private function printBaseInterface()
        {
            $socialServices = $this->the_plugin->get_theoption($this->the_plugin->alias . '_social', true);
            if (isset($socialServices['services'])) {
                $socialServices = $socialServices['services'];
            }
            //if( count($socialServices) > 0 ) $this->socialstats_scripts($socialServices);
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<link rel='stylesheet' href='<?php 
            echo $this->module_folder;
            ?>
app.css' type='text/css' media='all' />
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->show_menu();
            ?>
			
			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix" style="padding-top: 20px;">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('Social Stats of your pages', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            $columns = array('id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%ID%', 'width' => '40'), 'title' => array('th' => __('Title', $this->the_plugin->localizationName), 'td' => '%title%', 'align' => 'left'));
            if (count($socialServices) > 0) {
                foreach ($socialServices as $key => $value) {
                    if ($value == 'facebook') {
                        $columns['ss_facebook'] = array('th' => __('Facebook', $this->the_plugin->localizationName), 'td' => '%ss_facebook%', 'width' => '80');
                    }
                    if ($value == 'twitter') {
                        $columns['ss_twitter'] = array('th' => __('Twitter', $this->the_plugin->localizationName), 'td' => '%ss_twitter%', 'width' => '80');
                    }
                    if ($value == 'google') {
                        $columns['ss_google'] = array('th' => __('Google +1', $this->the_plugin->localizationName), 'td' => '%ss_google%', 'width' => '80');
                    }
                    if ($value == 'pinterest') {
                        $columns['ss_pinterest'] = array('th' => __('Pinterest', $this->the_plugin->localizationName), 'td' => '%ss_pinterest%', 'width' => '80');
                    }
                    if ($value == 'stumbleupon') {
                        $columns['ss_stumbleupon'] = array('th' => __('Stumbleupon', $this->the_plugin->localizationName), 'td' => '%ss_stumbleupon%', 'width' => '80');
                    }
                    if ($value == 'digg') {
                        $columns['ss_digg'] = array('th' => __('Digg', $this->the_plugin->localizationName), 'td' => '%ss_digg%', 'width' => '80');
                    }
                    if ($value == 'linkedin') {
                        $columns['ss_linkedin'] = array('th' => __('Linkedin', $this->the_plugin->localizationName), 'td' => '%ss_linkedin%', 'width' => '80');
                    }
                }
            }
            $columns['date'] = array('th' => __('Date', $this->the_plugin->localizationName), 'td' => '%date%', 'width' => '120');
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspSocialStats', 'show_header' => true, 'show_footer' => false, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => $columns, 'mass_actions' => false))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #12
0
        private function printBaseInterface()
        {
            global $wpdb;
            ?>
		<link rel='stylesheet' href='<?php 
            echo $this->module_folder;
            ?>
app.css' type='text/css' media='screen' />
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('advanced_setup')->show_menu();
            ?>
			
			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            _e('Files Edit', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="frm-save-changes" action="#save_with_ajax" method="post">
											<?php 
            if (function_exists('wp_nonce_field')) {
                wp_nonce_field('psp-file-edit-changes');
            }
            ?>
											<input type="hidden" name="savechanges" value="ok">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response" style="padding: 0px 0px 0px 0px;">

<?php 
            //save changes on form submit!
            $__saveRes = $this->saveChanges();
            $__result = array('robotstxt' => false, 'htaccess' => false);
            $__result['robotstxt'] = $this->getFile('robots.txt');
            if ($this->verify_htaccess()) {
                $__result['htaccess'] = $this->getFile('.htaccess');
            } else {
                $__result['htaccess']['msg'] = __('You\'re not on a Apache hosting', $this->the_plugin->localizationName);
            }
            //make short aliases
            $rt = $__result['robotstxt'];
            $ht = $__result['htaccess'];
            $showBtnSave = (bool) ($rt['status'] == 'active' || $ht['status'] == 'active');
            $__msg = array('rt' => array(), 'ht' => array());
            //msg: get files
            $rt !== false ? $__msg['rt'][] = $rt['msg'] : '';
            $ht !== false ? $__msg['ht'][] = $ht['msg'] : '';
            //msg: save changes!
            $__saveRes['robotstxt'] !== false ? $__msg['rt'][] = $__saveRes['robotstxt']['msg'] : '';
            $__saveRes['htaccess'] !== false ? $__msg['ht'][] = $__saveRes['htaccess']['msg'] : '';
            if (!empty($__saveRes['msg'])) {
                $__msg['rt'][] = $__saveRes['msg']['rt'];
                $__msg['ht'][] = $__saveRes['msg']['ht'];
            }
            $__msg = array_filter($__msg, array($this, 'removeEmptyItems'));
            //filter empty messages!
            ?>

												<table class="psp-table" style="border: none;border-bottom: 1px solid #dadada;width:100%;border-spacing:0; border-collapse:collapse;">
													<thead>
														<tr>
															<th colspan="2" align="left"><?php 
            _e('
															<ul>
																<li>Here you can edit the robots.txt and .htaccess files.</li>
																<li><a href="http://www.robotstxt.org/robotstxt.html" target="_blank">robots.txt file help</a> (incorrectly editing your robots.txt file could block search engines from targeting your site)</li>
																<li><a href="http://httpd.apache.org/docs/2.4/howto/htaccess.html" target="_blank">.htaccess file help</a> (.htaccess file is static and it is possible that WordPress or another plugin may overwrite this file, also if you\'ve inserted code that your web server can\'t understand, you can disable your entire website in this way, <span style="color: blue;">so make a backup of this file, found on the root of your website, before making changes with this module</span>)</li>
															</u>', $this->the_plugin->localizationName);
            ?>
</th>
														</tr>
														<?php 
            if ($showBtnSave) {
                ?>
														<tr>
															<td colspan="2" align="left"><input type="button" class="psp-button blue psp-fe-save" value="Save changes"></td>
														</tr>
														<?php 
            }
            ?>
														<tr>
															<td width="50%">
																<span><?php 
            _e('robots.txt file', $this->the_plugin->localizationName);
            ?>
</span><br />
																<?php 
            if ($rt !== false) {
                if ($rt['status'] != 'hidden') {
                    ?>
																<textarea <?php 
                    echo $rt['status'] == 'disabled' ? 'disabled="disabled"' : '';
                    ?>
 style="height:300px;" rows="40" name="robotstxt" id="robotstxt"><?php 
                    echo $rt['content'];
                    ?>
</textarea>
																<?php 
                }
            }
            ?>
																<span id="psp-fe-rt-wrap"><?php 
            echo implode('<br />', $__msg['rt']);
            ?>
</span>
															</td>
															<td width="50%">
																<span><?php 
            _e('.htaccess file', $this->the_plugin->localizationName);
            ?>
</span><br />
																<?php 
            if ($ht !== false) {
                if ($ht['status'] != 'hidden') {
                    ?>
																<textarea <?php 
                    echo $ht['status'] == 'disabled' ? 'disabled="disabled"' : '';
                    ?>
 style="height:300px;" rows="40" name="htaccess" id="htaccess"><?php 
                    echo $ht['content'];
                    ?>
</textarea>
																<?php 
                }
            }
            ?>
																<span id="psp-fe-ht-wrap"><?php 
            echo implode('<br />', $__msg['ht']);
            ?>
</span>
															</td>
														</tr>
														<?php 
            if ($showBtnSave) {
                ?>
														<tr>
															<td colspan="2" align="left"><input type="button" class="psp-button blue psp-fe-save" value="Save changes"></td>
														</tr>
														<?php 
            }
            ?>
													</thead>
															
													<tbody>
															
													</tbody>
												</table>
											
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #13
0
        private function printBaseInterface()
        {
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('advanced_setup')->show_menu();
            ?>
			
			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            /*<img src="<?php echo $this->module_folder;?>assets/w3-icon.png">*/
            ?>
											<?php 
            _e('Mass Check the markup (HTML, XHTML, …) of your pages', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspPageHTMLValidation', 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%ID%', 'width' => '40'), 'title' => array('th' => __('Title', $this->the_plugin->localizationName), 'td' => '%title%', 'align' => 'left'), 'status' => array('th' => __('Status', $this->the_plugin->localizationName), 'td' => '%status%', 'def' => '-', 'align' => 'center', 'width' => '40'), 'nr_of_errors' => array('th' => __('# of Errors:', $this->the_plugin->localizationName), 'td' => '%nr_of_errors%', 'def' => '-', 'align' => 'center', 'width' => '80'), 'nr_of_warning' => array('th' => __('# of Warning', $this->the_plugin->localizationName), 'td' => '%nr_of_warning%', 'def' => '-', 'align' => 'center', 'width' => '80'), 'last_check_at' => array('th' => __('Last check at', $this->the_plugin->localizationName), 'td' => '%last_check_at%', 'def' => __('Never Checked', $this->the_plugin->localizationName), 'align' => 'center', 'width' => '120'), 'view_full_report' => array('th' => __('View full report', $this->the_plugin->localizationName), 'td' => '%view_full_report%', 'align' => 'center', 'width' => '120'), 'date' => array('th' => __('Date', $this->the_plugin->localizationName), 'td' => '%date%', 'width' => '120'), 'optimize_btn' => array('th' => __('Action', $this->the_plugin->localizationName), 'td' => '%button%', 'option' => array('value' => __('Verify page', $this->the_plugin->localizationName), 'action' => 'do_item_html_validation'), 'width' => '80')), 'mass_actions' => array('html_validation' => array('value' => __('Verify all selected pages', $this->the_plugin->localizationName), 'action' => 'do_bulk_html_validation', 'color' => 'blue'))))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }
Пример #14
0
        private function printBaseInterface()
        {
            global $wpdb;
            ?>
		<script type="text/javascript" src="<?php 
            echo $this->module_folder;
            ?>
app.class.js" ></script>
		<div id="psp-wrapper" class="fluid wrapper-psp">
			<?php 
            // show the top menu
            pspAdminMenu::getInstance()->make_active('advanced_setup')->show_menu();
            ?>
			
			<div id="psp-lightbox-overlay">
				<div id="psp-lightbox-container">
					<h1 class="psp-lightbox-headline">
						<img class="psp-lightbox-icon" src="<?php 
            echo $this->the_plugin->cfg['paths']['freamwork_dir_url'];
            ?>
images/light-bulb.png">
						<span id="link-details"><?php 
            _e('Details:', $this->the_plugin->localizationName);
            ?>
</span>
						<a href="#" class="psp-close-btn" title="<?php 
            _e('Close Lightbox', $this->the_plugin->localizationName);
            ?>
"></a>
					</h1>

					<div class="psp-seo-status-container">
						<div id="psp-lightbox-seo-report-response"></div>
						<div style="clear:both"></div>
					</div>
				</div>
			</div>

			<!-- Main loading box -->
			<div id="psp-main-loading">
				<div id="psp-loading-overlay"></div>
				<div id="psp-loading-box">
					<div class="psp-loading-text"><?php 
            _e('Loading', $this->the_plugin->localizationName);
            ?>
</div>
					<div class="psp-meter psp-animate" style="width:86%; margin: 34px 0px 0px 7%;"><span style="width:100%"></span></div>
				</div>
			</div>

			<!-- Header -->
			<div id="psp-header">

				<div id="psp-header-bottom">
					<!-- Container -->
					<div class="psp-container clearfix"></div>
				</div>
			</div>

			<!-- Content -->
			<div id="psp-content">

				<!-- Container -->
				<div class="psp-container clearfix">

					<!-- Main Content Wrapper -->
					<div id="psp-content-wrap" class="clearfix">

						<!-- Content Area -->
						<div id="psp-content-area">
							<div class="psp-grid_4">
	                        	<div class="psp-panel">
	                        		<div class="psp-panel-header">
										<span class="psp-panel-title">
											<?php 
            /*<img src="<?php echo $this->the_plugin->cfg['paths']['plugin_dir_url'];?>/modules/Social_Stats/assets/menu_icon.png">*/
            ?>
											<?php 
            _e('Facebook Planner Scheduled Tasks', $this->the_plugin->localizationName);
            ?>
										</span>
									</div>
									<div class="psp-panel-content">
										<form class="psp-form" id="1" action="#save_with_ajax">
											<div class="psp-form-row psp-table-ajax-list" id="psp-table-ajax-response">
											<?php 
            pspAjaxListTable::getInstance($this->the_plugin)->setup(array('id' => 'pspFacebookPlanner', 'custom_table' => "psp_post_planner_cron", 'custom_table_force_action' => true, 'show_header' => true, 'items_per_page' => '10', 'post_statuses' => 'all', 'columns' => array('checkbox' => array('th' => 'checkbox', 'td' => 'checkbox'), 'id' => array('th' => __('ID', $this->the_plugin->localizationName), 'td' => '%id%', 'width' => '40'), 'post_id' => array('th' => __('Post ID', $this->the_plugin->localizationName), 'td' => '%post_id%', 'width' => '40'), 'post_name' => array('th' => __('Post Name', $this->the_plugin->localizationName), 'td' => '%post_name%', 'align' => 'left'), 'status' => array('th' => __('Status', $this->the_plugin->localizationName), 'td' => '%status%', 'align' => 'center', 'width' => '30'), 'attempts' => array('th' => __('Executed (times)', $this->the_plugin->localizationName), 'td' => '%attempts%', 'align' => 'center', 'width' => '30'), 'response' => array('th' => __('Last Response', $this->the_plugin->localizationName), 'td' => '%response%', 'align' => 'center', 'width' => '80'), 'post_to' => array('th' => __('Post To', $this->the_plugin->localizationName), 'td' => '%post_to%', 'align' => 'center', 'width' => '80'), 'post_privacy' => array('th' => __('Privacy', $this->the_plugin->localizationName), 'td' => '%post_privacy%', 'align' => 'center', 'width' => '50'), 'email_at_post' => array('th' => __('Email notification', $this->the_plugin->localizationName), 'td' => '%email_at_post%', 'align' => 'center', 'width' => '40'), 'repeat_status' => array('th' => __('Repeating?', $this->the_plugin->localizationName), 'td' => '%repeat_status%', 'align' => 'center', 'width' => '40'), 'repeat_interval' => array('th' => __('Repeat (hours)', $this->the_plugin->localizationName), 'td' => '%repeat_interval%', 'align' => 'center', 'width' => '40'), 'run_date' => array('th' => __('Run at date/time', $this->the_plugin->localizationName), 'td' => '%run_date%', 'align' => 'center', 'width' => '70'), 'started_at' => array('th' => __('Starting date/time', $this->the_plugin->localizationName), 'td' => '%started_at%', 'align' => 'center', 'width' => '70'), 'ended_at' => array('th' => __('Ending date/time', $this->the_plugin->localizationName), 'td' => '%ended_at%', 'align' => 'center', 'width' => '70')), 'mass_actions' => array('delete_facebook_planner_rows' => array('value' => __('Delete selected rows', $this->the_plugin->localizationName), 'action' => 'do_bulk_delete_facebook_planner_rows', 'color' => 'blue'))))->print_html();
            ?>
								            </div>
							            </form>
				            		</div>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

<?php 
        }