Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sticky ad #62

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

deepaklalwani97
Copy link
Member

Fixes: #59

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpcs scanning turned up:

🚫 5 errors


hashes-api-scanning skipped

classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-admin.php Show resolved Hide resolved
classes/class-admin.php Show resolved Hide resolved
Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpcs scanning turned up:

🚫 1 error


hashes-api-scanning skipped

classes/class-amp-admanager.php Outdated Show resolved Hide resolved
Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpcs scanning turned up:

🚫 1 error


hashes-api-scanning skipped

classes/class-amp-admanager.php Outdated Show resolved Hide resolved
@deepaklalwani97 deepaklalwani97 changed the title WIP: Add support for sticky ad Add support for sticky ad Jan 24, 2020
@deepaklalwani97 deepaklalwani97 mentioned this pull request Jan 24, 2020
2 tasks
Copy link
Member

@sagarnasit sagarnasit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added minor feedback.

classes/class-amp-admanager.php Show resolved Hide resolved
Comment on lines 475 to 477
'desktop-sizes' => '600x90,728x90',
'tablet-sizes' => '320x50,468x60',
'mobile-sizes' => '320x50,468x60',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sizes should be dynamic instead of static, right? I see the discussion is going on #59
cc: @pradeep910

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sizes should be dynamic, and override with these *-sizes parameters.

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpcs scanning turned up:

🚫 1 error


hashes-api-scanning skipped

classes/class-amp-admanager.php Show resolved Hide resolved
<script type="text/javascript" src="https://cdn.ampproject.org/v0.js" async></script>
<script async custom-element="amp-sticky-ad" src="https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a check here if sticky ad is enabled, then only include this script.

Copy link
Contributor

@pradeep910 pradeep910 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small feedback.

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpcs scanning turned up:

🚫 1 error


hashes-api-scanning skipped

template-parts/amp-resources.php Outdated Show resolved Hide resolved
@deepaklalwani97
Copy link
Member Author

Addressed feedbacks

@deepaklalwani97 deepaklalwani97 changed the base branch from master to develop February 7, 2020 13:20
@deepaklalwani97 deepaklalwani97 changed the title Add support for sticky ad WIP: Add support for sticky ad Apr 3, 2020
Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpcs scanning turned up:

🚫 6 errors


hashes-api-scanning skipped

classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-amp-admanager.php Outdated Show resolved Hide resolved
classes/class-amp-admanager.php Outdated Show resolved Hide resolved
@deepaklalwani97 deepaklalwani97 changed the title WIP: Add support for sticky ad Add support for sticky ad Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add amp-sticky-ad
4 participants