__( 'Popular', 'woocommerce' ),
'payment-gateways' => __( 'Gateways', 'woocommerce' ),
'shipping-methods' => __( 'Shipping', 'woocommerce' ),
'import-export-extensions' => __( 'Import/export', 'woocommerce' ),
'product-extensions' => __( 'Products', 'woocommerce' ),
'marketing-extensions' => __( 'Marketing', 'woocommerce' ),
'accounting-extensions' => __( 'Accounting', 'woocommerce' ),
'free-extensions' => __( 'Free', 'woocommerce' ),
'third-party-extensions' => __( 'Third-party', 'woocommerce' ),
);
$i = 0;
foreach ( $links as $link => $name ) {
$i ++;
?>
popular;
break;
case 'payment-gateways':
$addons = $addons->{'payment-gateways'};
break;
case 'shipping-methods':
$addons = $addons->{'shipping-methods'};
break;
case 'import-export-extensions':
$addons = $addons->{'import-export'};
break;
case 'product-extensions':
$addons = $addons->product;
break;
case 'marketing-extensions':
$addons = $addons->marketing;
break;
case 'accounting-extensions':
$addons = $addons->accounting;
break;
case 'free-extensions':
$addons = $addons->free;
break;
case 'third-party-extensions':
$addons = $addons->{'third-party'};
break;
}
foreach ( $addons as $addon ) {
echo '- ';
echo '';
if ( ! empty( $addon->image ) ) {
echo '';
} else {
echo '
' . $addon->title . '
';
}
echo '' . $addon->price . '';
echo '' . $addon->excerpt . '
';
echo '';
echo ' ';
}
?>
WooCommerce Extensions Catalog', 'woocommerce' ), 'http://www.woothemes.com/product-category/woocommerce-extensions/' ); ?>