cmd+h || ctrl+h
turn on regex mode (leftmost toggle button)
search for “^\s*$” without the quotes
If you want only completely empty lines and not just blank ones, search for “^$” instead.Tweet It. Share It.
For this tutorial I am going to cover some of the most common WordPress functions that developers use on a regular basis.
Display the blog name
<?php bloginfo('name'); ?>
Display the blog url
<?php bloginfo('url'); ?>
The stylesheet location
<?php bloginfo('stylesheet_url'); ?>
The location of the theme files directory
<?php bloginfo('template_directory'); ?>
The atom url for the blog
<?php bloginfo('atom_url'); ?>
Display the Rss2 url for the blog
<?php bloginfo('rss2_url'); ?>
The charset of the blog
<?php bloginfo('charset'); ?>
Pingback url of the blog
<?php bloginfo('pingback_url'); ?>
WordPress version of the blog
<?php bloginfo('version'); ?>
HTML version of the website
<?php bloginfo('html_type'); ?>
Display the page title
<?php the_title(); ?>
Display the content
<?php the_content(); ?>
Display the exerpt
<?php the_exerpt(); ?>
Display the published date
<?php the_date(); ?>
Display the published time
<!--?php the_time(); ?-->
Display the category
Display the url link for the page/post
Display the number ID of the post
<?php the_ID(); ?>
Display the author of the post
<?php the_author(); ?>
Display the previous page and next page links
<?php posts_nav_link(); ?>
Display the newer posts link
<?php next_post_link(); ?>
Display the previous posts link
Display a link to edit the post
<?php edit_post_link(__('Edit Post')); ?>
Display the search form value
<?php the_search_query(); ?>
Display the pages
<?php wp_list_pages(); ?>
Display the tag cloud
<?php wp_tag_cloud(); ?>
Display the categories
<?php wp_list_cats(); ?>
Display the calendar
<?php get_calendar(); ?>
Display the archives by date
<?php wp_get_archives(); ?>
Display the blogroll link
<?php get_links_list(); ?>
Display a register link
<?php wp_register(); ?>
Display a login/logout link
<?php wp_loginout(); ?>
Displays the admin meta
<?php wp_meta(); ?>
These are the most common Template tags used in WordPress Development. It is not intended to be a complete list of WordPress functions, just the common ones for someone just getting started developing with WordPress.
Many of the template tags are meant to be used within the WordPress loop but I have also included some like login/logout, calendar and some other ones that are commonly placed in the sidebar or footer.Tweet It. Share It.
See more Wordpress →
“A design pattern is a general reusable solution to a common occurring problem within given context in software design.” (Wikipedia, Software_design_pattern)
Design patterns aren’t completed solutions…they are more like templates that can be used to solve problems and help to organize code. There are three main categories of design patterns: creational, behavioral, and structural. Within these three categories there is a variety of design patterns.
The most common design pattern that I come in the most contact with is the observer pattern from the behavioral category. The observer pattern is used in the model view controller (MVC) architectural pattern. This pattern is used to decouple the model from the view. MVC is often used in swing (JAVA) and .net development for events management. MVC is also commonly used in Php frameworks. The majority of frameworks including Codeigniter, FuelPHP, Larvel, and just about every Php framework use this design pattern.
For the conclusion of this research I will try to discuss some of the more commonly used patterns in JAVA. One pattern that is commonly used in JAVA is the Singleton pattern. The Singleton pattern is used to encapsulate the creation of an object in order to maintain control over it. This allows lazy instantiation and ensures that only one object is created. One example of when this is used is for a remote database connection.
Another commonly used pattern is the Factory Method pattern. This pattern is used when it must be decided at run time which one of several compatible classes is to be instantiated. This pattern is used throughout the Java API. A prime example of this pattern being used is the collator class’s getInstance() method which returns a collation object.
Although I only covered some of the basic Creational patterns used in JAVA there are many other patterns used in JAVA development. Design patterns are a valuable tool for OOP design for a number of reasons. They provide a solution to a problem in a context while providing a vocabulary for discussing OOP design at a significant level of abstraction and they serve as a glossary of idioms that will assist in understanding common complex solutions to design problems.Tweet It. Share It.
It is common knowledge that paper and film decay in a matter of decades; we’ve all seen old photographs yellow and dog-eared with age. In order to combat the inevitable deterioration of physical photographs, collections of photography are being digitalized and copied onto hard disks that are much more durable than paper. However, aesthetics is only a part of what curators look for in photography and other art. When examining old pictures, art historians themselves a number of questions. Why did this picture survive? What is its significance? What did this image intend to communicate? Many of these answers can be found by handling the physical photo, but will be lost once the image becomes digital (Baetens 1).
There are numerous additional issues that arise when digitalization of photographs is discussed. For example, every person who views a physical photo experiences it in the same way. It might be in a different location or displayed differently, but the picture itself if the same. Once the photo is digitalized, viewing the photo becomes inherently undemocratic. Machines and other devices with greater capabilities and screens with higher resolution will be able to deliver a superior viewing experience than inferior digital displays. Institutions of more modest means will not be able to provide the same viewing experience as those with better equipment (Baetens 2-3).
However, digitalizing photos has several obvious benefits. First, the image will be preserved in perpetuity. Electronic scanners and cameras today are capable of producing nearly perfect facsimiles of old photographs, allowing identical copies of an image to be stored in the digital realm. While electronic equipment becomes obsolete from time to time, data from the old machines is usually transferred to the new devices without loss.
One of the most profound benefits of digitalizing old photographs is the ability to place them online, thus allowing people from around the world to view the art from their computers. Admittedly, their experience of the photo will differ based on the quality of their machine, internet connection, and other factors, but the internet and digitalization of art offers an opportunity for people to view works that they might not have been able to see otherwise. (Baetens 4).
While some critics, curators, and art historians argue that digitizing art cheapens the way we experience art, thus cheapening art itself, the positives outweigh the benefits. Despite numerous safety features in galleries and museums, a work of art is simply a physical object that can be stolen, lost, or damaged. A digital copy backed up in several locations is virtually impossible to be destroyed. If we truly want to preserve art for later generations to experience, digitizing is certainly a method to consider.Tweet It. Share It.
See more Digital Photography →
Nice dark business theme from WooThemesTweet It. Share It.
See more Wordpress →