Saturday, April 4, 2015

About Wordpress

In 2003 wordpress has been start with a single bit code to enhance the typography of all writing and with not much user and you can count  on your fingers and toes. after that wordpress grown to a biggest self hosted blogging tool in the world wide that millions of website is used and tens of millions of people every day.
All things of document was created by and for the community that is an open source software code, that means there are hundreds of user around the word working on wordpress. it also free to use for anything from your without paying anyone a license fee and freedoms.
this software started as just a blogging system but used as a full CMS ( Content Management System) and so much thousands of themes, widgets and plugins.
you can download and install a software of wordpress on www.wordpress.org.

Relate post: Create post object

Friday, April 3, 2015

Create post object

In the WP_Post class is used to contain a lot of post objects stored by the database and is returned by functions like: get_post.
this is my example create post or page object:

<?php
// Create post object
$my_post = array(
  'post_title'    => 'My post',
  'post_content'  => 'This is my post.',
  'post_status'   => 'publish',
  'post_author'   => 1,
  'post_category' => array(8,39)
);

// Insert the post into the database
wp_insert_post( $my_post );


$post_id = wp_insert_post( $post, $wp_error );
//now you can use $post_id within add_post_meta or update_post_meta

$defaults = array(
  'post_status'           => 'draft',
  'post_type'             => 'post',
  'post_author'           => $user_ID,
  'ping_status'           => get_option('default_ping_status'),
  'post_parent'           => 0,
  'menu_order'            => 0,
  'to_ping'               =>  '',
  'pinged'                => '',
  'post_password'         => '',
  'guid'                  => '',
  'post_content_filtered' => '',
  'post_excerpt'          => '',
  'import_id'             => 0,
  'post_category' => array(5,7)
);

?>
<?php
// Add or Update the meta field in the database.
if ( ! update_post_meta (7, 'fruit', 'banana') ) {
add_post_meta(7, 'fruit', 'banana', true );
};
?>
<?php add_post_meta( 68, 'my_key', '47' ); ?>
<?php add_post_meta( 68, 'my_key', '682' ); ?>
<?php add_post_meta( 68, 'my_key', 'The quick, brown fox jumped over the lazy dog.' ); ?>

<?php
echo'<br>Insert post:'.get_option('default_ping_status');
$defaults = array(
  'post_title'      => 'Post Title',
  'post_content'  => 'This is post content',
  'post_status'           => 'publish',
  'post_type'             => 'listing',
  'post_author'           => 1,
  'ping_status'           => get_option('default_ping_status'),
  'post_parent'           => 0,
  'menu_order'            => 0,
  'to_ping'               =>  '',
  'pinged'                => '',
  'post_password'         => '',
  'guid'                  => '',
  'post_content_filtered' => '',
  'post_excerpt'          => '',
  'import_id'             => 0,
  'post_category' => array(5,7)
);
//$post_id = wp_insert_post( $defaults);
if($post_id){
echo'<br>inserted';
if ( ! update_post_meta ($post_id, 'fruit', 'banana') ) {
add_post_meta($post_id, 'fruit', 'banana', true );
echo'<br>mata inserted';
}
}
echo'<br>';
$catsql = "select * from $wpdb->terms c,$wpdb->term_taxonomy tt  where tt.term_id=c.term_id and tt.taxonomy='listingcategory' and c.name != 'Uncategorized' and c.name != 'Blog'  $substr order by c.name";
echo $catsql;
$term_taxonomy_ids = wp_set_object_terms(386, 5, 'listingcategory' );
 ** Do you know about PHP code Free and open source software (FOSS)?

Free and open-source software (FOSS)

Free and open-source software (FOSS) a type of software that you can be classified as both open-source software and free software.That is everyone is use, copy, study and change the software in other way with free licensed and the source code is openly shared so that they are encouraged to voluntarily improve the design of the it.In contrast to proprietary software, where the software is under restrictive copyright and the source code is usually hidden from the users.
The income of using Free and open source can include decreasing software price, increasing  stability (especially in regard tomalware) and security, protecting privacy, and make easy to users more control over their own hardware.Open source OS like Linux and descendents of BSD are widely utilized Nowadays, powering millions of desktops, servers, smartphones (e.g.Android), and other devices.  Open-source licenses and Free software licenses are used by many software packages.
 *** Working With Wordpress Administrator side

Working With Wordpress Administrator side

Atfer visit your domain name like www.yourdomainname.com/wp-admin and enter user and password you will see Administrator side of wordpress cms.
The Administration page allow you to control features many tool of your WordPress installation. that are: the toolbar (header of site), the navigation tool, the work area and footer of site
The Adminstrator sidebar, the Toolbar has links to various any functions of administration, and is showed at top of Administration side. All Toolbar tools expand (flyout) after you hovered over to display more information.
Left part of the site is the (main navigation) that is a menu showing each functions of the administrative you can process it. At the bottom of that side is a (Collapse menu) button that that is a menu into a set of icons, or to expands to list them by major function.Those function are Posts, the sub-menu expands (fly-out) when hovered over, and expands fully if an item clicked.
In the middle of the screen is the large area we call the work area. It showed  the specific information relating to a particular navigation choice, such as adding a new post, is presented and collected.
End, The footer, it stay at the bottom of  Administration site in light shading, are links to WordPress, thanking you for using it, with the current version of WordPress that you have used.

Toolbar of wordpress administration screens

On the top of administration screen wordpress enable and show you a bar call Toolbar that it consists of the info of this CMS as quick access to other function like poset, and new page, edit page or post, links, and new plugin, user information, show you the comments, alerts new version of wordpress plugings, themes and make you easy switch from admin site to home page site. you can enable or disable it by this way: make sour you stay log on and go to administration screen, after go to user and than your profile link of left menu and find Toolbar and "Check" Show Toolbar when viewing site.
finally update your profile.

WP_Admin_Bar is class of CMS WordPress use for generating the Toolbar when you signed in you can lines the top of WordPress sites. It can be hooked and modified to remove or add options that appear in the administration  bar.

How to using this class:

It is used internally by WP to create $wp_admin_bar that is a object of it . Most modifications to WordPress toolbar will generally be done by modifying the $wp_admin_bar object that is passed through the admin_bar_menu hook.
Example:

add_action( 'admin_bar_menu', 'modify_admin_bar' );

function modify_admin_bar( $wp_admin_bar ){
  // you put you option to show on bar hare ..... 
}

Array Session

Array Session

What is an Array?

Array is a variable that special , that can hold more than one or more value at a the same time.

If you have a the list of somethings (a list of animal names, for example), storing the animal in single variables could look like this:
$animal1 = "cow";
$anima2 = "cat";
$anima3 = "dog";

 See the Session functions of documentation for more information on how to this is used. An associative array is containing session variables available to the current script.

This Code testing Array Session in php.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php session_start(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
if(isset($_POST['btnset'])){
$data_form[] = array(
"fname"  => $_POST['fname'],
"lname"  => $_POST['lname'],
"sex"  => $_POST['sex'],
"age"  => $_POST['age'],
"phone"  => $_POST['phone'],
"address"  => $_POST['address']
);
$_SESSION['form'] = $data_form;
}else if(isset($_POST['btnclear'])){
if(isset($_SESSION['form'])){
unset($_SESSION['form']);
}
}
function form_val(){
if(isset($_SESSION['form'])){
$usercart=$_SESSION['form'];
/*foreach ($usercart[0] as $key => $item)
        {
echo'<br>'.$usercart[0][$key];
}*/
return $usercart;
}else{
return false;
}
}
?>
<form method="post">
<?php $val=form_val(); ?>
fname<input type="text" name="fname" value="<?php echo $val[0]['fname'];?>"  />
lname<input type="text" name="lname" value="<?php echo $val[0]['lname'];?>" />
sex<input type="text" name="sex" value="<?php echo $val[0]['sex'];?>" />
age<input type="text" name="age" value="<?php echo $val[0]['sex'];?>" />
phone<input type="text" name="phone" value="<?php echo $val[0]['phone'];?>" />
address<input type="text" name="address" value="<?php echo $val[0]['address'];?>" />
<input type="submit" value="Set" name="btnset" />
</form>
<form method="post">
<input type="submit" value="Clear" name="btnclear" />
</form>
<form method="post">
<input type="submit" value="Other" name="ss" />
</form>



</body>
</html>



**** how to detect browser in php code

Detect browser in php code

This is PHP code to testing browser which is browser you are using or user access to:Firefox/Iceweasel, Opera, Mozilla (and other Gecko engine browsers) to MSIE, Netscape,Galeon, K-Meleon, Lynx, Safari/Chrome (and other WebKit engine browsers), KHTML / Konqueror, and Mac IE browsers like IE 5.1 and 5.2. This php code let's test together: 'Internet Explorer', '/firefox/i' => 'Firefox', '/safari/i' => 'Safari', '/chrome/i' => 'Chrome', '/opera/i' => 'Opera', '/netscape/i' => 'Netscape', '/maxthon/i' => 'Maxthon', '/konqueror/i' => 'Konqueror', '/mobile/i' => 'Handheld Browser' ); foreach ($browser_array as $regex => $value) { if (preg_match($regex, $user_agent)) { $browser = $value; } } return $browser; } function getOS() { global $user_agent; $os_platform = "Unknown OS Platform"; $os_array = array( '/windows nt 6.2/i' => 'Windows 8', '/windows nt 6.1/i' => 'Windows 7', '/windows nt 6.0/i' => 'Windows Vista', '/windows nt 5.2/i' => 'Windows Server 2003/XP x64', '/windows nt 5.1/i' => 'Windows XP', '/windows xp/i' => 'Windows XP', '/windows nt 5.0/i' => 'Windows 2000', '/windows me/i' => 'Windows ME', '/win98/i' => 'Windows 98', '/win95/i' => 'Windows 95', '/win16/i' => 'Windows 3.11', '/macintosh|mac os x/i' => 'Mac OS X', '/mac_powerpc/i' => 'Mac OS 9', '/linux/i' => 'Linux', '/ubuntu/i' => 'Ubuntu', '/iphone/i' => 'iPhone', '/ipod/i' => 'iPod', '/ipad/i' => 'iPad', '/android/i' => 'Android', '/blackberry/i' => 'BlackBerry', '/webos/i' => 'Mobile' ); foreach ($os_array as $regex => $value) { if (preg_match($regex, $user_agent)) { $os_platform = $value; } } return $os_platform; } $user_os = getOS(); $user_browser = getBrowser(); ?>



***** In WordPress  Create Slug and post page object

Create Slug and post page object


<?php
function create_slug($string){
   //$slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string);
   $slug1=preg_replace('/[^a-z0-9_-]+/i', ' ', trim($string));
   $slug=preg_replace('/[^a-z0-9_-]+/i', '-', trim($slug1));
   echo $slug;
   $ss=explode('-',$slug);
   $slug='';
   if($ss[count($ss)-1]!=''){
  for($i=0;$i<=count($ss)-2;$i++){
  if($ss[$i]!=''){
  $slug.=$ss[$i].'-';
  }
  }
  $slug.=$ss[count($ss)-1];
   }else{
  for($i=0;$i<=count($ss)-3;$i++){
  if($ss[$i]!=''){
  $slug.=$ss[$i].'-';
  }
  }
  $slug.=$ss[count($ss)-2];
   }
   
   echo'<br>'.$slug;
   //return $slug;
}
//returns 'does-this-thing-work-or-not'
function mycreate_page($title){
// Create post object
$my_post = array(
  'post_title'    => $title,
  'post_content'  => 'This is my post.',
  'post_status'   => 'publish',
  'post_author'   => 1,
  'post_category' => array(2),
  //'post_parent'   => 23, 
  'post_type'     => 'page'
);

// Insert the post into the database
//echo the_time('Y-m-d H:i:s');
//Y-m-d g:i:s - 2010/11/06 12:50:48 AM 
  wp_insert_post( $my_post );
}
?>


*** Wordpress: Working with wordpress Dashboard

Working with wordpress Dashboard

You can quick access you website content and other section of the community by the dashboard home page of wordpress admin side. that presents informaiton in blocks called modules and in general it was separate 5 modules on this.
1. At a glance:
This module provides a information number of pages, comments and posts, Pages your website. all the types of content are displayed in the form of when clicked upon, a link and, direct you to the specific area to manage that content.
2. Activity:
Display the upcoming recently published posts, scheduled posts, and the new user comments on posts and allows you to modify it
This module is list all of detail of new comments on you site. you can edit because it listed a link to related post title by put your mouse over each comment and choose a menu approve or unapproved, edite comment, reply to comment author, spam or delete the comment.
3. Quick Draft:
you can quickly and easily write a new draft on This module because it allows you and you can also input a post title, enter the post content, upload/insert media add tags, and click the Publish button or click the Save Draft button.
4. Wordpress News:
On wordpress news module it lists the recent news from the official WordPress.
that you can find what the WordPress developers have been up to recently and keep up with the latest WordPress related news. In addition to software developments, such as version announcements and security notices, news about the WordPress community in general is periodically posted.
5. Welcome:
When setting up a new site this module will show links for some of the most common tasks.



*** Wordpress Custom Field to a Post

Wordpress Custom Field to a Post

CMS WordPress you can assign custom field to a post.
Meta-data is handled with key(is the name of the meta-data element) and value(is the information that will show meta-data list on each each post that is associated with) pairs. In a post you can use Keys more than once.
Function:
Add: add_post_meta();
Update: update_post_meta();
Delete: delete_post_meta();
Get Custom Valuse
- get_post_custom();
- get_post_custom_values();
- get_post_custom_keys()
Template Tags:
- the_mata();
- get_post_meta();
Using Custom Field Tool:
On the page and post edit admin site custom field are show by default. and you can create a new by click add new custom field enter name , key, value.

Display Custom Fields:
after add custom field to a post now you can show the custom field for each post or page by using function the_meta();  and other functions.
ex:
<?php the_meta(); ?>
<?php get_post_meta($post_id, $key, $single); ?>







*** Send mail Wrodpress function

Send mail Wrodpress function

"WordPress" is the default sender name in this wordpress and the default sender email address is wordpress@yoursite.com. These may be overridden by including a header.

Code:
<?php
function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) {
$user = new WP_User( $user_id );
$email = $user->user_email;
$name = $user->user_login;
$message = sprintf(__("Your new WordPress site has been successfully set up at:

%1\$s

You can log in to the administrator account with the following information:

Username: %2\$s
Password: %3\$s

We hope you enjoy your new site. Thanks!

--The WordPress Team
http://wordpress.org/
"), $blog_url, $name, $password);

@wp_mail($email, __('New WordPress Site'), $message);
}
?>

Mail Form:
<?php
$client_message = '
[SUBJECT-STR]Registration Email[SUBJECT-END]<p>Dear [#user_name#],</p>
<p>You can log in with the following information:</p>
<p>Username: [#user_login#]</p>
<p>Password: [#user_password#]</p>
<p>You can login from $store_login_url or the URL is : [#site_login_url_link#].</p>
<p>We hope you enjoy. Thanks!</p>
<p>[#site_name#]</p>
';
echo $client_message;
?>


*** WordPress Plugin

WordPress Plugin

What is WordPress Plugin?

WordPress Plugin is a software written in PHP language it use one or more functions, that developer use a specific set of services or features to the CMS WordPress, which can be seamlessly integrated with the methods provided and weblog using access points by the WordPress Plugin Application Program Interface (API).

This CMS Plugins allow you to easily customize, modify, and enhance any WordPress website. stand for changing the core software WordPress is estimated you can rather create a plugin to extend it. 

When build a plugin of WordPress make sure that you create it in standards step by step before uphold to when doing so. now start with me listed outline some key to know when creating wordpress plugin by yourself:

1. Plugin Name
this is a the first time to when you making a plugin you will need it name you will want to do a search in wordpress plugin repository.

2. Plugin Files
plugin must lives withing it own folder that located in plugins inside in wordpress directory and have at least one of php file that is named after the plugin if  you named is upload-plug your php file is name upload-plug.php. 
You can split it in multiple files also such as JS, images and CSS within installed plugins.

3. Readme File
In order to make it easy for other develpers or simple user you will create create readme files that it show about this plugin somethings offer change logs which indicate previous update and maintenance announcement to other developer and users.

4. Home Page
If you want to share your plugin with the WordPress community, having a dedicated home page would be wise. on this page user can be used as a place to  report bugs, download the plugin and announce updates to your users.

Standard Plugin File
In a plugin must have some of meta information that tells WordPress what it is, how to handle it in your website. It can be installed, activated, deleted and inactivated. 
example introduction :
<?php
/**
* Plugin Name: Replace with you plugin name hear.
* Plugin URI: http://yourwebsite.com/
* Description: A tell in detail description about your wordpress plugin.
* Version: 1.0 
* Author: Enter your Plugin Author's Name
* Author URI: Author's website
* License: A "Slug" license name e.g. GPL12
*/


****** How to create a WordPress theme?

How to create a WordPress theme?

How to create a WordPress theme?

Before building a WordPress theme you just crate a folder in WordPress directory wp-content/themes in your website.example you named my_gallery the name of this folder should the same to the name of the theme you want to create.
Next, you should decide which the layout of your website will be crate. In general a WordPress theme layout is consist of files sidebar, a header, content area and a footer and all of this file are connect to a file is index.php 
general files:
  • header.php
  • index.php 
  • sidebar.php
  • footer.php
  • style.css 
 all of this file connected to index file by using php function:
<?php 
get_header();  //  connect to header.php
get_sidebar(); // connect to sidebar.php
get_footer(); // connect to footer.php
?>
Connection of sytle.css in consisit in file header.php
<html>
<head>
 <title>Tutorial theme</title>
 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
</head>
<body>
<div id="wrapper">
<div id="header">
 <h1>HEADER</h1>
</div>
*style.css is a file not only modify css but it also list information of theme:

/*  
Theme Name:    RealEstate
Theme URI:     http://templatic.com/
Description:   Developed by Templatic team.
Version:       2.3.18
Author:        Templatic.com
Author URI:    http://templatic.com/

*/

/*             IMPORTANT NOTE!
               If you wish to make custom changes to your theme, DO NOT EDIT THIS FILE. Instead, use the custom.css template
               to define custom styles. This way, you will still be able to take advantage of future upgrades to the theme
               without worrying about overwriting your style changes.
*/
 
 
 
 
 
 
 
 
******** Add Gadget on Template Designer Layout of Google blogger

Add Gadget on Template Designer Layout of Google blogger

Add, remove, edit gadgets on your blog. Click and drag to rearrange gadgets. To change columns and widths, use the Template Designer.
At blogger of Google, gadgets are very simple Javascript and Html applications that you can be embedded in other apps and web pages, including Blogger.
When you create a gadget for Blogger of google it will available for millions of active google blog. it will surface in Blogger.com that you Just submit your gadget to us, and  where users can easily  configure, browse, and add your gadget to their blog's sidebar.

So you know Blogger is a great distribution platform for your gadget, what are you waiting for? Get started building gadgets for Blogger now!

this my shared code for Add Gadget on Template Designer Layout of Google blogger.
let's test with this code:

<div style='border:solid thin red;'>
<b:section  id='ratha' preferred='yes'/>
</div>




********** what is javascript?

What is JavaScript?

Actually, A lots of Web developers and you will want to know what are difference between Jquery and java script. J is a little stand at beginning of they and both are actually the same thing. jquery is use as a package of JavaScript libraries so it designed specifically to simplify HTML document  animation, event handling, traversing, and Ajax interactions. Other one you know how to use JavaScript, you may be found that jQuery meets most of your needs and needed much coding than conventional JavaScript is require.

What is JavaScript?
This script is a language is designed for use with a web browser. It is used for interface interactions like slideshows or other components are typically done using JavaScript. 
It has many other uses as well. Google email, game development, server side programming, even creating desktop applications and many of the additional of features are power of JavaScript. so it so a popular solution are created using JavaScript.
Many year ago, It was a popular scripting language but web developers were not entirely sold on the idea of using it simply because every browser tools would render JavaScript content in a different manner. Now the new technologies standards are force all web browsers to implement JavaScript, it frustration trying to debug code and saving developers time for a specific client side. And now dynamic content is a hot topic in developing web, that constantly adapts and change to specific users such as JavaScript can use to determine if a website visitor use mobile or computer
What is jquery?

What is jQuery?

At first, jQuery was developed, many web developers was created their own custom frameworks using the JavaScript. This allowed them to work about specific bugs with no debugging common features wasting time. So the group of web developers was creating libraries of JavaScript and that were free and open source to use.
JQuery language is simply a specific library of JavaScript language code. There are many other JavaScript code libraries but the most popular is jQuery because it is so extremely powerful and easy to use.
During many group of web developers confuse jQuery and JavaScript as two separate programming languages it is important for you to realize that they are both JavaScript. The difference between JavaScript and Jquery is that jQuery has been optimized to perform many common scripting functions and it does so during using fewer lines of code.


***** Difference between a Template and a Theme in WordPress CMS

Difference between a Template and a Theme in WordPress CMS

A lot of user use WordPress they think Template and Theme are the same meaning. In Google blogger themes is called template , In Drupal call template too and in WordPress are called themes. it so complicate word you might also occasionally see term. Theme Framework. Confused? lets see.
Themes are consist all something control your website like  page template, Theme Frameworks.

Page Template

In WordPress it is type of tool that allows user to change the look, content or layout of a single page. in a theme can be alot of template mean have alot of layout of page that user can change by choose what they like. The type of page templates are difference from one theme to another.

Theme Frameworks

Frameworks of themes are similar to themes but it allow a webmaster tools to customiz website on off globally and on a per page from CMS and often with no having know or use any CSS or HTML language.



****** Learn more about google adsense

How to Get Google Adsense Approval within a few day

It no problem that you want get Google Adsense approve easy in a few day. you may be wondering about this problem that Google not approve you request and you might have difficult to do again and again. A lots of reasons that Google Adsense not approve request. Before you applying to Google adsesnse you should learn some keys, which are the simple way or the basic requirements before your applying.
Let's start do together step by step on your website with a few important and simple ways before applying Google Adsense:
1.Number of Posts and Pages:
For requirement a mount of post in your website should at less 40 with quality and minimum of page is 30.   

2.Google Analytics Code:
Google Analytic is also important  for your website for Google adsense approval Google analystic it easy way you just login to google account and Create account and than put your website url and following by simple way in order get Tracking ID and put it in to your website.  

3.Using Google Webmasters Tool:
Login to Google account  in order use google webmaster tools and Add your site to it. After you login to Gmail you can do it by Add a Site and than verify it and do next step by step of webmaster guide.

4.Bing Webmaster Verification Page:
Bing Webmaster Tools  is very the same Google Webmaster Tools that follow you to verify your ownership of url website and submit sitemap page.

5.Robots.txt
In your website you should need to create robots.txt file. it is type of file will tell the search engines index or not.

6.Alexa Rank:
You website should have a good enough or fairly good Alexa ranking to get adsense approved. requirement your site should rankings are at least under 400k.

7.Additional Pages:
About page, Privacy Policy, DMCA page or Term of  your page is also needed to tell user about your mentions or what it your talking about.

8.Traffic or Visitor: 
A mount of user visit your site should more than 50 in a day. don't submit when your site no traffic.




***  Start build the WordPress plugin by yourself now

How to building your own WordPress plugin

This post will tell you steps to building your own WordPress plugin.
Today CMS WordPress is a very popular platform or the most popular blogging. It use plugin to extended it ability to perform a lot of functions with a very successful. WordPress plugin is so easy to build just create a main file structure and use CMS provided any function and event hooks to drive your tools and it is use PHP to make pretty accessible.
Now let's start together with a simple plugin:

+ At first is create a folder and named it: limon-font-type
+ And i Create a file name : limon-font-type.php
+ In this file limon-font-type.php it start write code step by step:

<?php
add_action('admin_menu', 'myfirstplugin_admin_actions');
function myfirstplugin_admin_actions(){
    add_options_page('Limon font type', 'Limon font type', 'manage_options', __FILE__, 'myfirstplugin_admin');
}
function myfirstplugin_admin(){
    ?>
    <div class="wrap">
    <p> How to use: please copy this shortcode to put where you want.</p>
    <p> Using ex: <b> &lt;font&gt;Text to display&lt;/font&gt;</b></p>
    <p>Vidoe:</p>
    <p><iframe width="560" height="315" src="//www.youtube.com/embed/rret" frameborder="0" allowfullscreen></iframe>
    </p>
    <p>Support: <br />- ratha089@gmail.com / Tel:070 969909 / <a href="http://www.esatra.com/">www.esatra.com</a> </p>
    <h4>Thank you for using my pluging</h4>
    <?php
}
function limonfonttypePluginLinks($links, $file)
{
    if ($file == basename(dirname(__FILE__)).'/'.basename(__FILE__) && function_exists("admin_url"))
    {
        //add settings page
        $manage_link = '<a href="'.admin_url('options-general.php?page=limon-font-type/limon-font-type.php').'">'.__('Settings').'</a>';
        array_unshift($links, $manage_link);
    }
    return $links;
}
add_filter('plugin_action_links', 'limonfonttypePluginLinks', 10, 2);
?>

++Get this testing pluging:limon-font-type.zip

Framework and CMS

Something Difference between a Framework and a CMS? And Which One for us use for certain requirements?

A Content Management System ( CMS ) is basic on an application built ( the most on top of a framework ) it have a lots of tools and make you easy to organize insert data and maintain and display informaition dynamically to a website. the popular CMS today are WordPress, Joomla, Drupal etc.

A Php framework is very different in that it is far more a generic product does not have a BRAND NAME. php framework allow you to standard solutions to typical problems, it help you to make for an ecommerce website or online shop that can build the strong functionality for a user  sign in, login including session handling, system orders , a shopping cart....
the most php framework today are: Laravel, Phalcon, Symfony 2, Yii Framework, CodeIgniter,...

Thursday, April 2, 2015

what is difference between wordpress and joomla

Today we have a lots of difference ways to build a website. during the year in 1997 to 2006 HTML , Css or Flash is very popular in order to create a website.
about several year later a lots of something are changed we can use can use framework or content management system to upgrade or dominate game and HTML site, especially CMS. because it cheaper, faster, easier.
WordPress is the most popular content management system in the world.  to create a very nice webiste and blog. nowadays there are 40% of website use CMS WordPress. the why to use it:
1. Easy to Install
2. Customizable
3. Free
4. Community Support

Joomla also popular content menagement system after Wordpress. It is very powerful CMS, which can process smoothly on web servers with no any problems and without require the same level of technical experience. it allow to build website with a powerful and applications. Other reasons why we use this CMS like:
1. Social Networking
2. Commerce Sites
3. Not too Technical
4. Help Portal
5. Free