( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$style=$row['deformation']['font-style'];
$name=$row['deformation']['font-family'];
$weight=$row['static_styles']['font-weight']['desktop'];
$checkFontZ = checkFontZ($name);
if(!empty($checkFontZ))
{
$myfont = $checkFontZ;
$fontPath = "assets/newfont";
}
else
{
$myfont = checkFontX($name,$weight,$style);
$fontPath = "assets/fonts";
}
$font_Username=$row['text'];
$font_Name=$row['text'];
$font_Url=$row['text'];
$font_Text=$row['text'];
$text_w=$row['width'];
$text_h=$row['height'];
$text_x=$row['left']['desktop'];
$text_y=$row['top']['desktop'];
$text_align=$row['text-align']['desktop'];
if($text_align == "inherit"){$text_align ="left";}
$text_size=$row['static_styles']['font-size']['desktop'];
$text_size=$text_size;
$text_color=$row['static_styles']['color']['desktop'];
$url_color=$row['static_styles']['color']['desktop'];
$name_color=$row['static_styles']['color']['desktop'];
$username_color=$row['static_styles']['color']['desktop'];
$url_size=$row['static_styles']['font-size']['desktop'];
$name_size=$row['static_styles']['font-size']['desktop'];
$username_size=$row['static_styles']['font-size']['desktop'];
$text_pad=$row['static_styles']['padding']['desktop'][1];
$text_pad=0;
$text_line_height=$row['static_styles']['line-height']['desktop'] ;
$text=$row['text'];
$layer_x=$row['left']['desktop'];
$layer_y=$row['top']['desktop'];
$layer_w=$row['width'];
$layer_h=$row['height'];
$layeropacity=$row['deformation']['opacity'];
$layer_r=$row['deformation']['xrotate'];
if (empty($_GET['cl']))
{
$text = realText() ;
}
else
{
$text = dummyText();
}
$text= "thebrand.co.ke/". cleanText(slug());
$angle = $row['deformation']['xrotate'];
$underline = true;
$font_Text = "$fontPath/$myfont";
if(empty($myfont)) {
$myfont = "$name.ttf";
$fontPath = "assets/fonts/";
$font_Text ="$fontPath/$myfont";
}
$backgroundWidth = $text_w;
$backgroundHeight = 0;
$text = str_replace("*machine","",$text);
/* $text = str_replace("'", "`", $text);
$text = str_replace('"', "`", $text);
$text = str_replace('\\', "", $text);*/
/*exit($text);*/
$rand =rand(11111111,99999999);
$text = $rand;
/* exit("$text"); */
if(!empty($_GET['mapBrand'])){ $text = "Layer".$row['zIndex']." - ".$row['alt'];}
if(!empty($_GET['mapBrand'])){ $text = "Layer".$row['zIndex']." - ".$row['alt'];}
if(!empty($_GET['mydata']))
{
$mydataID= $_GET['mydataID'];
$mydataRecord =$_GET['mydataRecord'];
$rowJSON = getLayerDetailsJSON($mydataID);
$json = $rowJSON['text'];
$per_page = 1;
$array = json_decode($json,true);
$array = array_slice($array, $mydataRecord, $per_page);
/*print_r($array);*/
$searchTerm = "Layer".$row['zIndex'];
$rowX = getLayerDetailsOrder($searchTerm,$mydataID);
if(!empty($rowX['title'])){
$cat = str_replace("column","",$rowX['cat']) ;;
$text= $array[0]["column".$cat];
}
}
WriteCaption($background,$text_size
,$text_color,$text_color,$text_line_height,$text_align,$angle,$underline,$font_Text,$backgroundWidth,$backgroundHeight,$layer_y,$text_pad,$backgroundColor,$layer_x,$text);