Skip to content

Instantly share code, notes, and snippets.

View haydenbbickerton's full-sized avatar

Hayden Bickerton haydenbbickerton

  • 02:11 (UTC -06:00)
View GitHub Profile
@haydenbbickerton
haydenbbickerton / custom-items-per-page.xml
Created December 11, 2015 16:20
Opencart (vQmod) Custom Items per Page
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Custom Items per Page</id>
<version>0.0.1</version>
<vqmver>2.3.0</vqmver>
<author>Hayden - https://github.com/haydenbbickerton</author>
<file path="catalog/controller/product/" name="category.php,manufacturer.php,search.php,special.php">
<operation error="log" info="Change the limits. The first number is adjusted in Settings > Option > Default Items Per Page">
<search path="path/to/" position="replace"><![CDATA[$limits = array_unique(array($this->config->get('config_catalog_limit'), 25, 50, 75, 100));]]></search>
<add><![CDATA[$limits = array_unique(array($this->config->get('config_catalog_limit'), 32, 64, 128));]]></add>
@haydenbbickerton
haydenbbickerton / functions.php
Created December 3, 2015 18:14
Wordpress The7 with Yoast Breadcrumbs
if (function_exists('yoast_breadcrumb'))
{
function yoastBreadcrumbs()
{
// The start/end html is theme-specific.
return yoast_breadcrumb('<div class="wf-td"><div class="breadcrumbs text-normal" id="breadcrumbs">', '</div></div>', false);
}
// Override the theme's function for making breadcrumbs.
// This is for 'The7' theme, the name of the function is theme-specific.