…Contacts Custom Post Type using Custom Capabilities.Custom Capabilities Whilst we previously reduced the level of access our WordPress Users have, by assigning them to an Editor or Author role, Users are still able to manage Posts and Comments. Neither of these functions are useful to us, so we need to…
…Contact Us" links. The "Print" link allows users to print the selected page, and the "Contact Us" link allows them to send a query email to the support department. To accomplish this, we can simply develop a Magento widget which allows the site administrators to insert this widget into the…
…What You'll Be CreatingIn my tutorial Localization With I18n for the Building Your Startup With PHP series, I created sample Spanish code by cutting and pasting text strings into Google Translate. I began to wonder if I could integrate the Google Translate API with the Yii Framework's I18n resource extraction…
…Contact Page", "Checkout Page", etc. So this is where layout comes into the picture. You can say that layouts are the decorator templates which prepare the complete page by filling up the slots and modules available to that particular layout.On the other hand, layouts are also useful in OpenCart to…
…contact form buttons relying solely on an icon from the popular icon font Font Awesome:<button><span class="fa fa-envelope fa-lg"></span></button> <button><span class="fa fa-times fa-lg"></span></button>The purpose of these buttons is readily evident to a sighted user, but for those relying on screen readers there is no indication what the buttons do. If, for…
…contact page is under "H" because it reads "How to contact us".Use the <title> Tag ProperlyThe <title> tag should be used to identify the current location of the user. This is read out by screen readers, and appears in search results and on the screen window and browser tab. To…
…ContactForm; // populate model attributes with user inputs $model->attributes = \Yii::$app->request->post('ContactForm'); if ($model->validate()) { // all inputs are valid } else { // validation failed: $errors is an array containing error messages $errors = $model->errors; }And here's an example of leveraging Yii's errorSummary function within ActiveForms:<div class="meeting-place-form"> <?php $form =…
…What You'll Be CreatingIf you're asking, "What's Yii?" check out my earlier tutorial: Introduction to the Yii Framework, which reviews the benefits of Yii and includes an overview of what's new in Yii 2.0, released in October 2014.In this Programming With Yii2 series, I'm guiding readers in use of the…
…What You'll Be CreatingIf you're asking, "What's Yii?" check out my earlier tutorial: Introduction to the Yii Framework, which reviews the benefits of Yii and includes an overview of what's new in Yii 2.0, released in October 2014.In this Programming With Yii2 series, I'm guiding readers in use of the…
…Contact Information For customizing the Contact Us page, first of all enable it from System > Configuration > General > Contacts.To create a little advanced contact us page, remove the link at the default Contact Us Page. If your theme doesn't already have a local.xml file, then create a new…