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

V2 theme #1132

Merged
merged 4 commits into from
Mar 2, 2015
Merged

V2 theme #1132

merged 4 commits into from
Mar 2, 2015

Conversation

j0k3r
Copy link
Member

@j0k3r j0k3r commented Feb 23, 2015

So, to sum up what I did:

  • remove all themes except baggy (from app/Resources/views/ and src/Wallabag/CoreBundle/Resources/views/themes/)
  • install LiipTheme to handle many themes
    • and introduce a new service wallabag_core.helper.detect_active_theme which help the bundle to define which theme is active by looking a the Config entry.
    • config form is now a service, so I can inject the list of available theme that are also used by the bundle
  • simplify the way to make a template (just need to put a layout.html.twig in a new theme folder and but your own js / css, see the baggy one)

I will later write a quick help on to write your own theme. Maybe when we'll have chosen the official v2 theme :)

@j0k3r j0k3r added this to the 2.0 milestone Feb 23, 2015
load_controllers: false
themes:
- baggy
- courgette
Copy link
Member

Choose a reason for hiding this comment

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

you can really remove courgette one :)

Re-defined the config / user relation to be OneToOne bidirectionnal.
ConfigType is now a service so I can inject the list of available themes that are also used by LiipThemeBundle

Force sqlite for test
In case of people use a different driver in parameter.yml (yes I do :))
@j0k3r
Copy link
Member Author

j0k3r commented Mar 1, 2015

I've updated the description with what I did.

@j0k3r j0k3r changed the title WIP – V2 theme V2 theme Mar 1, 2015
Others patterns aren't required (but I think it's still important to have them around)
@nicosomb
Copy link
Member

nicosomb commented Mar 2, 2015

Great job!

nicosomb added a commit that referenced this pull request Mar 2, 2015
@nicosomb nicosomb merged commit ba7b9d4 into v2 Mar 2, 2015
@nicosomb nicosomb deleted the v2-theme branch March 2, 2015 20:23
@nicosomb nicosomb modified the milestones: 2.0, 2.0.0-alpha Aug 12, 2015
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.

None yet

2 participants