This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/:nome_site/marketing' do | |
erb_theme :'marketing_gift', user.layout | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/:site' do | |
erb_client :'client_options' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def erb_theme(template, layout, options={}) | |
erb template, options.merge(:layout => layout) | |
end | |
CLIENT_THEME = :'classic-theme/layout' | |
def erb_client(template, options={}) | |
erb template, options.merge(:layout => CLIENT_THEME) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Wind Wordpress Importer | |
# | |
# To install this plugin do you need copy the file to Wind plugins directory. | |
# An admin widget will be crated to import WordPress eXtended RSS file. | |
# | |
# This plugin use hurricane gem [http://github.com/danieltamiosso/hurricane], | |
# [gem install hurricane] to install it. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean possuiPermissaoDeAcesso(Aplicativo aplicativo){ | |
if (aplicativo.liberadoParaOUsuario(this)){ | |
Session.login(); | |
return true; | |
} | |
return false; | |
} |