Migrating Sharing Icon Functionality into a WordPress Plugin

Slide Note
Embed
Share

In this content, Michael Hull discusses the process of generalization using examples from history, mathematics, and WordPress development. The focus is on migrating sharing icon functionality from a child theme to a plugin. The goal is to generalize the functionality and address potential issues that may arise. Helpful links and insights are provided to guide through this process.


Uploaded on Oct 09, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Turn Your Code Into A Plugin By Michael Hull

  2. The Process Of Generalization Start with one or more known facts or solutions. Use and expand upon these in order to gather and classify a wider variety of facts and solutions. Repeat! Confession: Disclaimer: Due to excessive study of mathematics, this speaker is trained and equipped to use the above process thoroughly. obsessed with addicted to using constantly

  3. Example Euclid of Alexandria (Ancient Greek mathematician, 300BC) Compiled a 13-volume geometry book, The Elements Started with simple assumptions and built an elaborate framework Each uncovered fact could be used to establish the truth of other statements

  4. Pythagorean Theorem The thing you probably, kind of remember about right triangles. c2=a2+b2 c2=a2+b2 -2ab cosq

  5. I Thought This Was About WordPress? Child theme: specific case Plugin: generalized to cover many possible cases Generalizing is easier said than done In the triangle example, the time gap was something like 3,000 years.

  6. The Task At Hand Build a social sharing icon set that gets added after each post. Tools: HTML/CSS Javascript / jQuery PHP Font Awesome We ll start with a non-ideal child theme that holds the icon functionality

  7. The Child Theme Here is the structure of the /themesfolder that we ll assume: themes/ twentyfifteen tycp-theme-example (2015 child theme) style.css functions.php header.php tycp-icons.js

  8. Goals For Our Plugin Migrate the sharing icon functionality from the child theme into a plugin. Leave non-sharing-icon-related pieces of the child theme intact. Look for issues that we should consider along the way

  9. Links github.com/mhull/ tycp-theme-example tycp-plugin-example resoundingechoes.net/slides/wc2015.pptx

Related


More Related Content