
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web developement Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/web-developement/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/web-developement/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sat, 21 Oct 2017 06:35:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>web developement Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/web-developement/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>UK Top Cities with Highest Software Engineer Salary</title>
		<link>https://www.technig.com/top-cities-highest-software-engineer-salary-uk/</link>
					<comments>https://www.technig.com/top-cities-highest-software-engineer-salary-uk/#respond</comments>
		
		<dc:creator><![CDATA[Hujatulla Asghari]]></dc:creator>
		<pubDate>Sat, 21 Oct 2017 06:35:50 +0000</pubDate>
				<category><![CDATA[IT Career]]></category>
		<category><![CDATA[IT Jobs]]></category>
		<category><![CDATA[Job]]></category>
		<category><![CDATA[Job Tips]]></category>
		<category><![CDATA[Small Business Web Design]]></category>
		<category><![CDATA[Software Developer]]></category>
		<category><![CDATA[Software Engineer]]></category>
		<category><![CDATA[Software Engineer Salary]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Design Classes Online]]></category>
		<category><![CDATA[web developement]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[Web Developer Job]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=12455</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Top Cities with Highest Software Engineer Salary in UK" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK.jpg 840w, https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>If you are a software engineer living in the UK, you might be interested in salaries for software engineers. So, we have collected some reports about software developer salaries. Also, the top cities with highest software engineer salary in the UK. Besides, you will find out which cities are best for you. Further, the national [&#8230;]</p>
<p>The post <a href="https://www.technig.com/top-cities-highest-software-engineer-salary-uk/">UK Top Cities with Highest Software Engineer Salary</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Top Cities with Highest Software Engineer Salary in UK" decoding="async" srcset="https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK.jpg 840w, https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2017/10/Top-Cities-with-Highest-Software-Engineer-Salary-in-UK-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>If you are a software engineer living in the UK, you might be interested in salaries for software engineers. So, we have collected some reports about <a href="https://www.technig.com/tag/software-developer/" target="_blank" rel="noopener noreferrer">software developer</a> salaries. Also, the top cities with highest software engineer salary in the UK. Besides, you will find out which cities are best for you. Further, the national software engineer salary in the United Kingdom is between<strong> £26k</strong> to <strong> £61k. </strong>Now, let&#8217;s see which cities pay the highest.</p>
<h2>Top Cities with Highest Software Engineer Salary</h2>
<p>In a nutshell, here are the highest software engineer salary cities in the UK.</p>
<ul>
<li>London average software engineer salaries<strong> £41,700</strong></li>
<li>Oxford average software engineer salaries  <strong>£40,447</strong></li>
<li>Cambridge average software engineer salaries <strong>£38,766</strong></li>
<li>Southampton average software engineer salaries <strong>£35,386</strong></li>
<li>Birmingham average software engineer salaries<strong> £33,000 </strong></li>
<li>Sheffield average software engineer salaries  <strong>£31,447</strong></li>
<li>Manchester average software engineer salaries <strong>£29,969</strong></li>
</ul>
<p>Users on the UK submitted this information anonymously.</p>
<p><strong>Software Engineer Salaries in London</strong></p>
<p>London, the capital of England and the United Kingdom. Also, London is the most popular city in the European Union by population within city limits<span class="_xdb"> </span><span class="_Xbe kno-fv">8.788 million</span>. Besides, London is a leading global city in the arts, commerce, education, entertainment, fashion, finance, health-care and media. So, the average salary for a Software Engineer is <strong>£41,700</strong> in London, UK. Also, Google software engineers get the average of <strong>£63,169 </strong>per year. Besides, Facebook developers get the average of <strong>£66,788 </strong>per year. And Accenture software engineers get the average of <strong>£36,236 </strong>per year. Also, BBC software engineers get the average of  <strong>£42,434</strong> per year. It&#8217;s the highest software engineer salary city in the UK.</p>
<h4><strong>Software Engineer Salaries in Manchester</strong></h4>
<p>Manchester is a major city in the northwest of England with a rich industrial heritage. Also, Manchester is the third-largest metropolitan economy in the United Kingdom. Besides, In 2014, the Globalization and World Cities Research Network ranked Manchester as a beta world city. So, The national average Software Engineer salary is <strong>£37,469</strong>. Filter by location to see Software Engineer salaries in your area. Also, according to Payscale.com, senior software engineers in Manchester has<strong> £22,741 </strong>to <strong>£44,308</strong> salary per year. So, the average salaries going to be <strong>£29,969</strong>  per year.</p>
<p><strong>Software Engineer Salaries in Cambridge</strong></p>
<p>Cambridge is a city on the River Cam in eastern England. Also, home to the prestigious University of Cambridge. Besides, Cambridge is at the heart of the high-technology <a title="Silicon Fen" href="https://en.wikipedia.org/wiki/Silicon_Fen">Silicon Fen</a> with industries such as software and bioscience. Plus, home of many start-up companies born out of the university. So, the average salary for a Software Engineer in Cambridge is <strong>£27,617</strong> to <strong>£51,508</strong>. Further,<strong> </strong><strong>87%</strong> of the software engineers are male and <strong>13%</strong> are females. Also, pay by Experience for a Software Engineer has a positive trend. For instance, a software developer with less than 5 years should expect <strong>₤36,000</strong>. So, the average salaries for software engineers should be <strong>£38,766</strong>.</p>
<p><strong>Software Engineer Salaries in Southampton</strong></p>
<p>The port city on England’s south coast. Also, Southampton is home to the SeaCity Museum, with an interactive model of the Titanic. Besides, Southampton City Art Gallery specializes in modern British art. Plus, Significant employers in the city include Southampton City Council, the University of Southampton, Southampton Solent University, Southampton Airport, Ordnance Survey,  and BBC South. So, a Software Engineer in Southampton gets<strong> £35,386</strong> per year. Also, the average salary is between <strong>£25,083</strong> to <strong>£48,097</strong>.</p>
<h4><strong>Software Engineer Salaries in Oxford</strong></h4>
<p>Oxford, a city in central southern England. Also, the city is known worldwide as the home of the University of Oxford, the oldest university in the English-speaking world. Besides, with an estimated 2015 population of 168,270, it is the 52nd largest city in the United Kingdom. So, a Software Engineer in Oxford earns an average salary of  <strong>£40,447</strong>. Also, the average salaries are between<strong> £31k</strong> to <strong>£56k</strong>. Plus, 18% of the software engineers are female and the 82% male. Besides, a skill in <strong>C#</strong> Programming Language has high pay for this job.</p>
<p><strong>Software Engineer Salaries in Sheffield</strong></p>
<p>Sheffield is a city in the English county of South Yorkshire. Also, Sheffield is the third largest English district by population. Further, In the 19th century, Sheffield gained an international reputation for steel production. Also, the 21st century has seen extensive redevelopment in Sheffield along with other British cities. So, the average pay for a Software Engineer in Sheffield is <strong>£31,447</strong> per year. Also, for the first five to ten years in this position, salary increases modestly. People in this job generally don&#8217;t have more than 20 years&#8217; experience.</p>
<p><strong>Software Engineer Salaries in Birmingham</strong></p>
<p>the second-largest metropolitan economy in the United Kingdom. Also, It&#8217;s one of the most creative cities of modern innovations. Perhaps the most important invention in British history, the industrial steam engine, was invented in Birmingham. Besides, Birmingham&#8217;s sporting heritage can be felt worldwide. With the concept of the Football League and tennis both originating from the city.</p>
<p>So, the average salary for a Software Engineer is <strong>£33,000</strong> in Birmingham, UK. Also,  for the first five to ten years in this position, pay increases somewhat. But any additional experience does not have a big effect on pay. Additionally, software engineers here get the average of<strong> £21k</strong> to <strong>£46k</strong> per year.</p>
<h4>Conclusion</h4>
<p>All in all, software engineers have great salaries in the UK as well. We hope you the enjoy the highest software engineer salary articles. Also, we try to bring you other popular cities and counties. So, if you have any questions or suggestions, feel free to comment below. Besides, you can join our forum and ask questions anytime you want.</p>
<p>The post <a href="https://www.technig.com/top-cities-highest-software-engineer-salary-uk/">UK Top Cities with Highest Software Engineer Salary</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/top-cities-highest-software-engineer-salary-uk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">12455</post-id>	</item>
		<item>
		<title>How to Make a Complete Theme Options with Kirki Customizer?</title>
		<link>https://www.technig.com/complete-wordpress-theme-options-kirki-customizer/</link>
					<comments>https://www.technig.com/complete-wordpress-theme-options-kirki-customizer/#comments</comments>
		
		<dc:creator><![CDATA[Hujatulla Asghari]]></dc:creator>
		<pubDate>Mon, 16 May 2016 16:30:52 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[web developement]]></category>
		<category><![CDATA[WordPress Customizer]]></category>
		<category><![CDATA[WordPress Developer]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=7449</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"></div>
<p>In the previous tutorials we have learned how to configure and set some basic options with kirki customizer. In this tutorial we will learn how to create a complete WordPress theme options with this amazing customizer plugin. At the end of this tutorial, you will be able to customize or make your own complete WordPress [&#8230;]</p>
<p>The post <a href="https://www.technig.com/complete-wordpress-theme-options-kirki-customizer/">How to Make a Complete Theme Options with Kirki Customizer?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"></div><p>In the <a href="https://www.technig.com/wordpress-customizer-kirki-adding-options/">previous</a> tutorials we have learned how to configure and set some basic options with kirki customizer. In this tutorial we will learn how to create a complete WordPress theme options with this amazing customizer plugin. At the end of this tutorial, you will be able to customize or make your own complete WordPress theme options from scratch.</p>
<h2>Requirements</h2>
<p>This tutorial for WordPress theme developers, If you are not a developer, this tutorial is not for you. We assume you know the basic knowledge of working with WordPress kirki customizer, if you don&#8217;t, so please read the <a href="https://www.technig.com/use-kirki-wordpress-theme-customizer/">previous </a>articles and introduction tutorials. Than come back and start creating a complete WordPress theme options. We will not go through installation and configuration of this plugin because we already did those things in previous articles. If you faced any problem, check the <a href="https://www.technig.com/use-kirki-wordpress-theme-customizer/">part one</a> of this tutorials.</p>
<h3>Step 1</h3>
<p>Here is how we can include and configure this plugin in basic way.</p>
<pre class="theme:sublime-text lang:php decode:true ">include_once( dirname( __FILE__ ) . '/inc/plugins/kirki/kirki.php' );

function mytheme_kirki_configuration() {
    return array( 'url_path'     =&gt; get_stylesheet_directory_uri() . '/inc/plugins/kirki/' );
}
add_filter( 'kirki/config', 'mytheme_kirki_configuration' );</pre>
<h3>Step 2</h3>
<p>Now we must add the panels and sections. To do that, first we create a function to wrap all panels and sections. For our example, we make one panel named, &#8221; Theme Options&#8221;. Inside this panel, we create sections.</p>
<pre class="theme:sublime-text lang:php decode:true ">function up_kirki_section( $wp_customize ) {
	/**
	 * Add panels
	 */
	$wp_customize-&gt;add_panel( 'up_theme_options', array(
		'priority'    =&gt; 10,
		'title'       =&gt; __( 'Theme Options', 'upplanet' ),
	) );

	/**
	 * Add sections
	 */
     $wp_customize-&gt;add_section( 'general_options', array(
 		'title'       =&gt; __( 'General Options', 'upplanet' ),
 		'priority'    =&gt; 10,
 		'panel'       =&gt; 'up_theme_options',
 	) );

     $wp_customize-&gt;add_section( 'header_options', array(
 		'title'       =&gt; __( 'Header Options', 'upplanet' ),
 		'priority'    =&gt; 20,
 		'panel'       =&gt; 'up_theme_options',
 	) );

    $wp_customize-&gt;add_section('layout_options',array(
    	'title' 	 =&gt; __('Layouts Options','upplanet'),
    	'priority' 	 =&gt; 30,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('slide_options',array(
    	'title' 	 =&gt; __('Slide Options','upplanet'),
    	'priority' 	 =&gt; 30,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('page_options',array(
    	'title' 	 =&gt; __('Page Options','upplanet'),
    	'priority' 	 =&gt; 30,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('single_options',array(
    	'title' 	 =&gt; __('Single Page','upplanet'),
    	'priority' 	 =&gt; 40,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('footer_options',array(
    	'title' 	 =&gt; __('Footer Options','upplanet'),
    	'priority' 	 =&gt; 50,
    	'panel' 	 =&gt; 'up_theme_options',

    	));


}
add_action( 'customize_register', 'up_kirki_section' );</pre>
<p>We append each section we create to up_theme_options panel. Until now, you might not see anything in the WordPress customizer page. It will show-up when we add the fields and options. The last line will hook the panels to customize_register. Now we have almost a complete WordPress theme options. Let&#8217;s add options and fields.</p>
<h3>Step 3</h3>
<p>It&#8217;s up to you, what you need and what you want to add in your theme options. We will add one fields for each section just to show you the example. Than you can customize it for your own theme. To add fields, we need to create a new function and hook it to kirki/fields.</p>
<p>Here is a basic example. let&#8217;s add a favicon uploader fields in general section.</p>
<pre class="theme:sublime-text lang:php decode:true">function up_kirki_fields( $wp_customize ) {

 /*General Options*/
    $fields[] = array(
	'type'        =&gt; 'image',
	'settings'    =&gt; 'fav_icon',
	'label'       =&gt; __( 'Favicon', 'upplanet' ),
	'description' =&gt; __( 'Upload your site favicon here', 'upplanet' ),
	'section'     =&gt; 'general_options',
	'default'     =&gt; '',
	'priority'    =&gt; 10,
);

    return $fields;
}

add_filter( 'kirki/fields', 'up_kirki_fields' );
</pre>
<p><span style="background-color: #d4d4d4"><em>$fields[]</em> </span>is an array that will contain all the fields for all sections. And at the end of function, we return the <em>$fields. </em></p>
<p>the last line will hook the up_kirki_fields function to kirki fields.</p>
<h3>Step 4</h3>
<p>Let&#8217;s add one field for each section we have created. We will use different input types to show you how we can use them. After that we will write the complete WordPress theme options code.</p>
<p>Here is the complete code for fields function.</p>
<pre class="theme:sublime-text lang:php decode:true">function up_kirki_fields( $wp_customize ) {

	/*General Options*/

    $fields[] = array(
	'type'        =&gt; 'image',
	'settings'    =&gt; 'fav_icon',
	'label'       =&gt; __( 'Favicon', 'upplanet' ),
	'description' =&gt; __( 'Upload your site favicon here', 'upplanet' ),
	'section'     =&gt; 'general_options',
	'default'     =&gt; '',
	'priority'    =&gt; 10,
);


    // Header Options

	$fields[] = array(
	    'type'        =&gt; 'radio-image',
	    'setting'     =&gt; 'header_hero',
	    'label'       =&gt; __( 'Choose to show slide or text in header', 'upplanet' ),
	    'section'     =&gt; 'header_options',
	    'default'     =&gt; 'slide',
	    'priority'    =&gt; 10,
	    'choices'     =&gt; array(
	      'slide' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/header-slide.png',
	      'text' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/header-text.png',
	    ),
	);


	// Layouts Options

    $fields[] = array(
        'type'        =&gt; 'radio-image',
        'setting'     =&gt; 'up_layout',
        'label'       =&gt; __( 'Site Layout', 'upplanet' ),
        'description' =&gt; __( 'Decide which layout you want for your site', 'upplanet' ),
        'section'     =&gt; 'layout_options',
        'default'     =&gt; 'sidebar-right',
        'priority'    =&gt; 10,
        'choices'     =&gt; array(
          'sidebar-right' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/layout-right-side.png',
          'sidebar-left' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/layout-left-side.png',
          'right-left' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/right-left-side.png',
        ),
    );



	// Slide Options


    $fields[] = array(
		'type'        =&gt; 'radio',
		'settings'    =&gt; 'slide_query',
		'label'       =&gt; __( 'What to Query in Slide', 'upplanet' ),
		'section'     =&gt; 'slide_options',
		'default'     =&gt; 'recent-posts',
		'priority'    =&gt; 10,
		'choices'     =&gt; array(
			'most-commented'   =&gt; esc_attr__( 'Query most commented posts', 'upplanet' ),
			'recent-posts' =&gt; esc_attr__( 'Query most recent posts', 'upplanet' ),
		),
    	);


	/*Page Options*/

    $fields[] = array(
		'type'        =&gt; 'slider',
		'settings'    =&gt; 'page_hero',
		'label'       =&gt; esc_attr__( 'Page Header Hieght', 'upplanet' ),
		'section'     =&gt; 'page_options',
		'default'     =&gt; 120,
		'choices'     =&gt; array(
			'min'  =&gt; '100',
			'max'  =&gt; '400',
			'step' =&gt; '1',
		),
	);

	/*Single Post*/

 	$fields[] = array(
 		'type'        =&gt; 'checkbox',
		'settings'    =&gt; 'show_single_social',
		'label'       =&gt; __( 'Show Social Share', 'upplanet' ),
		'section'     =&gt; 'single_options',
		'default'     =&gt; '1',
		'priority'    =&gt; 10,
 		);


 	// Footer Options

    $fields[] = array(
		'type'     =&gt; 'textarea',
		'settings' =&gt; 'copy_right',
		'label'    =&gt; __( 'Footer Copyright Note', 'upplanet' ),
		'section'  =&gt; 'footer_options',
		'default'  =&gt; esc_attr__( 'Theme By &lt;a href="http://www.upplanet.com"&gt;Upplanet &lt;/a&gt;', 'upplanet' ),
		'priority' =&gt; 10,
		'sanitize_callback' =&gt; 'do_not_filter_anything',

	);

    return $fields;
}

add_filter( 'kirki/fields', 'up_kirki_fields' );</pre>
<h2>Complete WordPress Theme Options</h2>
<p>To wrap-up the complete WordPress theme options tutorial, let&#8217;s write the complete code snippet.</p>
<pre class="theme:sublime-text lang:php decode:true ">function do_not_filter_anything( $value ) {
	return $value;
}

include_once( dirname( __FILE__ ) . '/inc/plugins/kirki/kirki.php' );

function mytheme_kirki_configuration() {
    return array( 'url_path'     =&gt; get_stylesheet_directory_uri() . '/inc/plugins/kirki/' );
}
add_filter( 'kirki/config', 'mytheme_kirki_configuration' );


function up_kirki_section( $wp_customize ) {
	/**
	 * Add panels
	 */
	$wp_customize-&gt;add_panel( 'up_theme_options', array(
		'priority'    =&gt; 10,
		'title'       =&gt; __( 'Theme Options', 'upplanet' ),
	) );

	/**
	 * Add sections
	 */
     $wp_customize-&gt;add_section( 'general_options', array(
 		'title'       =&gt; __( 'General Options', 'upplanet' ),
 		'priority'    =&gt; 10,
 		'panel'       =&gt; 'up_theme_options',
 	) );

     $wp_customize-&gt;add_section( 'header_options', array(
 		'title'       =&gt; __( 'Header Options', 'upplanet' ),
 		'priority'    =&gt; 20,
 		'panel'       =&gt; 'up_theme_options',
 	) );

    $wp_customize-&gt;add_section('layout_options',array(
    	'title' 	 =&gt; __('Layouts Options','upplanet'),
    	'priority' 	 =&gt; 30,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('slide_options',array(
    	'title' 	 =&gt; __('Slide Options','upplanet'),
    	'priority' 	 =&gt; 30,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('page_options',array(
    	'title' 	 =&gt; __('Page Options','upplanet'),
    	'priority' 	 =&gt; 30,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('single_options',array(
    	'title' 	 =&gt; __('Single Page','upplanet'),
    	'priority' 	 =&gt; 40,
    	'panel' 	 =&gt; 'up_theme_options',

    	));

    $wp_customize-&gt;add_section('footer_options',array(
    	'title' 	 =&gt; __('Footer Options','upplanet'),
    	'priority' 	 =&gt; 50,
    	'panel' 	 =&gt; 'up_theme_options',

    	));


}
add_action( 'customize_register', 'up_kirki_section' );


function up_kirki_fields( $wp_customize ) {

	/*General Options*/

    $fields[] = array(
	'type'        =&gt; 'image',
	'settings'    =&gt; 'fav_icon',
	'label'       =&gt; __( 'Favicon', 'upplanet' ),
	'description' =&gt; __( 'Upload your site favicon here', 'upplanet' ),
	'section'     =&gt; 'general_options',
	'default'     =&gt; '',
	'priority'    =&gt; 10,
);


    // Header Options

	$fields[] = array(
	    'type'        =&gt; 'radio-image',
	    'setting'     =&gt; 'header_hero',
	    'label'       =&gt; __( 'Choose to show slide or text in header', 'upplanet' ),
	    'section'     =&gt; 'header_options',
	    'default'     =&gt; 'slide',
	    'priority'    =&gt; 10,
	    'choices'     =&gt; array(
	      'slide' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/header-slide.png',
	      'text' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/header-text.png',
	    ),
	);


	// Layouts Options

    $fields[] = array(
        'type'        =&gt; 'radio-image',
        'setting'     =&gt; 'up_layout',
        'label'       =&gt; __( 'Site Layout', 'upplanet' ),
        'description' =&gt; __( 'Decide which layout you want for your site', 'upplanet' ),
        'section'     =&gt; 'layout_options',
        'default'     =&gt; 'sidebar-right',
        'priority'    =&gt; 10,
        'choices'     =&gt; array(
          'sidebar-right' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/layout-right-side.png',
          'sidebar-left' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/layout-left-side.png',
          'right-left' =&gt; trailingslashit( get_template_directory_uri() ) . 'images/right-left-side.png',
        ),
    );



	// Slide Options


    $fields[] = array(
		'type'        =&gt; 'radio',
		'settings'    =&gt; 'slide_query',
		'label'       =&gt; __( 'What to Query in Slide', 'upplanet' ),
		'section'     =&gt; 'slide_options',
		'default'     =&gt; 'recent-posts',
		'priority'    =&gt; 10,
		'choices'     =&gt; array(
			'most-commented'   =&gt; esc_attr__( 'Query most commented posts', 'upplanet' ),
			'recent-posts' =&gt; esc_attr__( 'Query most recent posts', 'upplanet' ),
		),
    	);


	/*Page Options*/

    $fields[] = array(
		'type'        =&gt; 'slider',
		'settings'    =&gt; 'page_hero',
		'label'       =&gt; esc_attr__( 'Page Header Hieght', 'upplanet' ),
		'section'     =&gt; 'page_options',
		'default'     =&gt; 120,
		'choices'     =&gt; array(
			'min'  =&gt; '100',
			'max'  =&gt; '400',
			'step' =&gt; '1',
		),
	);

	/*Single Post*/

 	$fields[] = array(
 		'type'        =&gt; 'checkbox',
		'settings'    =&gt; 'show_single_social',
		'label'       =&gt; __( 'Show Social Share', 'upplanet' ),
		'section'     =&gt; 'single_options',
		'default'     =&gt; '1',
		'priority'    =&gt; 10,
 		);


 	// Footer Options

    $fields[] = array(
		'type'     =&gt; 'textarea',
		'settings' =&gt; 'copy_right',
		'label'    =&gt; __( 'Footer Copyright Note', 'upplanet' ),
		'section'  =&gt; 'footer_options',
		'default'  =&gt; esc_attr__( 'Theme By &lt;a href="http://www.upplanet.com"&gt;Upplanet &lt;/a&gt;', 'upplanet' ),
		'priority' =&gt; 10,
		'sanitize_callback' =&gt; 'do_not_filter_anything',

	);

    return $fields;
}

add_filter( 'kirki/fields', 'up_kirki_fields' );</pre>
<p>We have added some more line to complete WordPress theme options.</p>
<pre class="theme:sublime-text lang:php decode:true">do_not_filter_anything</pre>
<p>If you don&#8217;t want any field to filter through html special char you can add this callback. Though it&#8217;s not a complete WordPress theme options, if you change and add a little more options, you can make it a complete WordPress theme options for your own.</p>
<h3>How to use the value.</h3>
<p>It&#8217;s pretty simple. Every field we create has a settings identifier, just echo it where you want to display or use the option value.</p>
<pre class="theme:sublime-text lang:php decode:true ">echo get_theme_mod('setting_identifier');</pre>
<h2>Conclusion.</h2>
<p>I hope, it help you make your next complete WordPress theme options settings. If you want to know more about kirki, I recommend join the github issues about this powerful plugin. If you have any questions or problem, feel free to ask it bellow.</p>
<p>The post <a href="https://www.technig.com/complete-wordpress-theme-options-kirki-customizer/">How to Make a Complete Theme Options with Kirki Customizer?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/complete-wordpress-theme-options-kirki-customizer/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7449</post-id>	</item>
		<item>
		<title>5 Useful PHP Function for Working with Files</title>
		<link>https://www.technig.com/php-function-for-working-with-files/</link>
					<comments>https://www.technig.com/php-function-for-working-with-files/#respond</comments>
		
		<dc:creator><![CDATA[Hujatulla Asghari]]></dc:creator>
		<pubDate>Tue, 24 Mar 2015 19:33:15 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web developement]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=1915</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="640" height="426" src="https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Useful PHP Function" decoding="async" srcset="https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function.jpg 640w, https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function-300x200.jpg 300w, https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function-450x300.jpg 450w" sizes="(max-width: 640px) 100vw, 640px" /></div>
<p>PHP is definitely one of the most popular programming language for web developers. And this article is about 5 useful function that every PHP developer must know when working with files and directories. 1. file_put_contents — Write a string to a file This function is identical to calling fopen(), fwrite() and fclose() successively to write data [&#8230;]</p>
<p>The post <a href="https://www.technig.com/php-function-for-working-with-files/">5 Useful PHP Function for Working with Files</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="640" height="426" src="https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Useful PHP Function" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function.jpg 640w, https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function-300x200.jpg 300w, https://www.technig.com/wp-content/uploads/2015/03/Useful-PHP-Function-450x300.jpg 450w" sizes="(max-width: 640px) 100vw, 640px" /></div><p>PHP is definitely one of the most popular programming language for web developers. And this article is about 5 useful function that every PHP developer must know when working with files and directories.</p>
<h3>1. <span class="refname">file_put_contents</span> — <span class="dc-title">Write a string to a file</span></h3>
<p>This function is identical to calling <span class="function"><a class="function" href="http://php.net/manual/en/function.fopen.php">fopen()</a></span>, <span class="function"><a class="function" href="http://php.net/manual/en/function.fwrite.php">fwrite()</a></span> and <span class="function"><a class="function" href="http://php.net/manual/en/function.fclose.php">fclose()</a></span> successively to write data to a file.  It mean if you use this function you don&#8217;t need to use three other functions like: fopen(),fwrite() and fclose().</p>
<p><strong>Usage : </strong></p>
<p>This function takes two arguments. The first one is for file name if doesn&#8217;t exist it will create one. The second argument is for data to be written in that file.</p>
<p><strong>Example</strong></p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">&lt;?php file_put_contents("Technig.txt", "Hello world"); ?&gt;</pre>
<p>&nbsp;</p>
<p>You can pass an array as second argument</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">&lt;?php
 $data = array("Ali","Hamid", "Mahmod");
 file_put_contents("Technig.txt", $data);
 ?&gt;</pre>
<h3> 2. file_get_contents() reads a file into a string.</h3>
<p><strong>file_get_contents()</strong> function is similar to <span class="function"><a class="function" href="http://php.net/manual/en/function.file.php">file()</a></span>, except that <span class="function"><strong>file_get_contents()</strong></span> returns the file in a <span class="type"><a class="type string" href="http://php.net/manual/en/language.types.string.php">string</a></span>, starting at the specified <em><code>offset</code></em> up to <em><code>maxlen</code></em> bytes. On failure, it will return <strong><code>FALSE</code></strong>.</p>
<p>Usage:</p>
<p>This function takes five arguments.</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">file_get_contents(path,include_path,context,start,max_length)</pre>
<p>First argument is required: specifies the file path to read.</p>
<p>Second argument is optional: Set this parameter to &#8216;1&#8217; if you want to search for the file in the include_path (in php.ini) as well.</p>
<p>Third argument is optional: Specifies the context of the file handle. Context is a set of options that can modify the behavior of a stream. Can be skipped by using NULL.</p>
<p>Fourth argument is optional:  Specifies where in the file to start reading. This parameter was added in PHP 5.1</p>
<p>And Last Argument is also optional: Specifies how many bytes to read. This parameter was also added  in PHP 5.1</p>
<p><b>Tip:</b> <em>This function is binary-safe (meaning that both binary data, like images, and character data can be written with this function).</em></p>
<p><strong>Example:</strong></p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">&lt;?php 
file_get_contents("Technig.txt");
 ?&gt;</pre>
<p>&nbsp;</p>
<h3>3.  glob() Function</h3>
<p>The glob() function returns an array of filenames or directories matching a specified pattern.</p>
<p>&nbsp;</p>
<p><strong>Usage:</strong></p>
<p>This function takes two arguments:</p>
<p>The first argument is pattern and it is required, specifies the pattern to search for.</p>
<p>The second argument is optional for some special settings.</p>
<blockquote><p>Possible values:</p>
<ul>
<li>GLOB_MARK &#8211; Adds a slash to each item returned</li>
<li>GLOB_NOSORT &#8211; Return files as they appear in the directory (unsorted)</li>
<li>GLOB_NOCHECK &#8211; Returns the search pattern if no match were found</li>
<li>GLOB_NOESCAPE &#8211; Backslashes do not quote metacharacters</li>
<li>GLOB_BRACE &#8211; Expands {a,b,c} to match &#8216;a&#8217;, &#8216;b&#8217;, or &#8216;c&#8217;</li>
<li>GLOB_ONLYDIR &#8211; Return only directories which match the pattern</li>
<li>GLOB_ERR &#8211; (added in PHP 5.1) Stop on errors (errors are ignored by default)</li>
</ul>
</blockquote>
<p><strong>Example :</strong></p>
<p>if you want to show all files with &#8220;.txt&#8221; extension in one directory.</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false lang:php decode:true">&lt;?php
print_r(glob("*.txt"));
?&gt;</pre>
<p>The start (*) means whatever the name is but it must have &#8220;.txt&#8221; extension.</p>
<p>It will output an array with all file which has &#8220;.txt&#8221; extension.</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">Array
(
[0] =&gt; Technig.txt
[1] =&gt; source.txt
[2] =&gt; file.txt
[3] =&gt; password.txt
)</pre>
<p>If you want to show all files with any extension you can do.  Simply use &#8220;*&#8221; as filename and extension.</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">&lt;?php
print_r(glob("*.*"));
?&gt;</pre>
<p>Output:</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">Array
(
[0] =&gt; contacts.csv
[1] =&gt; default.php
[2] =&gt; Technig.txt
[3] =&gt; Data.txt
[4] =&gt; tem1.tmp
[5] =&gt; test.htm
[6] =&gt; test.ini
[7] =&gt; test.php
[8] =&gt; test.txt
)</pre>
<h3>4. basename() Function</h3>
<p>The basename() function returns the filename from a path.</p>
<p><strong>Usage:</strong></p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">basename ($path, $suffix);</pre>
<p>&nbsp;</p>
<p>This function takes two arguments. The first one is required and specifies the path to check.</p>
<blockquote><p>On Windows, both slash (<em>/</em>) and backslash (<em>\</em>) are used as directory separator character. In other environments, it is the forward slash (<em>/</em>).</p></blockquote>
<p>The second argument is optional. Specifies a file extension. If the filename has this file extension, the file extension will not show.</p>
<p><strong>Example: </strong></p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">&lt;?php
echo "
 0) ".basename("/Technig/test.d"); // file with extension 
echo "
 1) ".basename("/Technig/test.d", ".d"); // file without extension
echo "
 2) ".basename("/Technig/passwd"); 
echo "
 3) ".basename("/Technig/");
echo "
 4) ".basename(".");
echo "
 5) ".basename("/");
?&gt;</pre>
<p>Output</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">0) test.d
1) test
2) passwd
3) Technig
4) .
5)</pre>
<p>&nbsp;</p>
<h3>5. pathinfo() Function</h3>
<p>The pathinfo() function returns an array that contains information about a path.</p>
<p>The following array elements are returned:</p>
<ul style="list-style-type: circle;">
<li>[dirname]</li>
<li>[basename]</li>
<li>[extension]</li>
</ul>
<p><strong>Usage : </strong></p>
<p>This function also takes two arguments. The first argument is the path. It&#8217;s required. Specifies the path to check.</p>
<p>The second argument is the options. it&#8217;s optional. Specifies a specific element to be returned; one of <strong>PATHINFO_DIRNAME</strong>, <strong>PATHINFO_BASENAME</strong>, <strong>PATHINFO_EXTENSION</strong> or <strong>PATHINFO_FILENAME</strong>.</p>
<p><strong>Note:</strong></p>
<p><em>If <strong>options</strong> is not specified, returns all available elements.</em></p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">pathinfo ($path,$options = PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME ] );</pre>
<p><strong>Example 1:</strong></p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">&lt;?php
$path_parts = pathinfo('/www/Technig/test.php');

echo $path_parts['dirname'], "\n";
echo $path_parts['basename'], "\n";
echo $path_parts['extension'], "\n";
echo $path_parts['filename'], "\n"; // since PHP 5.2.0
?&gt;</pre>
<p>Output: returned an array.</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">/www/Teching
test.inc.php
php
test.inc</pre>
<p><strong>Example 2 :</strong></p>
<p>You can print_r it directly with second argument.</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true">&lt;?php
print_r(pathinfo("/Technig/test.txt",PATHINFO_BASENAME));
?&gt;</pre>
<p>It will output only basename.</p>
<pre class="theme:classic toolbar-overlay:false toolbar-hide:false toolbar-delay:false nums:false plain:false lang:php decode:true ">test.txt</pre>
<p>Although there are a lots of PHP function to talk about,  I wrap up this article here, and I hope it has been informative for you. If you want to learn more about file system in php you can refer to this article on w3schools : <a href="http://www.w3schools.com/php/php_ref_filesystem.asp" target="_blank" rel="noopener noreferrer">PHP 5 Filesystem Functions</a>.</p>
<p>The post <a href="https://www.technig.com/php-function-for-working-with-files/">5 Useful PHP Function for Working with Files</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/php-function-for-working-with-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1915</post-id>	</item>
	</channel>
</rss>
