Generating social media links
You could take the common bits out into a function:

&lt;?php
function my_thing($name, $title) {
   if ( of_get_option("mm_sm_$name") ) {
      ?&gt;
      &lt;li&gt;
      &lt;a href="&lt;?php echo of_get_option("mm_sm_$name"); ?&gt;"&gt;&lt;img src="&lt;?php echo  get_template_directory_uri(); ?&gt;/images/socials/ico_&lt;?php echo $name ?&gt;.png" alt="&lt;?php echo $title ?&gt;"/&gt;&lt;/a&gt;&lt;span&gt;&lt;?php echo $title ?&gt;&lt;/span&gt;
      &lt;/li&gt;
      &lt;?
   }
}

my_thing('vimeo', 'Vimeo');
my_thing('gplus', 'Google Plus');
?&gt;