Skip to content

Commit

Permalink
Merge pull request #296 from ahmedkaludi/0.9.1
Browse files Browse the repository at this point in the history
0.9.1 Released
  • Loading branch information
ahmedkaludi committed Dec 16, 2016
2 parents 58a735c + 1733626 commit 93d598d
Show file tree
Hide file tree
Showing 27 changed files with 630 additions and 223 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Contributors: mohammed_kaludi, ahmedkaludi
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin
Donate link: https://www.paypal.me/Kaludi/5
Requires at least: 3.0
Tested up to: 4.6.1
Stable tag: 0.9
Tested up to: 4.7
Stable tag: 0.9.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -124,6 +124,35 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F


== Changelog ==
= 0.9.1 =
* PHP7 Compatibility
* Pagination URLs (Prev & Next) was going to 404 ( #244 | #251 )
* Custom CSS not working in Design one (#249)
* Enhanced the translation panel by adding Textarea from Redux, which means that we're able to allow HTML in footer like before (#260)
* How to remove “Powered by WordPress” from Design-1 of AMP ( #264 )
* Non-amp Homepage support added (#267)
* using get_avatar() (#259)
* Validation issue fixed: The attribute 'rel' may not appear in tag 'div' (#268)
* Validation Issue fixed: Script Tag removed from the content.
* Featured image in Design 1 in single #261
* After Fresh installation - a save is required Fixed
* Excerpt length controlled
* Design One has thumbnails on the Homepage
* Non-AMP link goes to the wrong page, issue fixed.
* Archive pages were broken, fixed.
* Option to Enable & Disable the Next/Previous links in Single
* WhatsApp sharing not working, issue fixed.
* Category Taxonomy has extra ':' in the word.
* The word 'Ago' is now translatable.
* Yoast SEO with AMP compatibility issue fixed.
* Several Minor Polishing in the code
* Footer Ad gets covered by Sticky Social Icons (#269)
* Smaller image size when “image caption” is used in Design-2 (#263)
* Footer ad with Sticky Social bar issue fix
* Checked with WordPress 4.7
* Ad #1 was messing up with the title, issue fixed.
* Compatibility improved with AMP WooCommerce.

= 0.9 =
* Proper Details at http://ampforwp.com/amp-pagebuilder/
* Drag & Drop Page builder Added: You can easily modify the look of the AMP page using this feature
Expand Down
6 changes: 3 additions & 3 deletions accelerated-moblie-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Accelerated Mobile Pages
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
Description: AMP for WP - Accelerated Mobile Pages for WordPress
Version: 0.9
Version: 0.9.1
Author: Ahmed Kaludi, Mohammed Kaludi
Author URI: http://ampforwp.com/
Donate link: https://www.paypal.me/Kaludi/5
Expand All @@ -26,7 +26,7 @@ function ampforwp_add_custom_post_support() {

define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
define('AMPFORWP_VERSION','0.8.9');
define('AMPFORWP_VERSION','0.9.1');

/*
* Load Files only in the backend
Expand Down Expand Up @@ -91,4 +91,4 @@ function ampforwp_plugin_init() {
new Ampforwp_Init;
}
}
add_action('init','ampforwp_plugin_init',9);
add_action('init','ampforwp_plugin_init',9);
33 changes: 27 additions & 6 deletions includes/options/options-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@
'subtitle' => __('Enable or Disable AMP on all Pages', 'redux-framework-demo'),
'default' => 1,
),
array(
'id' =>'amp-on-off-support-for-non-amp-home-page',
'type' => 'switch',
'title' => __('Non-AMP HomePage link in Header', 'redux-framework-demo'),
'subtitle' => __('If you want users in header to go to non-AMP website from the Header, then you can enable this option', 'redux-framework-demo'),
'default' => 0,
),
// array(
// 'id' => 'amp-design-selector',
// 'type' => 'select',
Expand Down Expand Up @@ -360,6 +367,7 @@
'title' => __( 'SEO', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo'),
'id' => 'amp-seo',
'desc' => '<strong>Note : <br/> This section only works if Yoast SEO Plugin is Activated (Exception : Additional Meta Tags Section) </strong>',
'subsection' => true,
'fields' => array(

Expand All @@ -380,13 +388,11 @@

array(
'id' => 'ampforwp-seo-custom-additional-meta',
'type' => 'ace_editor',
'type' => 'textarea',
'title' => __('Additional tags for Head section AMP page', 'redux-framework-demo'),
'subtitle' => __('Adds additional Meta to the head section', 'redux-framework-demo', 'redux-framework-demo'),
'mode' => 'html',
'theme' => 'monokai',
'desc' => __('Only link and meta tags allowed', 'redux-framework-demo'),
'default' => "<!-- Paste your Additional HTML to <head> </head>tag in this Editor -->"
'placeholder' => "<!-- Paste your Additional HTML , that goes between <head> </head> tags -->"
),

)
Expand Down Expand Up @@ -622,6 +628,14 @@
'default' => 1,
'subtitle' => __('Enable Social Icons in single', 'redux-framework-demo'),
),
//deselectable next previous links
array(
'id' => 'enable-single-next-prev',
'type' => 'switch',
'title' => __('Next-Previous Links', 'redux-framework-demo'),
'default' => 1,
'subtitle' => __('Enable Next-Previous links in single', 'redux-framework-demo'),
),
// Width and Height of Image
array(
'id' => 'enable-single-featured-img-width',
Expand Down Expand Up @@ -864,9 +878,9 @@
),
array(
'id' => 'amp-translator-footer-text',
'type' => 'text',
'type' => 'textarea',
'title' => __('Footer', 'redux-framework-demo'),
'default' => 'Footer',
'default' => 'All Rights Reserved',
'placeholder'=>'write here'
),
array(
Expand Down Expand Up @@ -925,6 +939,13 @@
'default' => 'Edit',
'placeholder'=>'write here'
),
array(
'id' => 'amp-translator-ago-date-text',
'type' => 'text',
'title' => __('ago', 'redux-framework-demo'),
'default' => 'ago',
'placeholder'=>'write here'
),
)
) );

Expand Down
90 changes: 45 additions & 45 deletions includes/options/redux-framework/inc/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Browser

const OPERATING_SYSTEM_UNKNOWN = 'unknown';

public function Browser($userAgent = "")
public function __construct($userAgent = "")
{
$this->reset();
if ($userAgent != "") {
Expand Down Expand Up @@ -260,8 +260,8 @@ public function isRobot()
* Is the browser from facebook?
* @return boolean True if the browser is from facebook otherwise false
*/
public function isFacebook()
{
public function isFacebook()
{
return $this->_is_facebook;
}

Expand Down Expand Up @@ -305,9 +305,9 @@ protected function setRobot($value = true)
* Set the Browser to be a Facebook request
* @param boolean $value is the browser a robot or not
*/
protected function setFacebook($value = true)
{
$this->_is_facebook = $value;
protected function setFacebook($value = true)
{
$this->_is_facebook = $value;
}

/**
Expand Down Expand Up @@ -420,7 +420,7 @@ protected function checkBrowsers()
$this->checkBrowserLynx() ||
$this->checkBrowserShiretoko() ||
$this->checkBrowserIceCat() ||
$this->checkBrowserIceweasel() ||
$this->checkBrowserIceweasel() ||
$this->checkBrowserW3CValidator() ||
$this->checkBrowserMozilla() /* Mozilla is such an open standard that you must check it last */
);
Expand Down Expand Up @@ -502,7 +502,7 @@ protected function checkBrowserMSNBot()
}
return false;
}

/**
* Determine if the browser is the BingBot or not (last updated 1.9)
* @return boolean True if the browser is the BingBot otherwise false
Expand Down Expand Up @@ -1099,10 +1099,10 @@ protected function checkForFacebookIos()
* Detect Version for the Safari browser on iOS devices
* @return boolean True if it detects the version correctly otherwise false
*/
protected function getSafariVersionOnIos()
protected function getSafariVersionOnIos()
{
$aresult = explode('/',stristr($this->_agent,'Version'));
if( isset($aresult[1]) )
if( isset($aresult[1]) )
{
$aversion = explode(' ',$aresult[1]);
$this->setVersion($aversion[0]);
Expand All @@ -1115,10 +1115,10 @@ protected function getSafariVersionOnIos()
* Detect Version for the Chrome browser on iOS devices
* @return boolean True if it detects the version correctly otherwise false
*/
protected function getChromeVersionOnIos()
protected function getChromeVersionOnIos()
{
$aresult = explode('/',stristr($this->_agent,'CriOS'));
if( isset($aresult[1]) )
if( isset($aresult[1]) )
{
$aversion = explode(' ',$aresult[1]);
$this->setVersion($aversion[0]);
Expand Down Expand Up @@ -1209,71 +1209,71 @@ protected function checkBrowserAndroid()
*/
protected function checkPlatform()
{
if (stripos($this->_agent, 'windows') !== false)
if (stripos($this->_agent, 'windows') !== false)
{
$this->_platform = self::PLATFORM_WINDOWS;
}
else if (stripos($this->_agent, 'iPad') !== false)
}
else if (stripos($this->_agent, 'iPad') !== false)
{
$this->_platform = self::PLATFORM_IPAD;
}
else if (stripos($this->_agent, 'iPod') !== false)
}
else if (stripos($this->_agent, 'iPod') !== false)
{
$this->_platform = self::PLATFORM_IPOD;
}
else if (stripos($this->_agent, 'iPhone') !== false)
}
else if (stripos($this->_agent, 'iPhone') !== false)
{
$this->_platform = self::PLATFORM_IPHONE;
}
elseif (stripos($this->_agent, 'mac') !== false)
}
elseif (stripos($this->_agent, 'mac') !== false)
{
$this->_platform = self::PLATFORM_APPLE;
}
elseif (stripos($this->_agent, 'android') !== false)
}
elseif (stripos($this->_agent, 'android') !== false)
{
$this->_platform = self::PLATFORM_ANDROID;
}
elseif (stripos($this->_agent, 'linux') !== false)
}
elseif (stripos($this->_agent, 'linux') !== false)
{
$this->_platform = self::PLATFORM_LINUX;
}
else if (stripos($this->_agent, 'Nokia') !== false)
}
else if (stripos($this->_agent, 'Nokia') !== false)
{
$this->_platform = self::PLATFORM_NOKIA;
}
else if (stripos($this->_agent, 'BlackBerry') !== false)
}
else if (stripos($this->_agent, 'BlackBerry') !== false)
{
$this->_platform = self::PLATFORM_BLACKBERRY;
}
elseif (stripos($this->_agent, 'FreeBSD') !== false)
}
elseif (stripos($this->_agent, 'FreeBSD') !== false)
{
$this->_platform = self::PLATFORM_FREEBSD;
}
elseif (stripos($this->_agent, 'OpenBSD') !== false)
}
elseif (stripos($this->_agent, 'OpenBSD') !== false)
{
$this->_platform = self::PLATFORM_OPENBSD;
}
elseif (stripos($this->_agent, 'NetBSD') !== false)
}
elseif (stripos($this->_agent, 'NetBSD') !== false)
{
$this->_platform = self::PLATFORM_NETBSD;
}
elseif (stripos($this->_agent, 'OpenSolaris') !== false)
}
elseif (stripos($this->_agent, 'OpenSolaris') !== false)
{
$this->_platform = self::PLATFORM_OPENSOLARIS;
}
elseif (stripos($this->_agent, 'SunOS') !== false)
}
elseif (stripos($this->_agent, 'SunOS') !== false)
{
$this->_platform = self::PLATFORM_SUNOS;
}
elseif (stripos($this->_agent, 'OS\/2') !== false)
}
elseif (stripos($this->_agent, 'OS\/2') !== false)
{
$this->_platform = self::PLATFORM_OS2;
}
elseif (stripos($this->_agent, 'BeOS') !== false)
}
elseif (stripos($this->_agent, 'BeOS') !== false)
{
$this->_platform = self::PLATFORM_BEOS;
}
elseif (stripos($this->_agent, 'win') !== false)
}
elseif (stripos($this->_agent, 'win') !== false)
{
$this->_platform = self::PLATFORM_WINDOWS;
}
Expand Down
Empty file.

0 comments on commit 93d598d

Please sign in to comment.