الانتقال السريع

شقق للبيع , سيارت للبيع , محلات للاجار ,شقق للاجار!, ارقام تلفونات, ارقام سيارات مميزه ,ملابس للبيع محلات للبيع , !مجوهرات وضائف

السبت، 28 أبريل 2012

أبوظبي تستضيف معرض صنع في كوريا 2012 مايو المقبل


أبوظبي تستضيف معرض صنع في كوريا 2012 مايو المقبل

أبوظبي تستضيف معرض «صنع في كوريا 2012» مايو المقبل
عند زيارتكم لمركز أبوظبى الوطنى للمعارض لحضور أحد المعارض فأنتم محظوظون جداً لأنكم تقومون بزيارة أحدث مركز للمعارض في العالم .
مركز أبوظبى الوطنى للمعارض يوفر للزائرين مستويات لا مثيل لها من الخدمة والراحة حيث يهدف المركز إلى أن يجعل من زيارتكم تجربة سارة وممتعة منذ لحظة وصولكم وحتى مغادرتكم.
تستضيف إمارة أبوظبي فعاليات الدورة الأولى من معرض “صنع في كوريا 2012” المقرر انعقادها في الفترة من 21 إلى 23 مايو المقبل في مركز أبوظبي الوطني للمعارض. وتوقعت شركة “آيديال آيديا لإدارة المعارض والمناسبات” المنظمة للحدث أن يستقطب المعرض خلال أيامه الثلاثة أكثر من 25 ألف زائر. يشارك في المعرض 300 شركة من أبرز العارضين الكوريينفي قطاعات السيارات والهندسة والمعادن والضيافة والمنسوجات والكهرباء والكيماويات والمطاط والمواد البلاستيكية والطاقة والرعاية الصحية وتكنولوجيا المعلومات والاتصالات والإعلام والبناء والتشييد والأثاث والأزياء والرياضة. وقال فيصل الرئيسي الرئيس التنفيذي للشركة: “شهدت العلاقات الثنائية بين الإمارات وكوريا الجنوبية تطورا ملحوظا في الآونة الأخيرة، في ضوء سعي البلدين المتواصل إلى فتح آفاق جديدة للاستثمار وتحقيق عملية النمو والتنمية المتبادلة”. وأضاف بلغ حجم التبادل التجاري بين البلدين خلال العام الماضي نحو 84,4 مليار درهم “23 مليار دولار”، الأمر الذي يعزز مكانة كوريا الجنوبية كواحدة من أبرز الشركاء التجاريين الرئيسيين للدولة ويفتح فرصا أكثر لتعزيز أطر التعاون الاجتماعي والاقتصادي بينهما. وزاد قائلا “يوفر معرض “صنع في كوريا” منصة تفاعلية متخصصة لتفعيل التواصل بين رواد قطاع الأعمال وتلبية الاحتياجات الخاصة بالمستثمرين ورجال الأعمال وتطوير العلاقات بين البلدين، إضافة إلى تعزيز أواصر التفاهم الثقافي”. وتقام على هامش معرض “صنع في كوريا” الذي يمتد على مساحة عرض تبلغ 14 ألف متر مربع، سلسلة من المؤتمرات التي تستضيف مجموعة من المتحدثين الدوليين البارزين من كلا البلدين.
وذكر أن حجم عقود الشركات الكورية في الإمارات بلغ نحو 91,7 مليار درهم “25 مليار دولار” بنهاية العام الماضي.

المصدر : جريدة الاتحاد الإماراتية
موقع تدري
موقع أبوظبي للمعارض

الجمعة، 13 أبريل 2012

How to Build a Custom WordPress


How to Build a Custom WordPress Theme from Scratch

Read the article
Free Website Builder
If you’re confident with your CSS and HTML, it’s not hard at all to step up to the challenge of building a custom WordPress theme. This overview shows the process of how my latest custom WordPress theme was built from design concept through to completed theme. See how the static design is split up into the various WordPress theme files, and discover how the simple PHP snippets can add that dynamic functionality of a blog.

The design concept

View the Sticky WordPress theme
The theme I'm working on is named Sticky. The main feature of the design is its sticky sidebar (hence the name Sticky!), which stays in place while the main content scrolls past it. There's also a few fancy effects such as the shadows and inset text appearance that I'll be building with the help of CSS3.
Preview of the Sticky WordPress theme design
Preview of the Sticky WordPress theme design
With the post focusing on the production of the theme, I won't go into too many details on how the design was built, but you can see from the Photoshop previews that it uses a 16 column grid with 24px baseline; a fairly muted colour palette of a beige and grey, with a dark red as a highlighting colour for links; typography is set to serif font throughout for that touch of class!; and the whole design uses very subtle textures to give a more realistic and tactile feel.

Anatomy of a WordPress theme

Before getting stuck into the build process, it's important to know how WordPress themes work. If you've looked at any prebuilt theme, you'll notice that it's all contained in a folder, and there's around 12 core files. Some themes, including the Default WordPress theme, include more files which allow extra customisation, but aren't mandatory additions. Here's an overview of the main files you'll be working with:
  • header.php - Contains everything you'd want to appear at the top of your site.
  • index.php - The core file that loads your theme, also acts as the homepage (unless you set your blog to display a static page).
  • sidebar.php - Contains everything you'd want to appear in a sidebar.
  • footer.php - Contains everything you'd want to appear at the bottom of your site.
  • archive.php - The template file used when viewing categories, dates, posts by author, etc.
  • single.php - The template file that's used when viewing an individual post.
  • comments.php - Called at the bottom of the single.php file to enable the comments section.
  • page.php - Similar to single.php, but used for WordPress pages.
  • search.php - The template file used to display search results.
  • 404.php - The template file that displays when a 404 error occurs.
  • style.css - All the styling for your theme goes here.
  • functions.php - A file that can be used to configure the WordPress core, without editing core files.
Each of these files then contains a series of PHP template tags. These tags tell WordPress where to insert the dynamic content. A good example is the <?php the_title(); ?> tag, which pulls in the post title and displays it in your theme:
There's stacks of template tags available, and more often than not there will be one that does exactly what you want - It's just a case of finding it in theWordPress Codex. I've seen many themes that include some complicated PHP coding to achieve a function that's already available as a simple template tag, so remember to browse the WordPress Codex whenever you're stuck!

The basic HTML and CSS

Seeing as a WordPress Theme is basically made up of HTML and CSS, but with a few extra PHP tags inserted here and there, it's important to build your website concept as you would a good old static site. I tend to build the complete page with dummy content, then do my browser testing before starting work on the theme. Here's an overview of my HTML code:
Overview of the HTML code

Building the WordPress theme

Now the actual design is taking shape in code form, it's time to start converting the static HTML and CSS into a WordPress theme. Begin by creating a folder for your theme and creating the php files above (header.php, etc). Sometimes it's easier to download the WordPress application, then duplicate the Default theme, and delete out any extra fluff that comes with it. Either way, you'll want all your PHP files in place, and all your images and Javascript files copied into your theme folder.

Configuring the stylesheet

All the details of a WordPress theme are contained within the stylesheet. At the top of your style.css add the following code, then amend the details to suit.
/*
Theme Name: Sticky
Theme URI: http://www.blog.spoongraphics.co.uk
Description: Sticky WordPress theme
Version: 1
Author: Chris Spooner
Author URI: http://www.spoongraphics.co.uk
*/
Also remember to ensure that the paths to any background images are correct in your CSS properties.

Populating the header

Open up your header.php file, and paste in the head section from your concept HTML file. Then we need to go in and replace certain elements with the correct WordPress template tags to ensure it all works correctly. First we can strip out the title and insert some WordPress template tags. bsg_title(); will display the title of the page, which is followed by bloginfo('name'), which will place the blog's name (set in the admin panel).
Overview of the header.php code
bloginfo('stylesheet_url'); is the snippet used to call the stylesheet. This replaces the manual path we created in the concept. Other files, such as Javascript can be called using thebloginfo('template_url'); tag. This renders the path to the theme folder in HTML.
If you would like your theme to make use of threaded comments, a snippet can be placed that will call the relevant Javascript files from the WordPress core. Then to before the closing </head> tag, add bsg_head();, this is where any additional head elements are placed by WordPress plugins etc.

Building the index

The next step is to flesh out the main body of the website. Open up the index.php file and paste in the main bulk of the concept HTML.
Overview of the index.php code
This is where all the meaty stuff begins! At the top we have theget_header(); and get_sidebar(); tags, these call the header.php and sidebar.php files and render the content according to where the tags appear. The WordPress loop is then used to check for content, if there's content available it's rendered onto the page. Within the loop we have various tags that display the post information, such as the_title();, andthe_permalink();. These are wrapped in the usual HTML elements according to their purpose, so the permalink is wrapped in an anchor tag and the title in a header 2 tag.
the_post_thumbnail(); is an optional addition, but this code simply makes use of the new post thumbnail feature in WordPress 2.9. Below this is where we want all the article content to appear, and it's simply inserted with thethe_content(''); tag.
In the meta section, there's various tags that can display specific information about the post, such as the time it was posted, the category it was posted in and how many comments it has. All of these can be called using a template tag such as the_time('F jS, Y');, each one also has certain parameters to further tailor the tag to suit. For instance the time can be changed to display in various formats. This is where the WordPress Codex comes in handy, to double check any parameter options you have.
Skipping down a little, the loop then displays an else tag, which will display if no posts are found, and the loop is finally closed with an endif. At the bottom we can use get_footer(); to call the rest of the page, which resides in the footer.php file.

Filling out the sidebar

The sidebar in my design is where the list of pages and categories are held. The sidebar.php file was called from the index using the get_sidebar();tag, so anything within this sidebar.php file is inserted into the theme in the right place.
Overview of the sidebar.php code
There's only three elements in my sidebar; the logo, the pages list and the categories list. The logo is wrapped in a h1 tag and uses the tags echo get_option('home'); and bloginfo('name'); to render the URL of the blog and the blog name in the appropriate places. The pages list is simply added using bsg_list_pages('title_li=' );, where the parameter stops the usual 'Pages' title from being added. The list of categories is also pretty similar, bsg_list_categories(); is used along with various parameters to customise the tag, such as show_count=0 to stop WordPress showing how many posts appear in each category,hide_empty=0 to show the category even if it doesn't have any posts, andexclude=1 to exclude the category with the ID of 1, which is the Uncategorized category.

Rounding off the footer

Overview of the footer.php code
The footer.php file is probably the most simple file for this theme. The only thing that goes in here is the bsg_footer(); tag just before the </body>, so that any extra info can be inserted in the correct place. In your theme you might display a list of popular posts, latest comments or a list of archives. All of these can be done using specific WordPress template tags.

Creating the archive

Overview of the archive.php code
The archive.php file is used to display a list of posts whenever they're viewed by category, by author, by tag etc. It's basically the same as the index file, but with the addition of a tag at the very top that renders a useful page title, so the user knows where they are. 'Browsing the Articles category' for instance.

Constructing the page and single view

Overview of the page.php code
WordPress is made up of posts and pages. Posts use the single.php template file, whereas pages use the page.php template file. They're pretty much the same, apart from that you tend to include the comments_template(); tag for posts, and not for pages.

Configuring the comments template

I usually copy the comments template from the Default theme, then make my changes because it includes some important lines of WordPress code.
Overview of the comments.php code
Once you have a comments file created, the same file can be used on pretty much all your future WordPress theme projects. The hard part is finding the CSS hooks to style up your comments. This is when the Firebug plugin for Firefox comes in handy. Otherwise, the comments file just has a few parameter options here and there that you might want to tweak. One that springs to mind is the avatar_size parameter, which tells WordPress how large to make the user's Gravatar image.

Finishing off the search and 404

This pretty much just leaves the search feature, which is basically a copy of the archive.php file. A handy additions might be the line Search results for <?php the_search_query() ?>, which will display the user's search term as a title. As for the 404 page, this is where your creativity comes into play. This template can be configured to display whatever error information you like, just remember to include the usual get_header();,get_footer(); tags where necessary

The final theme

View the Sticky WordPress theme
When all your theme files are complete, it's time to install a test and see how it all works. Filling out a temporary install with a couple of dummy posts can really help test drive a theme surface any errors. If you take a glance at the source code, you'll see how each of the template files has been inserted into the correct place, as well as how content has been dynamically generated by the template tags.

السبت، 17 مارس 2012

Facebook like PHP script


We’ve seen the facebook like button everywhere right? But the crappy thing is that you have to copy-and-paste the facebook iframe code that has to be then edited. Lets fix this right now.
I created a PHP function called facebook_like() which can be called anywhere where you want to show the facebook like button. For more info on the facebook like button go here :http://developers.facebook.com/docs/reference/plugins/like
COPY AND PASTE:
<?php
function facebook_like(){
function getAddress() //this function will show the URL you are on DONT EDIT
{
/*** check for https ***/
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
/*** return the full address ***/
return $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
}
$url =  getAddress(); //your full URL for page
return '<iframe src="http://www.facebook.com/plugins/like.php?href='.$url.'&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>';
}
?>
<h1>Hey do you like this page PHPacademy?</h1>
<?=facebook_like();?>

معلومات عن الفنانه احلام


اليوم جبت لكم معلومات ماتدخل العقل عن الفنانه احلام
http://www.arlike.com/1042
شوفو الرابط هذا وعطوني رايكم
اهم شي ركزو على الاسم الحقيقي
وموضوع الثروه

الجمعة، 16 مارس 2012

Improve Your Website's Google

A new movement to strengthen your site in search engines Google's search engine, www.google.com, uses a variety of methods to determine which pages are displayed first in the results. Their exact formula is a secret, but there are a few things you can do to improve your positioning. The term for this is Search Engine Optimization (SEO).These tips may not make your website the first one to appear in the list, but they just may help you move up a little.
Ignore spam and websites that offer to submit your website to hundreds of search engines. At best these are wastes of time or money and at worst they can actually hurt your ranking.
Keyword Phrases
Rather than focusing on a single word, try adding a few words to make a keyword phrase. You may want to read about effective Google searches to see how keyword phrases help with searches.If you were searching for your own website, what keyword phrase would you type into Google for each page? Would you look for super fast widgets? Would you look for cooking with widgets? It may be helpful to get a different perspective. Ask someone else to read your page and suggest what they think your keyword phrase might be. You can also check Google Trends to see if one phrase is starting to gain popularity.
Try to stick to one subject per page, and stick to one keyword phrase per page.That doesn't mean you should write stilted text or use odd phrases. Clear writing is both easier to search and easier to read.
Density
One of the things Google looks for when it catalogs pages is the density of the keyword usage. In other words, how often the keyword occurs. Use natural phrasing. Don't try to trick the search engine by repeating the same word over and over or making text "invisible." It doesn't work. In fact, some of that behavior even get your website banned. Read more: Google Dont's - Bad Tips and Dirty Tricks That Will Get You Banned.
Give a strong opening paragraph. Google may or may not search beyond the first 200 words or so of your web site, but it definitely looks at the first paragraph for keyword density.
You can check your keyword density with Google Toolbar.
Name Your Pages
Give your pages a descriptive name with the <title> tag. This is vital. Google displays search results as a link using the Web page's title. A link called 'untitled' isn't enticing, and nobody is going to click on it. When appropriate, use the page's keyword phrase in the title.
Learn more about why titles matter.
Link Early, Link Often
One of the biggest factors Google looks at is the hyperlink. Google looks at both links to and from your website.
Google looks at the words you use in links to help determine the content of your page. Use links within web pages as a way to emphasize keywords. Rather than saying, "click here to learn more about SEO" you should say: Read more about SEO (Search Engine Optimization).
Learn more about why hyperlink names matter to Google.
Links from other websites to your website are used to determine PageRank. You can use Google Toolbar to check your current PageRank.
You can improve your PageRank by exchanging text links with other relevant websites. Banner exchanges are not as effective. You can also improve your PageRank by making sure your website is listed with important directories. In other words, check the PageRank of the home page of the directory.
Submit Your Site to the Right Directories
Submit your website to the open directory project, if possible. Google considers this directory to be an important link. Be patient. A real human has to check your site, before it's listed in the Directory.
Submit your site to specialized directories. For instance, a work at home mother owned business (WAHM) should submit her site to WAHM directories. A site on butterflies should be sent to biology or entomology directories.
Don't get too submission happy, though. Google, in an effort to combat click fraud, often filters out websites linked from link farms, or pages with nothing but links to other websites. This is one reason why free services to register your website may hurt you. Stick to specialized directories and organizations. They're more likely to help and not hurt your rankings.
Social Networking
Social networking sites can be a good way to promote a site, but not all of them will affect your rank directly. Digg and Del.icio.us are social linking sites that could potentially have the most impact.Make Your Graphics Search Friendly
Keep the Flash to a minimum. People may enjoy reading Flash, but search engines tend to skip right over it. Google has gained some ability to read Flash, but it is still limited. If your menus are in Flash, they might as well be invisible.Consider making plain text links in addition to or instead of Flash.
Give your images <alt> tags. Not only does it make your website more accessible to the visually impaired, it also gives you another chance to place your keywords where Google can see them.
Good Design Is Popular Design
In the end, strong, well organized pages are pages that Google tends to rank higher. They're also pages that tend to become more popular, which means Google will rank them even higher. Keep good design in mind as you go, and much of the SEO will design itself.