Shineyrock web design & consultancy

Shineyrock

Searched for: "html" / 740 results

Accessibility, Part 5: Understandable

…html> element, via the lang attribute. Additionally the dir attribute should be used to indicate if the content is right-to-left.WordPress makes this easy by providing language_attributes(), which prints the required attributes. In the header.php of your theme:<html <?php language_attributes(); ?>>The language_attributes() function sets the site's language and, if necessary, direction,…


Get Started Building Your Blog With Parse.js: Router

…HTML Template As usual, let's begin by adding an HTML template to admin.html. This should be fairly easy for you now—really similar to #blogs-tpl in index.html. The only difference is we are making a table this time: <script id="blogs-admin-tpl" type="text/x-handlebars-template"> <table> <thead> <tr> <th>Title</th> <th>Author</th> <th>Time</th> <th>Action</th> </tr> </thead> <tbody>…


Create a Simple Shopping Cart Using AngularJS: Part 1

…HTML. From the official docs:At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS's HTML compiler ($compile) to attach a specified behavior to that DOM element or even transform the DOM element and its children. Designing…


Creating a Web App From Scratch Using AngularJS and Firebase: Part 7

…HTML inside the application.Open up app/home/home.js and create a simple directive as shown below: .directive('laddaLoading', [ function() { return { link: function(scope, element, attrs) { } }; } ]);We'll start and stop the Ladda loading indicator based on a $scope variable called login.loading. When login.loading is true, we'll show the…


Style Different Categories in Your WordPress Site Differently Using CSS

…HTML, you'll see that the body_class() template tag has added a bunch of classes to your page.Here the body tag has classes which tell us what kind of page this is:<body class="archive category category-markup category-29 logged-in admin-bar no-customize-support">These classes tell us that we're on a category archive page for the…


Accessibility, Part 6: Going Beyond Code Best Practices

…html__( 'Colour contrast warning. Ratio: %f', 'mytheme' ), )); } add_action( 'customize_preview_init', 'mytheme_customizer_live_preview' );SummaryWe have covered only a couple of suggestions in detail here, but the list could go on. There is also a lot of scope for plugin developers to do likewise: Form plugins could discourage the use of…


Create a Simple Shopping Cart Using AngularJS: Part 2

…html page, the items and its options are repeated. So we'll create an AngularJS directive for this purpose which will create items and its options as per the data in the back end. For the sake of simplicity, let's consider the following items in the shopping cart :[{ 'item': 'Hard…


Programming With Yii2: Working With Asset Bundles

…Html; use yii\helpers\BaseHtml; use yii\widgets\ActiveForm; use frontend\assets\LocateAsset; LocateAsset::register($this); ...When you view the source of our page, you'll see the scripts generated along with other Yii2 standard assets for forms, Bootstrap, etc.:<script src="/mp/js/locate.js"></script> <script src="/mp/js/geoPosition.js"></script> <script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="/mp/assets/d9b337d3/jquery.js"></script> <script src="/mp/assets/ed797b77/yii.js"></script> <script src="/mp/assets/ed797b77/yii.validation.js"></script> <script src="/mp/assets/ed797b77/yii.activeForm.js"></script> <script src="/mp/assets/8c5c0263/js/bootstrap.js"></script>In this tutorial, I'm going…


Building a Product CSV Export Tool in OpenCart

…HTML: <div class="buttons">. Add the Export Button HTML: <a onclick="location = '<?php echo $export_csv; ?>'" class="button">Export CSV</a>Go to the Admin Panel of your store and choose Catalog > Products, and you'll see the Export button as shown in the following screenshot.2. Export the Products2.1 Controller Navigate to(your opencart store directory)/admin/controller/catalog/product.php.…


The Tuts+ Guide to Template Tags: First Batch

…HTML code to display before the output.(Default: Empty) $after (optional—string):The text or HTML code to display after the output.(Default: Empty) $echo (optional—boolean):Whether echo (TRUE) or return (FALSE) the tag.(Default: TRUE) Usage <?php // Get the current post's title with default options. $post_title = get_the_title(); // Display the current post's title…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.