Create new Skin

To create new skin you need to write a little bit code in two file

-TcardSetElements.php

-TcardDashboard.php

Files location:

-tcard/admin/TcardSetElements.php

-tcard/admin/templates/TcardDashboard.php

This skin will behave like a customskin. The difference is that when you want to add another skin to a group will appear with the elements you wanted, and the customskin appears empty and you must always put items in it.


Let’s call this new skin “demo”. First go in TcardSetElements.php and copy this code, of course with your real name skin

  
elseif($skin_type == "demo"){
  $all_elements = array(
    $skin => array(
      'header' => array(
        'front' => array("social_button","header_title"),
        'back' => array("header_title","gallery_button")
      ),
      'content' => array(
        'front' => array("profile"),
        'back' => array("item","info","skills")
      ),
      'footer' => array(
        'front' => array("social_list"),
        'back' => array("tc_button")
      )
    )
  );
}
  

Look here for all elements

Second go in TcardDashboard.php and search for this id=”select-skin”. You will find this code


<select id="select-skin" class="tcard_skin_type">
  <option></option>
  <?php for($i = 1; $i <= 6; $i++) : ?>
    <option value="skin_<?php echo $i ?>" <?php selected( $group_output->skin_type, "skin_$i" ); ?>> Skin 
    <?php echo $i ?> 
    </option>
  <?php endfor; ?>
  <option value="customSkin" <?php selected( $group_output->skin_type, 'customSkin' ); ?>>Custom Skin 
  </option>
</select>

Here you need to add after custom skin new line of code like


<select id="select-skin" class="tcard_skin_type">
  <option></option>
  <?php for($i = 1; $i <= 6; $i++) : ?>
    <option value="skin_<?php echo $i ?>" <?php selected( $group_output->skin_type, "skin_$i" ); ?>> Skin 
    <?php echo $i ?> 
    </option>
  <?php endfor; ?>
  <option value="customSkin" <?php selected( $group_output->skin_type, 'customSkin' ); ?>>Custom Skin 
  </option>
  <option value="demo" <?php selected( $group_output->skin_type, 'demo' ); ?>>Demo </option>
</select>

And the result will be

demo