Skip to content

Commit

Permalink
Update Version to 1.0.1
Browse files Browse the repository at this point in the history
Update Version to 1.0.1
  • Loading branch information
Jevuska committed Oct 13, 2015
1 parent 0e86f13 commit 6f76339
Show file tree
Hide file tree
Showing 50 changed files with 4,444 additions and 63 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ You will find `STT2 Extension Add Terms` tool inside `SEO SearchTerms Tagging 2`
* Ajax
* Plugin Search Excerpt by Scott Yang
* Google Suggest by haochi

## Changelog

** 1.0.0 = June 28, 2015
* First official release!

** 1.0.1 = October, 2015
* Add update plugin check
* Add Screenshoot
11 changes: 10 additions & 1 deletion lib/hooks/hook-delete-search-term.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function pk_stt2_admin_delete_searchterms_extat_callback(){
$nonce = $_REQUEST['wpnonce'];
if ( ! wp_verify_nonce( $nonce, 'stt2extat_action' )) {
Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook-get-list-search-term.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_get_search_terms_db_callback() {
$id = $_POST["id"];
$nonce = $_REQUEST['wpnonce'];
Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook-insert-search-term.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_insert_searchterm_callback() {
global $post;
$terms = $_POST["terms"];
Expand Down
32 changes: 22 additions & 10 deletions lib/hooks/hook-install.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
function stt2extat_install() {
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_install()
{
global $wpdb, $stt2extat_settings, $wp_version;

$stt2extat_settings = stt2extat_settings();
Expand Down Expand Up @@ -33,16 +43,18 @@ function stt2extat_install() {
set_transient( '_stt2extat_activation_redirect', true, 30 );
}

function stt2extat_uninstall() {
global $stt2extat_settings;
delete_option( 'stt2extat_settings', $stt2extat_settings );
delete_option( 'stt2extat_version_upgraded_from' );
delete_option( 'stt2extat_version' );
delete_option( 'stt2exat_admin_notice_goto' );
delete_option( 'stt2extat_max_char' );
function stt2extat_uninstall()
{
global $stt2extat_settings;
delete_option( 'stt2extat_settings', $stt2extat_settings );
delete_option( 'stt2extat_version_upgraded_from' );
delete_option( 'stt2extat_version' );
delete_option( 'stt2exat_admin_notice_goto' );
delete_option( 'stt2extat_max_char' );
}

function stt2extat_after_install() {
function stt2extat_after_install()
{
if ( ! is_admin() )
return;

Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook-recent-post.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_recent_post_callback(){
$nonce = $_REQUEST['wpnonce'];
$max = $_REQUEST['max'];
Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook-relevant-post-search-field.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_relevant_post_search_field_callback() {
$nonce = $_REQUEST['wpnonce'];
if (! wp_verify_nonce( $nonce, 'stt2extat_action' ) )
Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook-search-post.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_search_post_callback(){
global $post;
$q = $_POST["query"];
Expand Down
10 changes: 9 additions & 1 deletion lib/hooks/hook-search-relevant-post.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_search_relevant_post_callback(){
$id = $_POST["id"];
Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook-settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_update_settings_callback(){
$nonce = $_REQUEST['wpnonce'];
$maxchar = $_POST['maxchar'];
Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook-update-hits-search-term.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function update_meta_count_extat_callback(){
global $wpdb;
$table = $wpdb->prefix . "stt2_meta";
Expand Down
11 changes: 10 additions & 1 deletion lib/hooks/hook.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

add_action( 'plugins_loaded', 'stt2extat_loaded' );
?>
10 changes: 9 additions & 1 deletion lib/includes/functions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_get_relevant_post($id,$q,$ignore,$nonce){
global $post;
Expand Down
11 changes: 10 additions & 1 deletion lib/includes/install.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

register_activation_hook( STT2EXTAT_PLUGIN_FILE, 'stt2extat_install' );
register_deactivation_hook( STT2EXTAT_PLUGIN_FILE, 'stt2extat_uninstall' );
add_action( 'admin_init', 'stt2extat_after_install' );
Expand Down
13 changes: 11 additions & 2 deletions lib/includes/plugins.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

if( !is_admin() ) {

if( ! is_admin() ) {
return;
}

Expand Down
11 changes: 9 additions & 2 deletions lib/includes/register-settings.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<?php

if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_get_settings() {
global $stt2extat_settings;
Expand Down
10 changes: 9 additions & 1 deletion lib/includes/template-functions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2extat_plugin_file() {
$pluginfile = STT2EXTAT_PLUGIN_FILE;
Expand Down
10 changes: 9 additions & 1 deletion lib/notices/functions-notices.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function admin_notice_nojs_stt2extat() {
printf( '<noscript><div id="%1$s" class="%2$s"> <p>%3$s <b>%4$s</b> %5$s</p></div></noscript>', esc_attr__( 'message', 'stt2extat' ), esc_attr__( 'error', 'stt2extat' ), esc_html__( 'Enable your browser javascript to load', 'stt2extat' ),esc_html__( 'STT2 Extension Add Terms', 'stt2extat' ),esc_html__( 'plugin.', 'stt2extat' ) );
Expand Down
11 changes: 10 additions & 1 deletion lib/plugins/plugin-search-excerpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
//Search Excerpt Plugin by Scott Yang http://fucoder.com/code/search-excerpt/
//:: Modify

if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

function stt2exat_get_content($id) {
$post = get_post($id);
if (!empty($post->post_password) ) {
Expand Down
11 changes: 10 additions & 1 deletion lib/templates/content/content-checkbox-google.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

?>
<h2><?php _e('Google Suggestion Feature')?></h2><strong><?php _e('BY ENABLING THIS, YOU UNDERSTAND AND AGREE THAT YOU WILL BE SOLELY RESPONSIBLE FOR THE RISK OF ANY AND ALL DAMAGE OR LOSS FROM USE OF, OR INABILITY TO USE, THIS FEATURE.')?></strong>
11 changes: 10 additions & 1 deletion lib/templates/content/content-checkbox-irrelevant.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

?>
<h2><?php _e('Ignore Irrelevant Post')?></h2><strong><?php _e('By checking this, you can add irrelevant search terms into selected post. So, be a wise if you need to use it, provide users with the most relevant search terms and a great user experience.')?></strong>
11 changes: 10 additions & 1 deletion lib/templates/content/content-donate.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

?>
<p><?php _e('Don&#39;t buy me a coffee.','stt2extat')?></p><p><strong><?php _e('Bro','stt2extat')?></strong> - <?php _e('It&#39;s my female cat name, and please don&#39;t bothering me about why "Bro"?, why not "Sist"?!. It was my fault and it was happened. She get pregnant right now and need more Whis','stt2extat')?><s><?php _e('cash.','stt2extat')?></s> <?php _e('Would you mind...?','stt2extat')?><br><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
Expand Down
13 changes: 11 additions & 2 deletions lib/templates/content/content-form.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
<?php
/*
* @package STT2EXTAT
* @category Core
* @author Jevuska
* @version 1.0
*/

if ( ! defined( 'ABSPATH' ) || ! defined( 'STT2EXTAT_PLUGIN_FILE' ) )
exit;

?>
<?php do_action('stt2exatat_before_form') ?>
<form id="stt2-extat" method="post" action=""><div id="search-panel"><label><span class="search-label"><?php _e('Search post by your terms or type post url here:', 'stt2extat');?></span></label><div id="titlediv"><input type="search" id="title" name="q" class="link-search-field" autocomplete="off" required/></div><div id="searchtermpost"></div><div id="searchdiv"></div><input type="hidden" id="id-field" name="id_post" class="link-search-field" required/><label for="insertterms"><?php _e('Search terms will be inserted below then you can type manually, separated by a comma ( e.g.: keyword1,keyword2 ):', 'stt2extat');?></label><br><textarea name="insertterms" style="width:100%" id="insertterms" class="searchterms" readonly="readonly" required></textarea><div id="badterms"></div><br><div id="ins-btn"><input type="button" id="btninsert" class="button button-primary button-medium" value="Insert" disabled="disabled"/> <?php do_action('stt2exatat_after_insert_btn') ?><div class="loader" style="display: inline-block;padding-left: 10px"></div></div></div></form><div id="fullpost"></div><div id="msgb"></div><?php do_action('stt2exatat_after_form') ?>
Expand Down
Loading

0 comments on commit 6f76339

Please sign in to comment.