Git Product home page Git Product logo

mangopress's Introduction

MangoPress 2

New project

  • Init new project from boilerplate with ./bin/init-project.sh and delete /public and /vendor from .gitignore rules.

Start development

  • Start local development with ./bin/clone-local-config.sh.

Utilities

  • Update WordPress and Composer dependencies with ./bin/update.sh.
  • Build project with ./bin/build.sh.
  • Clear transients with ./bin/clear-temp.sh.
  • If you are in manGoweb team. You should install common plugins with https://github.com/mangoweb/mu-plugins

mangopress's People

Contributors

dependabot[bot] avatar dnepovim avatar enzy avatar filipchalupa avatar hexcross avatar honzamatosik avatar jirkavebr avatar kuceramartin avatar mikulas avatar ondrs avatar vasimi avatar viliamkopecky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mangopress's Issues

Composer available as NPM package

URL to get composer: https://getcomposer.org/installer
Suggested npm name: php-composer

Functionality:

  • module which download and store composer library on installation

better working with links

some mechanism to be able to link to the "contact page", but its url might change, and language, etc.

probably some sidebar component in admin, where you'd be able to mark page/post with some identifier (CONTACT_PAGE) and then in content there would be a shortcode, that could make links to these identifiers..

<a href="[page CONTACT_PAGE]">

WordPress Latte filters

// $post could be ID or WP object

{$post | content} // Html::el('html content')
{$post | lang : en } // Post ID of english variant
{$post | lang : en | content} // Html::el('html content of english variant')
{$post | title} // Html::el('html content')
{$post | excerpt} // Html::el('html content')
{$post | meta : $meta_id} // raw meta value
{$post | thumbnailUrl : $size} // "http://host/path/to/"
{$post | thumbnail } // thumbnail Post
{$post | terms : $taxonomy } // thumbnail Post

metabox get_field for image type doesnt work

If you use {$images = get_field(get_the_ID(), 'm_images')} it doesnt work correctly, this variable wasnt converted to array.

Quick solution: rwmb_meta( 'm_images', 'type=image&size=product_thumb' )

Reusable modules (plugins) for MangoPress

Not supposed to be working without MangoPress, etc.

  • A/B testing
  • Translation
  • Newsletter
  • Products
  • Search
  • Gallery
  • Wysiwyg enhancements
  • Custom fields
  • Admin pages
  • Admin dashboard boxes
  • Performance reports
  • Cache (Nette Cache)
  • Sessions
  • E-commerce
  • Comgate adapter

Disable nette debug bar in admin section

Not by setting $productionMode = true, because that is useable.

Debug bar behaves bad on ajax requests, when WordPress doesnt send the right headers.

Maybe it could be disabled when $Request->isAjax()

No license file

The linked file LICENSE from README.md file does not exist (404).

Prepare reusable Latte filters

  • price (amount + currency, formatted by currency standards)
  • number (by locale settings)
  • texy
  • nl2br

...you are welcome to propose more

Better boilerplate

  • prepared default favicon
  • prepared open graph tags
  • stylus sass directory structure, media utils
  • Google Analytics

Questions

I'll write here some questions I might have about the project.

  1. Why is the whole /public/wp-core folder git ignored?

Helpers for Latte to work nicely with WordPress

  • get_*() functions return unescaped content, but with htmlentities (Latte doesnt like that)
  • get_content() and get_excerpt() must be inside loop to work, but workaround is to apply_filter("the_content", $post->post_content);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.