Skip to content

Commit

Permalink
Merge branch 'develop' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpaul committed Dec 10, 2021
2 parents aa04a27 + ec54138 commit 7c05f50
Show file tree
Hide file tree
Showing 32 changed files with 4,372 additions and 31 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: E2E Tests

on:
push:
branches:
- develop
- trunk
pull_request:
branches:
- develop

jobs:
cypress:
runs-on: ubuntu-latest

strategy:
matrix:
core:
- {name: 'WP latest', version: 'latest'}
- {name: 'WP minimum', version: 'WordPress/WordPress#5.5'}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: npm i

- name: Build asset
run: npm run build

- name: Set the core version
run: ./tests/bin/set-core-version.js ${{ matrix.core.version }}

- name: Set up WP environment
run: npm run wp-env start

- name: Test
run: npm run cypress:run
Binary file added .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ All notable changes to this project will be documented in this file, per [the Ke

## [Unreleased]

## [0.9.0] - 2021-11-30
- Initial plugin release 🎉
## [1.0.0] - 2021-12-09
- Initial public plugin release 🎉

## [0.9.0] - 2021-12-01
- Initial private plugin release 🎉

[Unreleased]: https://github.com/10up/publisher-media-kit/compare/trunk...develop
[0.9.0]: https://github.com/10up/publisher-media-kit/tree/commit-hash-here
[1.0.0]: https://github.com/10up/publisher-media-kit/compare/0.9.0...1.0.0
[0.9.0]: https://github.com/10up/publisher-media-kit/tree/0.9.0
2 changes: 1 addition & 1 deletion CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following individuals are responsible for curating the list of issues, respo

Thank you to all the people who have already contributed to this repository via bug reports, code, design, ideas, project management, translation, testing, etc.

[Katie Wilkerson Rethman (@kmwilkerson)](https://github.com/kmwilkerson), [Stephanie Campbell](https://10up.com), [Tina Castillo Macko (@tinacastillo1)](https://github.com/tinacastillo1), [Lea Alcantara (@lea10up)](https://github.com/lea10up), [Adrian Duffell (@adrianduffell)](https://github.com/adrianduffell), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Maggie Serino (@mserino)](https://github.com/mserino), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Ajay Maurya (@ajmaurya99)](https://github.com/ajmaurya99), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Diana Padron](https://profiles.wordpress.org/dianapadron/), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9).
[Katie Wilkerson Rethman (@kmwilkerson)](https://github.com/kmwilkerson), [Stephanie Campbell](https://10up.com), [Tina Castillo Macko (@tinacastillo1)](https://github.com/tinacastillo1), [Lea Alcantara (@lea10up)](https://github.com/lea10up), [Adrian Duffell (@adrianduffell)](https://github.com/adrianduffell), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Maggie Serino (@mserino)](https://github.com/mserino), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Ajay Maurya (@ajmaurya99)](https://github.com/ajmaurya99), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Diana Padron](https://profiles.wordpress.org/dianapadron/), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu).

## Libraries

Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@

Publisher Media Kit provides a quick and easy option for small to medium sized publishers to digitize their media kit. If you are a publisher hoping for a page like the [NY Times' Advertising Standard Units](https://nytmediakit.com/standard-units), but do not have a designer or developer on staff? Then this plugin is for you. If you are still using a print or PDF version of your media kit to sell space on your website, but want show advertisers looking to buy digital real estate that you are a digital-forward partner? Then this plugin is for you.

Twenty Twenty One default theme | Newspack base theme
------------- | -----------------
[![Media Kit page on frontend of site running the Twenty Twenty One default theme.](.wordpress-org/screenshot-2.png)](.wordpress-org/screenshot-2.png) | [![Media Kit page on frontend of site running the Newspack base theme.](.wordpress-org/screenshot-4.png)](.wordpress-org/screenshot-4.png)

The plugin adds a new "Media Kit" page, block patterns, and placeholder content that can then be customized to fit your need (e.g., text, links, colors, images, adding page link to site footer).

Twenty Twenty One default theme | Newspack base theme
------------- | -----------------
[![View of block patterns and placeholder content within the block editor running the Twenty Twenty One default theme.](.wordpress-org/screenshot-1.png)](.wordpress-org/screenshot-1.png) | [![View of block patterns and placeholder content within the block editor running the Newspack base theme.](.wordpress-org/screenshot-3.png)](.wordpress-org/screenshot-3.png)

## Requirements

* PHP 7.2+
Expand Down
1 change: 1 addition & 0 deletions includes/block-patterns/audience-profiles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:group {"align":"wide","className":"pmk-audience-profiles"} --><div class="wp-block-group alignwide pmk-audience-profiles"><!-- wp:heading {"textAlign":"center","level":2} --><h2 class="has-text-align-center">Audience Profiles</h2><!-- /wp:heading --><!-- wp:columns {"align":"wide"} --><div class="wp-block-columns alignwide"><!-- wp:column --><div class="wp-block-column"><!-- wp:image {"align":"center","width":60,"height":137} --><div id="block-ad47cc21-f741-4805-a4d7-85e15762d9d9" class="wp-block-image"><figure class="aligncenter is-resized"><img src="/wp-content/plugins/publisher-media-kit/assets/images/icon-woman.png" alt="Female visitors" width="60" height="137"/></figure></div><!-- /wp:image --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center" id="block-80c8c75b-6f07-4ca5-a041-fe48703c3e56">The average female visitor is<br><strong>38 years old</strong></p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:image {"align":"center","width":60,"height":137} --><div id="block-7db2072f-dbec-47c8-afdb-8e3c78404377" class="wp-block-image"><figure class="aligncenter is-resized"><img src="/wp-content/plugins/publisher-media-kit/assets/images/icon-man.png" alt="Male visitors" width="60" height="137"/></figure></div><!-- /wp:image --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center" id="block-5faaca4c-38a7-4e2f-aee3-a7312df7cd8f">The average male visitor is<br><strong>52 years old</strong></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --></div><!-- /wp:group -->
1 change: 1 addition & 0 deletions includes/block-patterns/cover-esperanza.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:cover {"url":"/wp-content/plugins/publisher-media-kit/assets/images/cover-image.jpeg","id":17,"align":"full","className":"pmk-cover"} --><div class="wp-block-cover alignfull has-background-dim pmk-cover"><img class="wp-block-cover__image-background wp-image-17" alt="" src="/wp-content/plugins/publisher-media-kit/assets/images/cover-image.jpeg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"center","level":1} --><h1 class="has-text-align-center">Media Kit</h1><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer dui<br>tortor, porttitor ut enim non, iaculis sagittis dolor.</p><!-- /wp:paragraph --><!-- wp:buttons {"contentJustification":"center"} --><div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"className":"pmk-button is-style-fill"} --><div class="wp-block-button pmk-button is-style-fill"><a class="wp-block-button__link">CONTACT US</a></div><!-- /wp:button --></div><!-- /wp:buttons --></div></div><!-- /wp:cover -->
1 change: 1 addition & 0 deletions includes/block-patterns/cover.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:cover {"url":"/wp-content/plugins/publisher-media-kit/assets/images/cover-image.jpeg","id":17,"align":"full","className":"pmk-cover"} --><div class="wp-block-cover alignfull has-background-dim pmk-cover" style="background-image:url(/wp-content/plugins/publisher-media-kit/assets/images/cover-image.jpeg)"><div class="wp-block-cover__inner-container"><!-- wp:heading {"align":"center"} --><h2 class="has-text-align-center">Media Kit</h2><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer dui<br>tortor, porttitor ut enim non, iaculis sagittis dolor.</p><!-- /wp:paragraph --><!-- wp:buttons {"align":"center"} --><div class="wp-block-buttons aligncenter"><!-- wp:button {"className":"pmk-button is-style-fill"} --><div class="wp-block-button pmk-button is-style-fill"><a class="wp-block-button__link">CONTACT US</a></div><!-- /wp:button --></div><!-- /wp:buttons --></div></div><!-- /wp:cover -->
1 change: 1 addition & 0 deletions includes/block-patterns/digital-ad-specs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:group {"align":"wide","className":"pmk-tabs-table"} --><div class="wp-block-group alignwide pmk-tabs-table"><!-- wp:tenup/tabs {"tabsTitle":"Digital Ad Specs"} --><!-- wp:tenup/tabs-item {"header":"Standard Display"} --><!-- wp:table --><figure class="wp-block-table"><table><thead><tr><th><em>Ad Type</em></th><th><em>Dimensions</em></th><th><em>File/Creative Type</em></th><th><em>Device</em></th></tr></thead><tbody><tr><td>Billboard</td><td>970x250</td><td>GIF/JPEG - 250KB | HTML 5 - 500KB</td><td>Desktop</td></tr><tr><td>Super Leaderboard</td><td>970x90</td><td>GIF/JPEG - 250KB | HTML 5 - 500KB</td><td><meta charset="utf-8">Desktop</td></tr><tr><td>Leaderboard</td><td>728x90</td><td><meta charset="utf-8">GIF/JPEG - 250KB | HTML 5 - 500KB</td><td><meta charset="utf-8">Desktop, Tablet</td></tr><tr><td>Medium Rectangle</td><td>300x250</td><td>GIF/JPEG - 250KB | HTML 5 - 500KB</td><td>Desktop, Tablet, Mobile</td></tr><tr><td>Half Page</td><td>300x600</td><td>GIF/JPEG - 250KB | HTML 5 - 500KB</td><td>Desktop</td></tr><tr><td>Small Mobile Banner</td><td>320x50</td><td>GIF/JPEG - 250KB | HTML 5 - 500KB</td><td>Mobile</td></tr><tr><td>Large Mobile Banner</td><td>320x100</td><td>GIF/JPEG - 250KB | HTML 5 - 500KB</td><td>Mobile</td></tr></tbody></table></figure><!-- /wp:table --><!-- /wp:tenup/tabs-item --><!-- wp:tenup/tabs-item {"header":"Video"} --><!-- wp:table --><figure class="wp-block-table"><table><thead><tr><th><em>Ad Type</em></th><th><em>Dimensions</em></th><th><em>File/Creative Type</em></th><th><em><strong>Duration</strong></em></th></tr></thead><tbody><tr><td>Pre-roll</td><td>1280x720 (min) | 16x9 aspect ratio</td><td>MPEG4, 3GPP, MOV, VAST, VPAID - Max 30MB</td><td>15 - 30 seconds</td></tr><tr><td>Mid-roll</td><td>1280x720 (min) | 16x9 aspect ratio</td><td>MPEG4, 3GPP, MOV, VAST, VPAID - Max 30MB</td><td>Up to 15 seconds</td></tr></tbody></table></figure><!-- /wp:table --><!-- /wp:tenup/tabs-item --><!-- wp:tenup/tabs-item {"header":"Native"} --><!-- wp:table --><figure class="wp-block-table"><table><thead><tr><th><em>Type</em></th><th><em><strong>Word Count</strong></em></th><th><em><strong>Placements</strong></em></th><th><em><strong>Accompanying Banner Sizes</strong></em></th></tr></thead><tbody><tr><td>Sponsored Content</td><td>750 - 1000</td><td>7-day dedicated homepage slot, 3 social media posts</td><td>970x250, 728x90, 300x250, 320x50</td></tr><tr><td>Sponsored Email Blast</td><td>250 - 500</td><td>Sent to primary subscriber list of 10,000</td><td>300x250</td></tr></tbody></table></figure><!-- /wp:table --><!-- /wp:tenup/tabs-item --><!-- /wp:tenup/tabs --></div><!-- /wp:group -->
1 change: 1 addition & 0 deletions includes/block-patterns/our-packages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:group {"align": "wide","className":"pmk-packages"} --><div class="wp-block-group alignwide pmk-packages"><!-- wp:heading {"textAlign":"center","level":2} --><h2 class="has-text-align-center">Our Packages</h2><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">This is body copy that explains what packages are and why you would choose one over a regular single ad placement. This should span no more than two to three lines.</p><!-- /wp:paragraph --><!-- wp:columns {"align":"wide","className":"pmk-packages-columns"} --><div class="wp-block-columns alignwide pmk-packages-columns"><!-- wp:column {"className":"pmk-packages-column"} --><div class="wp-block-column pmk-packages-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">Package 1</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">You will air on 10up Digital Elements including: live streaming, pre roll on site &amp; banners on site.</p><!-- /wp:paragraph --><!-- wp:list --><ul><li><strong>60,0000</strong> Guaranteed impressions</li><li><strong>50x</strong> Guaranteed live streaming</li></ul><!-- /wp:list --><!-- wp:paragraph {"align":"center","className":"pmk-big-font"} --><p class="has-text-align-center pmk-big-font">Total Cost: $750K</p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"className":"pmk-packages-column"} --><div class="wp-block-column pmk-packages-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">Package 2</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">You will air on 10up Digital Elements including: live streaming, pre roll on site &amp; banners on site.</p><!-- /wp:paragraph --><!-- wp:list --><ul><li><strong>130,000</strong> Guaranteed impressions</li><li><strong>150x</strong> Guaranteed live streaming</li></ul><!-- /wp:list --><!-- wp:paragraph {"align":"center","className":"pmk-big-font"} --><p class="has-text-align-center pmk-big-font">Total Cost: $1,500K</p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"className":"pmk-packages-column"} --><div class="wp-block-column pmk-packages-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">Package 3</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">You will air on 10up Digital Elements including: live streaming, pre roll on site &amp; banners on site.</p><!-- /wp:paragraph --><!-- wp:list --><ul><li><strong>220,000</strong> Guaranteed impressions</li><li><strong>250x</strong> Guaranteed live streaming</li></ul><!-- /wp:list --><!-- wp:paragraph {"align":"center","className":"pmk-big-font"} --><p class="has-text-align-center pmk-big-font">Total Cost: $2,500K</p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --></div><!-- /wp:group -->
1 change: 1 addition & 0 deletions includes/block-patterns/our-rates.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:group {"align":"wide","className":"pmk-tabs-table pmk-our-rates"} --><div class="wp-block-group alignwide pmk-tabs-table pmk-our-rates"><!-- wp:tenup/tabs {"tabsTitle":"Our Rates"} --><!-- wp:tenup/tabs-item {"header":"Standard"} --><!-- wp:table --><figure class="wp-block-table"><table><thead><tr><th><em>Type</em></th><th><em><strong>Impression Minimum</strong></em></th><th><em>Cost</em></th></tr></thead><tbody><tr><td>Standard Display</td><td>25,000</td><td>$10 CPM</td></tr><tr><td>Pre-roll / Mid-roll</td><td>20,000</td><td>$25 CPM</td></tr><tr><td>Sponsored Content</td><td>N/A</td><td>$1,000</td></tr><tr><td>Sponsored Content Series (3 posts)</td><td><meta charset="utf-8">N/A</td><td>$2,500</td></tr></tbody></table></figure><!-- /wp:table --><!-- /wp:tenup/tabs-item --><!-- wp:tenup/tabs-item {"header":"Sponsorship"} --><!-- wp:table --><figure class="wp-block-table"><table><thead><tr><th><em>Type</em></th><th><em><strong>Minimum Required Assets</strong></em></th><th><em>Cost</em></th></tr></thead><tbody><tr><td>Homepage Takeover</td><td>728x90, 300x250</td><td>$1,000 CPD</td></tr><tr><td>Category/Tag Takeover</td><td>728x90, 300x250</td><td>$1,500 CPD</td></tr><tr><td>Single Post Takeover</td><td>728x90, 300x250</td><td>$500 CPD</td></tr></tbody></table></figure><!-- /wp:table --><!-- /wp:tenup/tabs-item --><!-- /wp:tenup/tabs --></div><!-- /wp:group -->
1 change: 1 addition & 0 deletions includes/block-patterns/question-block.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:group {"align":"wide","className":"pmk-question-block"} --><div class="wp-block-group alignwide pmk-question-block"><!-- wp:columns {"align":"wide"} --><div class="wp-block-columns alignwide"><!-- wp:column {"className":"pmk-question-left"} --><div class="wp-block-column pmk-question-left"><!-- wp:heading {"level":2} --><h2><meta charset="utf-8">Still have questions? We can help.</h2><!-- /wp:heading --></div><!-- /wp:column --><!-- wp:column {"className":"pmk-question-right"} --><div class="wp-block-column pmk-question-right"><!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button {"className":"is-style-fill pmk-button"} --><div class="wp-block-button is-style-fill pmk-button"><a class="wp-block-button__link">CONTACT US</a></div><!-- /wp:button --></div><!-- /wp:buttons --></div><!-- /wp:column --></div><!-- /wp:columns --></div><!-- /wp:group -->
1 change: 1 addition & 0 deletions includes/block-patterns/stats.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:group {"align":"wide","className":"pmk-stats"} --><div class="wp-block-group alignwide pmk-stats"><!-- wp:columns {"align":"wide"} --><div class="wp-block-columns alignwide"><!-- wp:column {"className":"pmk-stats-column"} --><div class="wp-block-column pmk-stats-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">2.5M</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">Monthly Unique Visitors on 10up.com</p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"className":"pmk-stats-column"} --><div class="wp-block-column pmk-stats-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">7M</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">Monthly Page Views on 10up.com</p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"className":"pmk-stats-column"} --><div class="wp-block-column pmk-stats-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">646K</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">Facebook Followers</p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"className":"pmk-stats-column"} --><div class="wp-block-column pmk-stats-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">389K</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">Twitter Followers</p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"className":"pmk-stats-column"} --><div class="wp-block-column pmk-stats-column"><!-- wp:heading {"textAlign":"center","level":3} --><h3 class="has-text-align-center">72K</h3><!-- /wp:heading --><!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center">Instagram Followers</p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --></div><!-- /wp:group -->
Loading

0 comments on commit 7c05f50

Please sign in to comment.