Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Add an option to set a footer #612

Merged
merged 1 commit into from
Feb 15, 2017

Conversation

sakatam
Copy link
Contributor

@sakatam sakatam commented Feb 13, 2017

fixes #261

  • Set footer element during the construction of IA document
  • Rename "Style" setting to "Appearance"
  • Consolidate appearance settings logic into one function

image

image

@diegoquinteiro
Copy link
Collaborator

There was an idea from @demoive and @everton-rosario to change the taxonomy and remove the high level "Footer" section.

I personally like the way @sakatam did it here for the simplicity and because it allows a nice future expansion to include other footer elements and options there (setting up Credits for instance).

Please @everton-rosario and @demoive add your reasoning to this thread so it is documented.

I'll approve the diff as it is and defer to @sakatam for the final decision on changing the taxonomy or not.

Copy link
Collaborator

@diegoquinteiro diegoquinteiro left a comment

Choose a reason for hiding this comment

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

Nice work!

Please consider @demoive's and @everton-rosario's points on the taxonomy.

@demoive
Copy link
Contributor

demoive commented Feb 13, 2017

Right, so from the requests I've seen, the reason to have the option for a global footer setting is to make it easy for setting the content of the footer globally. In this sense, I classify it as a setting for the "theme" of an article (or "template") which lends itself for being under the "Styles" section.

@everton-rosario made a point that if this were the case, perhaps "Styles" could be renamed to something else more encompassing, for example:

  • Appearance
  • Template
  • Styling
  • IA markup setup
  • Markup settings

@demoive
Copy link
Contributor

demoive commented Feb 13, 2017

To @diegoquinteiro's point, however, in the future, I could also foresee the desire to define multiple footers, each to be applied to articles based on some condition — such as based on a category or tag. In this case, it could make sense to have a dedicated section for these settings, i.e. keep things as they are.

@demoive
Copy link
Contributor

demoive commented Feb 13, 2017

Either way, I think this implementation is spot on. Great job here.

@sakatam
Copy link
Contributor Author

sakatam commented Feb 14, 2017

Thank you guys all for your suggestions! I agree with moving the copyright setting into the "Style" section and renaming the section to more encompassing one. Once we will need to expand the footer setting in the future, we can split it and have a dedicated section.

fixes #261

- [x] Set footer element during the construction of IA document
- [x] Rename "Style" setting to "Appearance"
- [x] Consolidate appearance settings logic into one function
@sakatam
Copy link
Contributor Author

sakatam commented Feb 14, 2017

Pushed the new version. Now the copyright setting is in the new "Appearance" section which includes Style and RTL settings.

@sakatam
Copy link
Contributor Author

sakatam commented Feb 15, 2017

@diegoquinteiro @demoive @everton-rosario Do you guys have any remaining concerns on this change?

@diegoquinteiro diegoquinteiro added this to the 3.4 milestone Feb 15, 2017
@diegoquinteiro
Copy link
Collaborator

Looks great. Merging. =)

@diegoquinteiro diegoquinteiro merged commit bfe3f7b into Automattic:master Feb 15, 2017
@samichamoun
Copy link

Just updated to the latest version of the plugin and don't see this option??

@sakatam sakatam deleted the footer-settings branch February 16, 2017 01:24
@sakatam
Copy link
Contributor Author

sakatam commented Feb 16, 2017

@samichamoun Unfortunately, this one is not in v3.3. Will definitely be included in the next release!

@samichamoun
Copy link

Ah, no worries. I notice that the screenshot says no tags can be added. Is there a reason why we can't put any hyperlinks in here as I've seen a number of pages using the footer for this?

@rondavilar
Copy link

I've been inserting footers manually in every article which is tedious, plus they get replaced every time the article updates. Is there a way to do this at the PHP level with hyperlink tags? Completely new to programming.

@sakatam
Copy link
Contributor Author

sakatam commented Feb 20, 2017

@samichamoun

Is there a reason why we can't put any hyperlinks in here as I've seen a number of pages using the footer for this?

This is simply due to the restriction of the SDK that this plugin depends on. However, since our platform allows hyperlinks in here, we should be able to do that within this plugin, too. I will file an issue for this. Thank you for pointing this out!

@sakatam
Copy link
Contributor Author

sakatam commented Feb 20, 2017

Filed an issue for rich formats: #619

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional setting option to apply a global footer
5 participants