Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
| <div class="qty-box"> | |
| <label for="qty"><sup>*</sup> <?php echo $this->__('Qty') ?></label> | |
| <div class="qty-wrapper"> | |
| <input type="text" name="qty" id="qty" maxlength="3" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" /> | |
| <div class="actions"> | |
| <a class="btn-increment" href="javascript:void(0);" title="<?php echo $this->__('Increment Value')?>"><?php echo $this->__('Increment Value')?></a> | |
| <a class="btn-decrement" href="javascript:void(0);" title="<?php echo $this->__('Decrement Value')?>"><?php echo $this->__('Decrement Value')?></a> | |
| </div> | |
| </div> | |
| </div> |
| <?php | |
| if( stristr( $_SERVER['SERVER_NAME'], "dev" ) ) { | |
| // Dev Environment | |
| define( 'DB_NAME', 'project_dev' ); | |
| define( 'DB_USER', 'project_dev_user' ); | |
| define( 'DB_PASSWORD', 'password' ); | |
| define( 'DB_HOST', 'localhost' ); | |
| define( 'WP_HOME', 'http://project.dev'); | |
| define( 'WP_SITEURL', WP_HOME); | |
| // Dev will always want debug on and caching off |
| [user] | |
| email = youremail@domain.com | |
| name = Your Name or Nickname | |
| [push] | |
| default = matching | |
| [alias] | |
| ps = push | |
| pl = pull | |
| pom = pull origin master | |
| poh = pull origin homologa |
| <?php if ( Mage::registry('current_product') ) : ?> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/Product"> | |
| <?php elseif( Mage::getSingleton('cms/page')->getIdentifier() == 'home' && Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ): ?> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/Store"> | |
| <?php endif; ?> |
| for file in `find . -name "*.xml"`; do xmllint --noout $file; done | |
| fará uma busca por todos os arquivos xml recursivamente e mostrará se houver algum com erro de sintaxe, tags nao fechadas, etc |
| ############################################ | |
| ## Fonts Support - for Apache Server ## | |
| ############################################ | |
| <FilesMatch "\.(ttf|otf|eot|woff|font.css)$"> | |
| <IfModule mod_headers.c> | |
| Header set Access-Control-Allow-Origin "*" | |
| </IfModule> | |
| </FilesMatch> | |
| # webfont mime types |
Atualizado em: 11/07/2012
Entre nós [nome da empresa] e você [nome do cliente]
Nós faremos o melhor para satisfazer suas necessidades e atender suas expectativas, mas é importante registrar tudo por escrito para que todos conheçam suas responsabilidades (quem faz o quê) e saibam o que acontece quando algo dá errado. Neste contrato você não encontrará termos jurídicos complicados ou textos longos e incompreensíveis. Nós não temos interesse em fazê-lo assinar algo que poderá se arrepender depois. O que nós queremos é o melhor para os dois lados, agora e no futuro.
#A BADASS list for faster Web Development!
Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!
Frameworks | Weapons | Checklist | Docs | Community | Learning | For The Win
| // img unautop, Courtesy of Interconnectit http://interconnectit.com/2175/how-to-remove-p-tags-from-images-in-wordpress/ | |
| // add img class and alignment to figure by @_RickBenetti | |
| function img_unautop($pee) { | |
| $class = apply_filters('get_image_tag_class', $class, $id, $align, $size); | |
| $pee = preg_replace('/<p>\\s*?(<a .*?><img.*?><\\/a>|<img.*?>)?\\s*<\\/p>/s', '<figure class="'. $class+$align .'">$1</figure>', $pee); | |
| return $pee; | |
| } | |
| add_filter( 'the_content', 'img_unautop', 30 ); |